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

TFS 0.X [OTX 2] Weird bug Amulet of Loss - Loosing items or not loosing AoL

potinho

Intermediate OT User
Joined
Oct 11, 2009
Messages
1,397
Solutions
17
Reaction score
148
Location
Brazil
Hello everyone, everything good? I have a strange bug that rarely happens, I just believe it happens because it happened to me: sometimes, even with AoL, when a player dies he loses his backpack. With me, after that happened, I died several times in the char (with aol) and he just stopped losing AoL and everything seems to be ok after server restart. Has anyone seen this bug?

I have an infinite AoL (I don't know if it can be related) and two creaturescripts that deal with item loss, as follows:

Lua:
function onDeath(cid, corpse, deathList)
    if getPlayerSlotItem(cid, 2).itemid == 2173 then
                doPlayerRemoveItem(cid, 2173, 1)
end
    return true
end

function onDeath(cid, corpse, deathList)
    if getPlayerLevel(cid) < 9 then
        doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
    end
    return true
end

And this one

Lua:
function onDeath(cid, corpse, deathList)
            if isPlayer(cid) and getPlayerLevel(cid) < 60 then
           doSetCreatureDropLoot(cid, false)
       end
return true
end

Thats how AoL looks in items.xml

XML:
    <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>

Infinite AoL:

Lua:
    <item id="5802" article="an" name="extreme amulet">
        <attribute key="weight" value="820"/>
        <attribute key="preventDrop" value="1"/>
        <attribute key="armor" value="2"/>
        <attribute key="healthGain" value="25"/>
        <attribute key="healthTicks" value="2000"/>
        <attribute key="manaGain" value="25"/>
        <attribute key="manaTicks" value="2000"/>
        <attribute key="showattributes" value="1"/>
        <attribute key="transformDeEquipTo" value="5337"/>
        <attribute key="slotType" value="necklace"/>
    </item>
 
Back
Top