darkmu
Well-Known Member
I'm trying to make a system that when dying by a monster, the person will get a storage in which they will use it in the future to recover the level using an item.
Lua:
function onDeath(creature, corpse, killer, mostDamageKiller, lastHitUnjustified, mostDamageUnjustified)
local player = Player(creature)
if not player then
return false
end
player:setStorageValue(15715,1)
end
return false
end