EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Boss stop attack if Hp (https://www.eqemulator.org/forums/showthread.php?t=35960)

javewow 11-07-2012 05:56 AM

Boss stop attack if Hp
 
Now BD Boss's HP error

Game player all death time ----CR

BOSS Cannot restore HP?

#heal ?
------------------------------------------------------
sub EVENT_ENTERZONE {

if ($npc =stop attack)
{
set $npc->::GM#heal }

}

------------------------------------



I don't know if this is correct grammar

Help!

trevius 11-07-2012 07:54 AM

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);
        }

}


javewow 11-07-2012 10:42 AM

Thank you !

You give is the Association for all zone or 1 Npc?

Give instructions for pluging.pl?

This I know

help


All times are GMT -4. The time now is 03:37 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.