Hello can someone help me with converting this script to tfs 1.2?
LUA:
function onDeath(cid, corpse, deathList)
if(isPlayer(cid) == true) then
for _, pos in pairs(getArea(getCreaturePosition(cid), 1, 1)) do
doSendMagicEffect(pos, 65)
end
doCreatureSay(cid, getCreatureName(cid) .. " killed by " .. getCreatureName(deathList[1]) .. " [R.I.P]", TALKTYPE_ORANGE_1)
end
return true
end[code]