View Single Post
  #1  
Old 07-15-2005, 12:51 PM
raiden0899 raiden0899 is offline
Registered User
raiden0899's Avatar
Join Date: Oct 2004
Posts: 192
raiden0899 is on a distinguished road
Question Need help with a script

a made a class that copies everything the selected player does. i tried to set it so that when i say "/say text" it sets text as the selected player's chat text. Here's the part of the code that's supposed to do this:
NPC Code:

// this.copy is the account of the selected player
if (playerchats) {
tokenize #c;
if (strequals(#t(0),/say)) {
with(getplayer(#s(this.copy))) {
setcharprop #c,#t(1);
}
}
}


Instead of changing the player's chat text, it only sets it's own chat text. Does anyone know how to make it work?
Reply With Quote