<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>
if getPlayerSlotItem(cid, 2).itemid == 2173 then
doPlayerRemoveItem(cid, 2173, 1)
end
It depends on what server version you are using; but for 0.3.2+ use this
in items.xml
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>
For the problem of the aol not dissapearing after death, add this to data/creaturescripts/scripts/playerdeath.lua
PHP:if getPlayerSlotItem(cid, 2).itemid == 2173 then doPlayerRemoveItem(cid, 2173, 1) end
It works, You dont loose eq when You using aol... but also You dont loose aol...
deathLostPercent = 10
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end