NPC Code:
function onPlayerChats()
if(player.chat=="/box1"){
message 1;
}
if(player.chat.starts("/box1")){
this.t = player.chat.tokenize();
this.t[0] = "/box1";
if(this.t[1]=="2"){
message 2;
}
}
function onPlayerChats(){
if(player.chat=="/reset"){
message;
}
}
Just learning how to script.. umm the whole point of this script is when the player says /box1 the number 1 appears in the place I laid the level npc. Also when I say /box1 2, it is supposed to display 2 but when i say /reset it deletes the number.. But right now when I say /box1 or /box1 2 it doesn't work netiher does the /reset part...
Help Please lmao.