Code:
function onDeath(creature, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified)
local targetMonster = creature:getMonster()
if not targetMonster or targetMonster:getMaster() then
return true
end
local tile = targetMonster:getPosition():getTile()
local thing = tile:getTopVisibleThing()
if thing:isItem() then
thing:setActionId(3193)
end
return true
end
The above code does not work.
I did not find any example for this on the internet.
Last edited by a moderator: