![]() |
|
#9
|
||||
|
Quote:
Or on Faydedar, there would be no question who pulled him once the shout goes off- once it goes off once via this code it does not go off again until it de-aggros, so if you tag something and it doesn't say your name- it's already aggroed. If anyone really wants to help the raid scene, get Rogean or nilbog to implement this code (or something similar) as part of the quest scripts for each raid mob. Code:
sub EVENT_AGGRO { # Triggered when a player aggros a mob
if(!$thisFirstAggro) { # Checks if this person is the first person to aggro this mob
quest::shout(“$name was the first to engage me.”); # Shout name of first person to activate this event
$thisFirstAggro++; # Increment this variable so we don't do multiple shouts.
}
}
sub EVENT_COMBAT { # Triggered when a mob enters or exits combat
if(!$combat_state) { # If we are leaving combat (state 0)
$thisFirstAggro = 0; We reset $thisFirstAggro as the NPC leaves aggroed state so it can shout again.
quest::shout(“My attackers have failed!”); # No more, "can we tag it yet!?" questions.
}
}
Keep in mind though, instances of kiting should still be handled by the GMs, as to code a kiting fix for each mob would be a ton of work and very mob specific.
__________________
![]() Part of me says I can't keep drinking like this. The other part of me says, "Don't listen to that guy. He's drunk" | |||
|
Last edited by Loly Taa; 11-23-2012 at 10:05 PM..
|
|
|||
|
|