• 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
209
Reaction score
8
good afternoon, someone help me with a script? if the boss takes any damage he heals the damage taken
 

Sarah Wesker

ค∂vαηcε รүηтαx ❤
Support Team
Joined
Mar 16, 2017
Messages
997
Solutions
100
Reaction score
1,033
Location
London
GitHub
MillhioreBT
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
 
Top