Nevermind im not a moron. Slightly new problem. My mob spawns the npcs right the first time, then the second time he spawns them, but he keeps spawning them like every 30 secords afterwards and im not sure why.
The timer triggers after 3 minutes the first time but like i said above its like its triggering every 10-30 seconds then afterwards. I dont see anything that would make it do that, when I set the timer again i set it to 120
Code:
#azog mon
sub EVENT_HP {
if($hpevent <= 98)
{
if ((defined($entity_list->GetNPCByNPCTypeID(999430))))
{
$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);
}
}
}
sub EVENT_SPAWN {
quest::setnexthpevent(98);
}
sub EVENT_TIMER {
if ($timer == "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")
{
plugin::AERampageEffect(100);
quest::settimer("Rampage", 10);
}
}
sub EVENT_SAY {
if($text=~/Hail/i) {
quest::shout("Test");
}
}