View Single Post
  #2  
Old 11-07-2012, 07:54 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

No, that isn't even close to the correct way to script what you are wanting. It sounds like you are wanting to reset a bosses HPs when everyone in the zone does, or after aggro has been cleared due to a failure to kill the boss.

You will want to refer to the quest wiki pages here:

http://www.eqemulator.net/wiki/wikka...=QuestTutorial

and here:

http://www.eqemulator.net/wiki/wikka...a=QuestObjects

This should do what you are wanting:

Code:
sub EVENT_COMBAT {

	if ($combat_state == 0)
	{
		quest::sethp(100);
	}

}
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote