woody100_1
New Member
- Joined
- Aug 11, 2011
- Messages
- 17
- Reaction score
- 0
As the title says , how would this script to tfs 1.1
Code:
function onDeath(cid, corpse, deathList)
if isPlayer(cid) and isPlayer(deathList[1]) then
local v = { killer_name = getCreatureName(deathList[1]), killer_level = getPlayerLevel(deathList[1]), target_name = getCreatureName(cid), target_level = getPlayerLevel(cid) }
local reward = doAddContainerItem(corpse.uid, 2353, 1)
doItemSetAttribute(reward, "description", "" .. (getPlayerSex(cid) == 0 and "Ella" or "El") .. " a sido asesinado al nivel " .. v.target_level .. " por " .. v.killer_name .. " cuando era nivel " .. v.killer_level .. " en ese momento. " .. (getCreatureSkullType(cid) <= SKULL_GREEN and "[Unjustified]" or "[Justified]"))
doItemSetAttribute(reward, "name", " corazon de " .. v.target_name)
doItemSetAttribute(reward, "aid", 75000)
end
return true
end