Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-28-2002, 06:35 AM
RavenTelvecho RavenTelvecho is offline
Registered User
RavenTelvecho's Avatar
Join Date: Apr 2002
Location: Toronto, Ontario, Canada
Posts: 0
RavenTelvecho is on a distinguished road
Send a message via ICQ to RavenTelvecho Send a message via AIM to RavenTelvecho Send a message via Yahoo to RavenTelvecho
trimming

NPC Code:

if (playerchats&&isweapon) {
if (startswith(/setsay,#c)) {
tokenize #c;
}
if (strequals(#t(3),#s(petnick_this.id))) {
setstring petsay_#v(this.id),#T(#e(18,20,#c));
setplayerprop #c,;
}
}



if i say
/setsay for <PETNICK> <THE NICK HERE> it wont work but if i say
/setsay for <PETNICK><THE NICK HERE> it works
in the attachment
say
"/setsay for derek hi my name is derek"
then say
"/setsay for derekhi my name is derek"



see the prob?


yes i know it says isweapon its cause i took it from the script its from
__________________

^tuff newbie ;x
RavenTelvecho
!Booj
we are 'brothers'

Last edited by RavenTelvecho; 04-28-2002 at 09:18 AM..
Reply With Quote
  #2  
Old 04-28-2002, 06:36 AM
RavenTelvecho RavenTelvecho is offline
Registered User
RavenTelvecho's Avatar
Join Date: Apr 2002
Location: Toronto, Ontario, Canada
Posts: 0
RavenTelvecho is on a distinguished road
Send a message via ICQ to RavenTelvecho Send a message via AIM to RavenTelvecho Send a message via Yahoo to RavenTelvecho
attachment forgot x.x
Attached Files
File Type: nw k.nw (9.4 KB, 185 views)
__________________

^tuff newbie ;x
RavenTelvecho
!Booj
we are 'brothers'
Reply With Quote
  #3  
Old 04-28-2002, 08:37 AM
Gohan43331 Gohan43331 is offline
Registered User
Join Date: Jan 2002
Posts: 87
Gohan43331 is on a distinguished road
Send a message via AIM to Gohan43331
Quote:
if (strequals(#t(3),#s(petnick_this.id))) {
Remember: Indexes start at 0

0 = /setsay
1 = for
2 = nick
3+ = text

if (strequals(#t(2),derek)) { // or #s(petnick_#v(this.id))

I think that should fix it
__________________
Reply With Quote
  #4  
Old 04-28-2002, 09:13 AM
RavenTelvecho RavenTelvecho is offline
Registered User
RavenTelvecho's Avatar
Join Date: Apr 2002
Location: Toronto, Ontario, Canada
Posts: 0
RavenTelvecho is on a distinguished road
Send a message via ICQ to RavenTelvecho Send a message via AIM to RavenTelvecho Send a message via Yahoo to RavenTelvecho
now i have to say
/setsay forskulliohi
x.x
__________________

^tuff newbie ;x
RavenTelvecho
!Booj
we are 'brothers'
Reply With Quote
  #5  
Old 04-28-2002, 09:17 AM
RavenTelvecho RavenTelvecho is offline
Registered User
RavenTelvecho's Avatar
Join Date: Apr 2002
Location: Toronto, Ontario, Canada
Posts: 0
RavenTelvecho is on a distinguished road
Send a message via ICQ to RavenTelvecho Send a message via AIM to RavenTelvecho Send a message via Yahoo to RavenTelvecho
k srry ill edit it
__________________

^tuff newbie ;x
RavenTelvecho
!Booj
we are 'brothers'
Reply With Quote
  #6  
Old 04-28-2002, 09:41 AM
RavenTelvecho RavenTelvecho is offline
Registered User
RavenTelvecho's Avatar
Join Date: Apr 2002
Location: Toronto, Ontario, Canada
Posts: 0
RavenTelvecho is on a distinguished road
Send a message via ICQ to RavenTelvecho Send a message via AIM to RavenTelvecho Send a message via Yahoo to RavenTelvecho
d) Since the pet's nick is variable length, the start index in your #e should also be variable
what u mean
---
edit
-----
oohhh ok lemme tst
__________________

^tuff newbie ;x
RavenTelvecho
!Booj
we are 'brothers'
Reply With Quote
  #7  
Old 04-28-2002, 09:46 AM
RavenTelvecho RavenTelvecho is offline
Registered User
RavenTelvecho's Avatar
Join Date: Apr 2002
Location: Toronto, Ontario, Canada
Posts: 0
RavenTelvecho is on a distinguished road
Send a message via ICQ to RavenTelvecho Send a message via AIM to RavenTelvecho Send a message via Yahoo to RavenTelvecho
werks XD
thanks guys
__________________

^tuff newbie ;x
RavenTelvecho
!Booj
we are 'brothers'
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:38 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.