local creatureevent = CreatureEvent("svargrondDeath")
function creatureevent.onDeath(creature, corpse, killer, mostDamageKiller, lastHitUnjustified, mostDamageUnjustified)
-- do your modications / checks here
return true
end
creatureevent:register()
-- login event to register the onDeath to the player
local creatureevent = CreatureEvent("registerSvargrondDeath")
function creatureevent.onLogin(player)
player:registerEvent("svargrondDeath")
return true
end
creatureevent:register()