EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   $mob->Heal(); (https://www.eqemulator.org/forums/showthread.php?t=38297)

Esildor 05-15-2014 05:12 PM

$mob->Heal();
 
Hola,

Does $mob->Heal(); not work? I understand it as the mob the script is being fired on is going to heal for the amount you set? I've tried both percentage and just hit point value, neither want to work.

Kingly_Krab 05-15-2014 05:15 PM

Would you mind showing me the [code] you're using?

Secrets 05-15-2014 06:30 PM

Quote:

Originally Posted by Esildor (Post 230507)
Hola,

Does $mob->Heal(); not work? I understand it as the mob the script is being fired on is going to heal for the amount you set? I've tried both percentage and just hit point value, neither want to work.

Heal only heals the mob to full as far as I know. You are looking at it the wrong way; you should instead do:
$mob->SetHP(val);
where val could be a formula, a value, etc.

Akkadius 05-15-2014 08:34 PM

There are plugins for this. See Wiki


All times are GMT -4. The time now is 01:17 PM.

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