Code:
#azog mon
sub EVENT_HP {
if($hpevent == 98)
{
$npc->NPCSpecialAttacks(DIMUCNfAB, 0);
quest::settimer("SpawnAcolytes", 120);
quest::spawn2(999454, 0, 0, $x + 10, $y + 10, $z, 0);
quest::spawn2(999454, 0, 0, $x - 10, $y - 10, $z, 0);
quest::spawn2(999454, 0, 0, $x + 10, $y - 10, $z, 0);
plugin::AERampageEffect(100);
quest::settimer("Rampage", 10);
}
}
sub EVENT_SPAWN {
quest::setnexthpevent(98);
}
sub EVENT_TIMER {
if ($timer == "SpawnAcolytes")
{
quest::stoptimer("SpawnAcolytes");
quest::spawn2(999454, 0, 0, $x + 10, $y + 10, $z, 0);
quest::spawn2(999454, 0, 0, $x - 10, $y - 10, $z, 0);
quest::spawn2(999454, 0, 0, $x + 10, $y - 10, $z, 0);
quest::settimer("SpawnAcolytes", 120);
}
if ($timer == "Rampage")
{
quest::stoptimer("Rampage");
plugin::AERampageEffect(100);
quest::settimer("Rampage", 10);
}
}
sub EVENT_SAY {
if($text=~/Hail/i) {
quest::shout("Test");
}
}
I didn't test it, but I think the errors might come from that. Also probably possible to do it more simple. but I think it should works.
Also I am not sure why don't put the special attacks directly on mob.