View Single Post
  #5  
Old 10-19-2013, 10:57 PM
Maceblade
Hill Giant
 
Join Date: Jun 2010
Posts: 231
Default

Basically for NPC1
Code:
sub EVENT_DEATH {
 quest::signalwith(999299,3);
	}
}
and NPC2
Code:
sub EVENT_DEATH {
 quest::signalwith(999299,9);
	}
}
Obviously changing out your npc id. But your recieving NPC3 would look like
Code:
sub EVENT_SIGNAL {
  if($signal == 3) {
         quest::spawn2(999353,0,0,965,254,-239,192);
	}
    
   elsif($signal == 9) {
    quest::depopall(999292);
    quest::depopall(999291);
    quest::depopall(999287);
    quest::depopall(999288);
    quest::depopall(999289);
    quest::depopall(999290);
    quest::spawn2(999290,0,0,813,176,-239,254);
    quest::spawn2(999291,0,0,958,347,-239,128);
    quest::spawn2(999292,0,0,1102,176,-239,254);
    quest::spawn2(999287,0,0,812,344,-239,128);
    quest::spawn2(999288,0,0,1103,345,-239,128);
    quest::spawn2(999289,0,0,958,177,-239,253);
    }
}


sub CheckForRavs {
    if(!$entity_list->GetMobByNpcTypeID(999297) && !$entity_list->GetMobByNpcTypeID(999298) && !$entity_list->GetMobByNpcTypeID(999287)) {
	}
}

sub EVENT_TIMER
{
if ($timer eq "repop")
  {
    quest::stoptimer("repop");
    quest::depopall(999292);
    quest::depopall(999291);
    quest::depopall(999287);
    quest::depopall(999288);
    quest::depopall(999289);
    quest::depopall(999290);
    quest::spawn2(999290,0,0,813,176,-239,254);
    quest::spawn2(999291,0,0,958,347,-239,128);
    quest::spawn2(999292,0,0,1102,176,-239,254);
    quest::spawn2(999287,0,0,812,344,-239,128);
    quest::spawn2(999288,0,0,1103,345,-239,128);
    quest::spawn2(999289,0,0,958,177,-239,253);
  }
}
This was a script for my zombie event in frostcrypt. certain zombies had to be killed in order to get the chest to spawn and if the wrong zombie was killed it reset the event entirely and you had to do it over.
Reply With Quote