pawlacz741
New Member
- Joined
- Jan 23, 2009
- Messages
- 90
- Reaction score
- 2
Hello i using [8.54-8.57] The Forgotten Server v0.2.7 (Mystic Spirit) and i need to remake my script to this server becouse actualy not working.
Please fast i need it rly...
LUA:
-- Credits to LeozeraRox
function onDeath(cid, corpse, deathList)
local cidpos = getPlayerPosition(deathList[1])
loot = 2151
loots = 5944
item = doPlayerAddItem(deathList[1],loot,1)
item = doPlayerAddItem(deathList[1],loots,1)
if(isPlayer(deathList[1]) == TRUE) then
hitKillerName = getPlayerName(deathList[1])
doItemSetAttribute(item, "description", "hereputtext")
doPlayerSendTextMessage(deathList[1], MESSAGE_STATUS_CONSOLE_ORANGE, "You Killed " .. getCreatureName(cid) .. ".")
doSendMagicEffect(cidpos,12)
else
hitKillerName = getCreatureName(deathList[1])
doSetItemSpecialDescription(item,"This is the heart of "..getPlayerName(cid).." killed at Level "..getPlayerLevel(cid).." by a "..hitKillerName..".")
end
doItemSetAttribute(item, "name", getCreatureName(cid).."'s Heart")
return TRUE
end
Please fast i need it rly...
Last edited by a moderator: