• 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!

Aols Dont Work :(

Can annyone tell me why aols dont work on my server ? :S

Easy fix.
To prevent item's to drop upon death
In items.xml change it to this:
Code:
	<item id="2173" article="an" name="amulet of loss">
		<attribute key="weight" value="420"/>
		<attribute key="slotType" value="necklace"/>
		<attribute key="preventDrop" value="1"/>
		<attribute key="charges" value="1"/>
	</item>

To remove AoL upon death
Go to:
/data/creaturescripts/scripts/ and open playerdeath.lua

Under:
Code:
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
Add:
Code:
if getPlayerSlotItem(cid, 2).itemid == 2173 then
                doPlayerRemoveItem(cid, 2173, 1)
end
So it looks like
This:
Code:
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
if getPlayerSlotItem(cid, 2).itemid == 2173 then
                doPlayerRemoveItem(cid, 2173, 1)
end
 
Back
Top