I'm just curious. I had this NPC I was working on Delteria with NPC Server and I had many triggeraction stuff I was doing...
I was wondering how I would make it so when a playerchats it grabs a player according to a token and does something to him...
NPC Code:
if (actionserverwarp) {
setlevel2 #p(0),strtofloat(#p(1)),strtofloat(#p(2));
}
//#CLIENTSIDE
if (playerchats) {
tokenize #c;
with (getplayer[#t(1)]) {
triggeraction 0,0,serverwarp,#t(0),#t(1),#t(2);
}
}
Could anyone tell me where I went wrong and how I fix it please?