Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-04-2010, 06:16 PM
blackdragonsdg
Dragon
 
Join Date: Dec 2008
Location: Tennessee
Posts: 656
Default Healing clients on zone entry

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.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:16 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3