View Single Post
  #1  
Old 05-02-2017, 04:18 PM
Osage's Avatar
Osage
Fire Beetle
 
Join Date: Jan 2017
Posts: 12
Default Quest help please :)

The first mob that spawns stands up until the second mob spawns then mob 1 FD's however ONLY the first mob FD's and all subsequent mobs stay standing... any help?

Code:
sub EVENT_SPAWN	{ 
	my $random_race = quest::ChooseRandom(1,4,6,7,);
	my $random_texture = quest::ChooseRandom(1,2);
	my $random_weapon = quest::ChooseRandom(1,2,3,7,8,14);
	my $random_gender = int(rand(2));
	
			$npc->SetAppearance(3);
	        quest::npcgender($random_gender);
	        quest::npcrace($random_race);
            quest::npctexture($random_texture);
            quest::wearchange(7, $random_weapon);
			quest::setanim(101140, 3);
	}
	
sub EVENT_SIGNAL {
  if($signal == 1) { #signal from boss to increase damage if players have not killed corpses
   quest::signalwith(101109,2,int(rand(5)))
   }
}	

sub EVENT_DEATH {
   quest::signalwith(101109,3,int(rand(5))) #were signaling back that this corpse has been killed and it will reduce boss damage
}
Edit: added the reduntant quest::setanim(101140, 3); to try and troubleshoot but still isnt working.
Reply With Quote