function onDeath script
local deathListEnabled = true
local maxDeathRecords = 15
function onDeath(player, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified)
local playerId = player:getId()
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You are dead.")
if...