![]() |
getplayer
Ok say i have the account of a person set to the variable this.buddy. how would i take his chat string (#c) using getplayer and set it to the chat string of the npc.?
|
First off. Is this a NPC Weapon or a serverside NPC?
|
NPC Code: Should work. |
serverside npc =p and grim that didn't work (i did change the timeout to .5[.1 won't wok serverside on p2p])0.o thanx anyway though :D
|
...
.1 works for NPC-Server, it's .05 that don't work |
o
i thought it was .1 that didn't o well =p either way it don't work.
|
Then try this:
NPC Code:And if that doesn't work I'm stumped. |
nope... you be stumped just like me : / thanx anyway though! :D
|
Quote:
NPC Code: that should work |
:-)
Supersonic is one smart cookie!
--PastAustin |
well grim was right in the fact i want the npc to say the message not the player. but it still doesn't wok :(
|
hmm.......i dunno
maybe add an index to #c ? =8 |
Quote:
|
setlevel #L; causes an infinite loop and freezes graal.
|
I think he means that both the #c 's have different causes.
The first #c is the npc chat, and the second is the player chat so maybe it would need to be: if (initialized||timeout) { with (getplayer(#s(this.buddy))) setplayerprop #c(-1),#c(0); timeout=0.1; } to seperate its different #c =) |
Or just use 'message', because he wanted the chat text of the npc to be set to what this.buddy was saying...
|
or maybe setcharprop? Honestly, does nobody ever read the commands reference?
|
ohh yea, setcharprop, nor setplayerprop =P
|
| All times are GMT +2. The time now is 04:29 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.