Timer based aggro
I have been looking at this script for two hours and I can not figure out why it will not work. Could someone please help me?
The script gets to quest::emote("lets loose a blood curdling howl(calling for help)"); and starts looping that emote but I have no idea why it is doing that. Code:
sub EVENT_AGGRO { |
$client isn't exported to EVENT_TIMER.
I'm not the quest expert, but this works for me. What you can do is make a note of the name of the player who aggroed the mob in EVENT_AGGRO, then in EVENT_TIMER, lookup the Client object using the name you stored, i.e. this works: Code:
sub EVENT_AGGRO { |
Only way I can see for anything improvement wise is make a foreach loop to shrink that down to much less lines of code. Other than that looks fine.
|
Derision, that worked perfectly. Thanks!
|
Although, it isn't really required if you are only using 1 timer for a script like this, it is normally common to put all of that stuff inside an IF statement to check that the timer matches the timer name you set. So, you would do something like this:
Code:
sub EVENT_TIMER { |
All times are GMT -4. The time now is 06:58 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.