Hi guys Otland,
I am using this code for my amulet,
But he wanted it when the amulet was used, it would give automatic "bless" along with the amulet!
Please help-me!
Thanks Otland.
I am using this code for my amulet,
Lua:
local corpse_ids = {
[0] = 3065,
[1] = 3058
}
function onPrepareDeath(cid, deathList)
if getCreatureSkullType(cid) < 6 then
if getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 12668 then
doCreatureSetDropLoot(cid, false)
doItemSetAttribute(doCreateItem(corpse_ids[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 for amulet!")
end
end
return true
end
But he wanted it when the amulet was used, it would give automatic "bless" along with the amulet!
Please help-me!
Thanks Otland.