View Single Post
  #3  
Old 07-21-2006, 03:05 PM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default Trigger mob fix for cycle start

This is a "trigger" mob for all the 3-corner cycles in frontiermtns- once he spawns the first mob in the cycle, he will not respawn them anymore on dieing. The mobs in the cycle (posted above) will continue to spawn each other as they are killed. Probably can make this guy aggro npc's so he can get him self killed and start off the cycles.

Code:
# 3 corners trigger mob, goblin traitor, for all loops
# EOF zone: frontiermtns
# Illomen zone

sub EVENT_DEATH
{
 my $a=92015;  #goblin raider, starts spawn1 cycle
 my $b=92067;  #goblin traitor, trigger mob
 if ($bdied=~ /1/) #traitor died once
 {
 quest::say("I already died once!");
 }
 else
 {
  quest::say("Spawning goblin raider by Nurga");
  quest::spawn2($a,0,0,-612,-2830,-478.75,122);
  $bdied=1; #mark traitor died once
 }
}
Reply With Quote