NPC Code: if (created||playerenters) { toweapons Chat; } if (playerchats) { tokenize #c; for (i=0;i<tokenscount;i++) { check(); } } // Functions function check() { if (strcontains(#t(i),#s(server.rsrvwords))) { setplayerprop #c,Invalid and/or reserved words. Try again.; } else { addchat(); } }
if (created||playerenters) { toweapons Chat; } if (playerchats) { tokenize #c; for (i=0;i<tokenscount;i++) { check(); } } // Functions function check() { if (strcontains(#t(i),#s(server.rsrvwords))) { setplayerprop #c,Invalid and/or reserved words. Try again.; } else { addchat(); } }