Thread: my $hp?
View Single Post
  #2  
Old 09-21-2008, 04:34 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

This is a modified version of something I use for a fun encounter I setup recently. It should work for you:

Code:
sub EVENT_ENTER {

my $player = $entity_list->GetClientByID($userid);
my $get_player = $player->CastToClient();
my $player_hps = $get_player->GetHPRatio();

  if ($player_hps <= 70) 	{
    $npc->SetAppearance(1);
    quest::say("Healer available. I'm inside the gate, near the causeway to the wall.");
  }
}
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!

Last edited by trevius; 09-22-2008 at 12:36 AM..
Reply With Quote