Currently you are closing your sub EVENT_HP out before the next hpevent.
Code:
sub EVENT_HP
{
quest::emote("quaffs a magical elixir.");
quest::shout("Now you will die!");
quest::npcsize(9);
quest::modifynpcstat("min_hit",70);
quest::modifynpcstat("max_hit",120);
quest::setnexthpevent(50);
} #Closing the event early
if($hpevent==50)
{
quest::shout("Guards!");
my $x = $npc->GetX();
my $y = $npc->GetY();
my $z = $npc->GetZ();
my $h = $npc->GetHeading();
quest::spawn2(11174,0,0,$x+5,$y+5,$z,$h);
quest::spawn2(11175,0,0,$x+5,$y-5,$z,$h);
}
Should be:
Code:
sub EVENT_HP {
if ($hpevent == 75) {
quest::emote("quaffs a magical elixir.");
quest::shout("Now you will die!");
quest::npcsize(9);
quest::modifynpcstat("min_hit",70);
quest::modifynpcstat("max_hit",120);
quest::setnexthpevent(50);
}
if ($hpevent == 50) {
quest::shout("Guards!");
my $x = $npc->GetX();
my $y = $npc->GetY();
my $z = $npc->GetZ();
my $h = $npc->GetHeading();
quest::spawn2(11174,0,0,$x+5,$y+5,$z,$h);
quest::spawn2(11175,0,0,$x+5,$y-5,$z,$h);
}
}
That should work for ya