pioncz
New Member
- Joined
- Dec 3, 2008
- Messages
- 149
- Reaction score
- 1
Hi,
If somebody die the killer will take heart with special discription, but i want to put this heart to corpse. So how can i make this ? This is script for giving special heart to killer :
If somebody die the killer will take heart with special discription, but i want to put this heart to corpse. So how can i make this ? This is script for giving special heart to killer :
Code:
-- by zonet, watkins577 and Pioncz
local sex = ""
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
if isPlayer(mostDamageKiller) == TRUE then
if getPlayerSex(cid) == 0 then
sex = "she"
else
sex = "he"
end
local config = {
addItem = 1685,
itemDesc = "You read: "..getCreatureName(lastHitKiller).. " killed by "..getPlayerName(cid).." at "..getPlayerLevel(cid).." level."
}
heart = doPlayerAddItem(mostDamageKiller, config.addItem)
doSetItemSpecialDescription(heart, config.itemDesc)
end
return TRUE
end