Stopping a timer on aggro loss
Would this work for stopping a timer when aggro is lost? Putting this within the sub EVENT_TIMER
Code:
$h = $npc->GetHateTop(); |
You don't want to stop a timer from within EVENT_TIMER unless you are stopping one timer from another timer. The simple way is to just use EVENT_COMBAT like so:
Code:
sub EVENT_COMBAT { |
/smacks forehead
Thanks Trevius, I keep tryin to do everything the hard way lol. |
Good to know we are on the right track for scripting though....not sure why folks just set mobs up to proc instead of making them right.....
|
I hate to ask Trev, but can you critique this? I can't get the AE's to fire. If I just make him talk with quest::say it works though! So I figure it has to do with the $userid and some way to carry it over from EVENT_AGGRO or maybe GetTopHate()?
Code:
sub EVENT_AGGRO { |
Code:
#861 = lava breath Anyone have further insight into this? Is there a way for 2 timers to run simultaneously without stopping until end of combat?.. or what all is wrong with this quest |
This works.
The issues we were having are the fact that the stoptimer doesn't trigger with #repop, only if he exits the combat_state via killing someone or by them zoning. |
Interesting side note to this ordeal; Sometimes the script will not work correctly till a server reboot.
Thanks for the closer to this Trev! |
All times are GMT -4. The time now is 07:20 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.