Rugged Mage
Lua Scripter
- Joined
- Mar 8, 2010
- Messages
- 1,182
- Solutions
- 2
- Reaction score
- 77
i need to know how to make people not lose items when they die, without aol and also how do i make people get coins when they kill someone and start with skills
local corpse = {
[0] = 3065,
[1] = 3058
}
function onPrepareDeath(cid, deathList)
doCreatureSetDropLoot(cid, false)
doItemSetAttribute(doCreateItem(corpse[getPlayerSex(cid)], 1, getThingPos(cid)), "description", "You recognize " .. getCreatureName(cid) .. ". He was killed by " .. (isMonster(deathList[1]) and "a " .. string.lower(getCreatureName(deathList[1])) or isCreature(deathList[1]) and getCreatureName(deathList[1]) or "a field item") .. ".\nHis soul was protected.")
return true
end