Quote:
Originally Posted by Stowen
Yeah I was actually thinking about doing that. Right now I have a flag that staff have, and I'm using that to determine whether or not to monitor them. That's so it doesn't set off false positives for using boots. I'm going to attempt to script what you just suggested.
|
You don't need a flag. Last I checked it was possible to check the staff= list in the server options.
And I would suggest playing with the script doing countless test's until you have it perfected how you want.
Also not much changed form GS1 to GS2.. with the exception that GS2 is now more object oriented and you use ( and ).. ex : player.chat instead of setplayerprop #c... and settimer() instead of timeout =...
you could add backup checks.. and do like this.lastlevel = ... to store current level and have the alarm part of it not go off if the level is now different. it would help ensure that onPlayerEnters() is setting the new variables before it does it's next check cycle.
Does anyone know if there is a onPlayerLeaves() command? I have never looked it up to see.