how would we make a mob heal itself on deaggro.?
Example: a small group is fighting a Notorious monster... Everyone in group dies. At this point the mob will deaggro And should Heal up to full health or start a heavy regen untill health is back at 100%...
Is this done inside the source files on a per family basis? would it be in mobutils.cpp or somewhere else?
can this be triggered by a lua script on a per nm basis?
Mob question..
Re: Mob question..
Hi, you probably can do that by adding mod regen in the script of the mob once the mob goes or is roaming in OnMobRoam.
but the regen once a mob is left unclaimed is really fast like 10 percent hp every tick and sometimes much quicker and i don't know if a doted unclaimed mob is considered as roaming (it prevents hp regen).
but the regen once a mob is left unclaimed is really fast like 10 percent hp every tick and sometimes much quicker and i don't know if a doted unclaimed mob is considered as roaming (it prevents hp regen).
Re: Mob question..
to do it properly, would probably have to be something in the mobs checkregen (ie. if it's roaming and it's not taking damage over time, heal it a bunch)
Re: Mob question..
Perfect! Thank you!
this is what worked...
this is what worked...
Code: Select all
-----------------------------------
-- OnMobRoam
-----------------------------------
function OnMobRoam(mob)
mob:addHP( 250000 );
end;