• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

RevScripts monster heal when taking damage

jel

Member
Joined
Mar 22, 2014
Messages
302
Reaction score
12
good afternoon, someone help me with a script? if the boss takes any damage he heals the damage taken
 
How do you want to kill the monster then?
I agree with you, in any case it is better to make it invulnerable xd

R > @jel: you can use this event, to handle the damage taken:
Lua:
local cevent = CreatureEvent("onHealthChange")
function cevent.onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
    return primaryDamage, primaryType, secondaryDamage, secondaryType
end
 
Back
Top