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

Aol bugg

godleon

Banned User
Joined
Apr 10, 2012
Messages
212
Reaction score
3
Someone help when payers buys aol they still lose items with it ? rep++++++ for help.
 
just goto Items.xml and search for Amulet of loss change its attributes etc to this

XML:
 <item id="2173" article="an" name="amulet of loss">
    <attribute key="weight" value="420" />
    <attribute key="slotType" value="necklace" />
    <attribute key="charges" value="1" />
    <attribute key="preventDrop" value="1" />
  </item>

If it didnt work then leave it as it is and do the things below..

In Login.lua

LUA:
registerCreatureEvent(cid, "aol")

create a lua file called aol.lua

LUA:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
	if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == AOLID) then 
		doRemoveItem(AOLUID, 1)
	end
	return true
	end

Register it in creaturescripts.xml
XML:
<event type="preparedeath" name="aol" event="script" value="aol.lua"/>
 
Last edited:
Back
Top