function onDeath(cid, corpse, deathList)
if(isPlayer(cid) == true) then
for _, pos in pairs(getArea(getCreaturePosition(cid), 0, 0)) do
doSendMagicEffect(pos, 65)
end
doCreatureSay(cid, getCreatureName(cid) .. " killed by " .. getCreatureName(deathList[1]) .. " [DEATH]", TALKTYPE_ORANGE_1)
end...