function onLogin(cid)
local amulet = getPlayerSlotItem(cid, 2)
if (amulet ~= nil) then
if (amulet.itemid == 2173) then
doItemSetAttribute(amulet.uid, 'charges', 99)
end
end
return true
end
<attribute key="charges" value="99"/>
function onLogin(cid)
local amulet = getPlayerSlotItem(cid, 2)
if (amulet ~= nil) then
if (amulet.itemid == 2173) then
doItemSetAttribute(amulet.uid, 'charges', 99)
end
end
return true
end