so usar assim
function onDeath(cid, corpse, deathList)
if (getPlayerSlotItem(cid, 2).itemid == 2196) then
doPlayerRemoveItem(cid, 2196, 1)
doCreatureSetDropLoot(cid, false)
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
end
return true
end
e se for proteger skill tbm
usa assim
function onDeath(cid, corpse, deathList)
if (getPlayerSlotItem(cid, 2).itemid == 2196) then
doPlayerRemoveItem(cid, 2196, 1)
doCreatureSetDropLoot(cid, false)
doPlayerSetLossSkill(cid, false)
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
end
return true
end