Hey guys, Having trouble making my chance event.
On the different boxes ie. 1, 2 , 3, 4, 5, 6, 7, 8 I have this code:
NPC Code:
function onCreated()
{
this.setShape(1, 240, 205);
}
function onPlayerTouchsMe()
{
clientr.box=1;
}
And I'm using this for kick:
NPC Code:
function onPlayerChats()
{
if (player.guild == "Events Team" || player.guild == "Events Admin" || player.queryRight("events")) {
if (player.chat.starts("/kick")) { // chat starts with /kick
temp.num = player.chat.substring(6).trim(); // find the number the ET said
for (temp.pl : players) { // loop through each player
if (pl.client.chance == num) { // it's the number the ET called
pl.setlevel2("lost-osl1.nw",30.5,10.8); // warp that player (note "pl."setLevel2)
}
}
}
}
}
Having lots of trouble, such as on kick it texts everyone on level to kick location etc..
Thanks in advance,