Thread: my $hp?
View Single Post
  #1  
Old 09-21-2008, 04:21 PM
Neiv
Hill Giant
 
Join Date: May 2008
Location: Colorado
Posts: 238
Default my $hp?

I am setting out bots that provide full heals to those who donate plat. I'm using Angelox's buff bot script, which I've modified to include healing only. The script includes a spawn event that sets a proximity. The script triggered by the ENTER event is as follows:

Code:
sub EVENT_ENTER
	{
	$npc->SetAppearance(1);
	quest::say("Healer available. I'm inside the gate, near the causeway to the wall.");
	}
I would like to make this script trigger only when a player enters the proximity whose health is below, say, 70%. The HP events and functions seem only to apply to npcs and mobs, not players. Nor could I find a quest object that would accomplish this. Is there a variable that would return my current HP in percentage to allow me to do this? Thanks.
Reply With Quote