~ * SOLVED * ~
I'm having a problem with Forever AOL, Black Skull Protection.
The Forever AOL works perfectly fine (without any skull), and it has unlimited charges (when you die, you won't lose it). My problem is when you get a skull and you die, you lose everything.
I've looked around on this site and other sites and still can't find anything.
PLeasE, someone help me out.
Script:
And in my creaturescripts.xml :
I'm having a problem with Forever AOL, Black Skull Protection.
The Forever AOL works perfectly fine (without any skull), and it has unlimited charges (when you die, you won't lose it). My problem is when you get a skull and you die, you lose everything.
I've looked around on this site and other sites and still can't find anything.
PLeasE, someone help me out.
Script:
Code:
local corpse_ids = {
[0] = 3065, -- female
[1] = 3058 -- male
}
function onPrepareDeath(cid, deathList)
if getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196 then
doCreatureSetDropLoot(cid, false)
doSendMagicEffect(getThingPos(cid), CONST_ME_HOLYAREA)
local corpse, killers = doCreateItem(corpse_ids[getPlayerSex(cid)], 1, getThingPos(cid)), ""
for i = 1, math.min(getConfigInfo('deathAssistCount') + 1, #deathList) do
killers = killers .. (i == 1 and "" or ", ") .. (isMonster(deathList[i]) and "a " or "") .. getCreatureName(deathList[i])
end
doItemSetAttribute(corpse, "specialdescription", "You recognize " .. getCreatureName(cid) .. ". " .. (getPlayerSex(cid) == 0 and "She" or "He") .. " was killed by " .. killers .. ".")
end
return true
end
And in my creaturescripts.xml :
Code:
<event type="preparedeath" name="onPrepareDeath" event="script" value="aol.lua"/>
Last edited: