View Single Post
  #4  
Old 01-31-2009, 12:23 AM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Try this:

Code:
sub EVENT_COMBAT {
 if ($combat_state == 1) {
  quest::setnexthpevent(75);
  }
}

sub EVENT_HP {
 if ($hpevent == 75) {
  quest::setnexthpevent(50);
  $x1 = $npc->GetX();
  $y1 = $npc->GetY();
  $z1 = $npc->GetZ();
  quest::spawn(999270,0,0,$x1,$y1,$z1);
  quest::spawn(999270,0,0,$x1,$y1,$z1);
  quest::spawn(999270,0,0,$x1,$y1,$z1);
 }
 elsif ($hpevent == 50) {
  quest::setnexthpevent(25);
  $x1 = $npc->GetX();
  $y1 = $npc->GetY();
  $z1 = $npc->GetZ();
  quest::spawn(999270,0,0,$x1,$y1,$z1);
  quest::spawn(999270,0,0,$x1,$y1,$z1);
  quest::spawn(999270,0,0,$x1,$y1,$z1);
  quest::spawn(999270,0,0,$x1,$y1,$z1);
  quest::spawn(999270,0,0,$x1,$y1,$z1);
 }
 elsif ($hpevent == 25) {
  $x1 = $npc->GetX();
  $y1 = $npc->GetY();
  $z1 = $npc->GetZ();
  quest::spawn(999270,0,0,$x1,$y1,$z1);
  quest::spawn(999270,0,0,$x1,$y1,$z1);
  quest::spawn(999270,0,0,$x1,$y1,$z1);
  quest::spawn(999270,0,0,$x1,$y1,$z1);
  quest::spawn(999270,0,0,$x1,$y1,$z1);
  quest::spawn(999270,0,0,$x1,$y1,$z1);
  quest::spawn(999270,0,0,$x1,$y1,$z1);
  quest::spawn(999270,0,0,$x1,$y1,$z1);
 }
}

Last edited by cavedude; 01-31-2009 at 08:26 AM..
Reply With Quote