Simple function lua
data\creaturescripts\scripts\amulet inf.lua
Amulet_id = 2196
function onDeath(cid, corpse, deathList)
if(isPlayer(cid) == true) then
if(getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == Amulet_id) then
doPlayerSetStorageValue(cid, 25000, 1)
end
end...