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?