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

amulet of loss

Lbtg

Advanced OT User
Joined
Nov 22, 2008
Messages
2,398
Reaction score
165
hello otlanders my aol dont work how i can fix it ?:peace:
 
Creaturescripts.xml add

<event type="preparedeath" name="Aol" event="script" value="aol.lua"/>login.lua

login.lua add

registerCreatureEvent(cid, "Aol")

aol.lua

function onPrepareDeath(cid)
if getPlayerSlotItem(cid, 2).itemid == 2173 then
doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 0)
doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 0)
doPlayerRemoveItem(cid, 2173, 1)
else
doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 100)
doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 100)
end
return 1
end



(You can always Rep++)
Give it a try :)
 
this script work for the normal aol's , ones bought from npc? lol

or if you dont have that find any !buy aol command on otland and put to your server lol
 
Back
Top