• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Help me!] Aol script

Niioxce

Otland lurker
Joined
Jun 22, 2012
Messages
324
Reaction score
4
Location
Sweden
hey, since i used "stage.xml" Aol is bugged.. when they die the aol removes and the backpack to.. help?! D:
 
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" />
    </item>
help D:
 
LUA:
if getPlayerSlotItem(cid, 2).itemid == 2173 then
	doCreatureSetDropLoot(cid, false)
	doPlayerRemoveItem(cid, 2173 , 1)
end
Add it under onDeath() in playerdeath.lua in creature scripts.
 
Last edited:
Code:
<attribute key="charges" value="1"/>
add this part

- - - Updated - - -

@BlackReaper he is talking about aol not creaturescript :) it can be made in creaturescript
 
Back
Top