Did not see any script for newer version xD
so feel free to use xD
it wont drop any heart if player dies by monster
how it looks like:
keep in mind to regist in xml and login lua hehe
so feel free to use xD
it wont drop any heart if player dies by monster
how it looks like:
keep in mind to regist in xml and login lua hehe
Lua:
function onDeath(player, corpse, killer, mostDamageKiller, lastHitUnjustified, mostDamageUnjustified)
if not killer:isPlayer() then
return true
end
local heart = corpse:addItem(2353, 1)
heart:setAttribute(ITEM_ATTRIBUTE_NAME, ''..player:getName().."'s Heart")
heart:setAttribute(ITEM_ATTRIBUTE_DESCRIPTION, ''..killer:getName()..' ['..killer:getLevel()..'] has killed '..player:getName()..' ['..player:getLevel()..']')
return true
end