Mr.Caffeine
Active Member
- Joined
- Nov 4, 2018
- Messages
- 79
- Reaction score
- 43
Hello, I would like an help in an event script for monsters that ignores the player's damage, so all the attack that the monster suffers is the same number through a configurable value. Regardless player's level and equipment.
For example, I would like to configure so that all hit damage suffered by this monster is awalys "100" is it possible to do this?
For example, I would like to configure so that all hit damage suffered by this monster is awalys "100" is it possible to do this?
Lua:
function onStatsChange(cid, attacker, type, combat, value)
if isPlayer(attacker) and isMonster(cid) and type == STATSCHANGE_HEALTHLOSS then
print("x")
local customdamage = 100
doTargetCombatHealth(attacker, cid, combat, -customdamage, -customdamage, 255)
return false
end
return true
end
Last edited: