More efficient way to do this routine?
I was wondering if there was a more efficient way to do this.
Also I want to add a class check so that I particular class needs to be in the party or proximity of the trigger. I setup an invisible man trigger at a location and setup his proximity. I couldn't only get one mob to spawn while in the proximity so I opt'd to use depop. Though the spawned npc was set to unique it still kept spawning the NPC if I moved in and out of the proximity. Code:
sub EVENT_SPAWN{ EDIT - I missed the squiggley's, class check works.. When you use the right syntax... |
this is what I used
Code:
$ProxDist = 40; |
edited my post.. found it for class check.. I just didn't use the right syntax for class check. I didn't put the curly brackets. I am still learning things.. In your code once the timer is reached it clears the proximity you used to trigger the event, then resets it, then will depop once exiting the proximity?
|
Code:
sub EVENT_SPAWN { |
Yes my timer is set for 2 seconds once proximity is left to depop the npc and Ghanja's code is way more cleaner than mine lol
|
Quote:
Greyhelm, I see you were looking into timers. The reason there is a lack of conditional, i.e.: Code:
if ($timer eq "setprox") { In case you were wondering why it may have looked a little screwy. |
All times are GMT -4. The time now is 07:22 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.