There is no script for AOL...
Explain more what you need !
That script should work on 0.3.2! there is nothing wron with it
It is pvp-enforced?
Or post here your items.xml just the part from amulet of loss...
<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"/>
there you go
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
if getPlayerSlotItem(cid, 2).itemid == 2173 then
doPlayerRemoveItem(cid, 2173, 1)
end