local extraHealth = 100
local extraMana = 100
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 2156 then -- red gem
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) + extraHealth)
doCreatureAddHealth(cid, extraHealth)
doPlayerSendTextMessage(cid, 19, "You got " .. extraHealth .. " more health.")
elseif item.itemid == 2153 then -- violet gem
setCreatureMaxMana(cid, getCreatureMaxMana(cid) + extraMana)
doPlayerAddMana(cid, extraMana)
doPlayerSendTextMessage(cid, 19, "You got" .. extraMana .. " more mana.")
end
return true
end