• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Problem with Forever AOL Black Skull Protection

jakehop22

New Member
Joined
Dec 19, 2009
Messages
31
Reaction score
1
~ * 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:
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:
Back
Top