Lua:
local damagestepin = MoveEvent()
function damagestepin.onStepIn(creature, item, position, fromPosition)
if creature:isPlayer() then
local hit = creature:getMaxHealth() / 1
creature:addHealth(-hit)
end
return true
end
damagestepin:type("stepin")
damagestepin:id(x)
damagestepin:register()
I'm trying to make that every time the player passes by the item he receives damage in life but when the player is in utamo the damage is going to utamo and not to life there is how even from utamo vita the player receives damage in his life