function onEquip(cid, item, slot)
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
if isSorcerer(cid) or isDruid(cid) then
doPlayerAddMagLevel(cid, 10)
elseif (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196 and isPaladin(cid) or isKnight(cid)) then
doPlayerAddSkill(cid, 2, 10, 1)
doPlayerAddSkill(cid, 3, 10, 1)
doPlayerAddSkill(cid, 4, 10, 1)
doPlayerAddSkill(cid, 5, 10, 1)
end
return true
end
return true
end
function onDeEquip(cid, item, slot)
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
if isSorcerer(cid) or isDruid(cid) then
doPlayerRemoveMagLevel(cid, -10)
elseif (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196 and isPaladin(cid) or isKnight(cid)) then
doPlayerRemoveSkill(cid, 2, -10, 1)
doPlayerRemoveSkill(cid, 3, -10, 1)
doPlayerRemoveSkill(cid, 4, -10, 1)
doPlayerRemoveSkill(cid, 5, -10, 1)
end
return true
end
return true
end