![]() |
Chance Event Trouble
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() And I'm using this for kick: NPC Code:function onPlayerChats() Having lots of trouble, such as on kick it texts everyone on level to kick location etc.. Thanks in advance, |
You're setting clientr.box in the chance box but checking client.chance in the script.
|
Quote:
For example "/kick1" and he's in 2 hes still getting kicked, I think its because of its kicking who evers not on ettag? |
Make sure the player isn't an ET before warping him away.
if (pl.guild != "Events Team") { You should also add a number check if (num > 0) as well because: Judging by your (I'm under the impression you didn't write it) script: /kick2 is 0 /kick 2 is 2. Also please use PHP tags instead of CODE. |
Quote:
|
I don't see why the box the player is on, should be stored in a player flag.. :( Can't that value just exist in a level npc or something?
PHP Code:
PHP Code:
|
I fixed it by end the et tag at kick, seems to work. but thanks guys!
|
All times are GMT +2. The time now is 10:22 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.