View Single Post
  #4  
Old 05-11-2011, 04:15 PM
Astal
Hill Giant
 
Join Date: Mar 2010
Posts: 236
Default

ok thats not it. Its also triggering the rampage timer even though nothing sets it. Also i noticed, i removed the rampage timer now it seems like the other timer isnt triggering

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");
		}	
		
}
Reply With Quote