• 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 problems, have searched...

Tickit

Member
Joined
Feb 20, 2009
Messages
364
Reaction score
5
Location
Somewhere in the jungle of Sweden
Okey i have been searching for a while now but i cant find annyone who got the same problem as me..

On my server you dont loose the aol but you loose your backpack, i haven't created it with a GOD/GM.

I tried to change to: in Items.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>

But still no change..

Annyone know how to fix?:)

PS. I use PVP-Enforced but the client is 8.6 so i should work?

EDIT: It was thanks to the PVP-Enforced.
 
Last edited:
In creaturescripts.xml add
Code:
<event type="preparedeath" name="aoli" event="script" value="aol.lua"/>
Login.lua add
Code:
	registerCreatureEvent(cid, "aoli")
aol.lua
Lua:
function onPrepareDeath(cid)
if isPlayer(cid) == true then
      if getPlayerSlotItem(cid, 2).itemid == 2173 then
                doCreatureSetDropLoot(cid, true)
                doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 0)
	        doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 0)
                doPlayerRemoveItem(cid, 2173, 1)
      end
end
return 1
end
Rep++
 
Back
Top