I am attempting to over come the hp bug when clients zone. I don't like having a characters hp set to 30k when it should be 45k, this is really annoying for melee who can not heal themselves.
I am attempting to use the player.pl for the script but I know i am doing something wrong. According to the questobjects list i can find the $client can not be used in this manner:
Code:
sub EVENT_ENTERZONE {
if ($client->GetHP() != $client->GetMaxHP()); {
SetHP($client->GetMaxHP());
}
}
Using that causes the characters hp to flux wildly between 12-65%. I realized after the fact that GetHP(), GetMaxHP() and SetHP() can not be used on clients. Or atleast it can not according to this list:
http://www.eqemulator.net/wiki/wikka...a=QuestObjects
Which raises the question is that list complete? If not then where can I find a complete list at?. And why can't GetHP(), GetMaxHP() and SetHP() be used on clients, as that could very helpful at times. My search attempts for quest objects didn't yield anything useful.
Today I started working on a proximity triggered version of the same script but I think I am using $client in an incorrect manner. Here is the proximity script:
Code:
sub EVENT_SPAWN
{
$x = $npc->GetX();
$y = $npc->GetY();
quest::set_proximity($x - 100, $x + 100, $y - 100, $y + 100);
}
sub EVENT_ENTER
{
$npc->CastSpell(13, $client);
}
Any help or guidance would be appreciated.