PDA

View Full Version : $mob->Heal();


Esildor
05-15-2014, 05:12 PM
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
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