View Single Post
  #7  
Old 05-11-2011, 10:41 PM
Astal
Hill Giant
 
Join Date: Mar 2010
Posts: 236
Default

Quote:
Originally Posted by Shamanistik08 View Post
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.
Because im making the mob immune after it has aggro, killing the acolytes will cause damage to it instead of normal fighting, until it hits 25% hp, then you will be able to kill it normally and no acolytes will spawn
Reply With Quote