function onUse(cid, item, fromPosition, itemEx, toPosition)
local manamax = getPlayerMaxMana(cid)
local mana_add = (manamax * 0.07)
local storage = 1000
local time = 1
if exhaustion.check(cid, storage) then
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_POFF)
return doPlayerSendCancel(cid, "You are exhausted")
end
if(getPlayerVocation(cid) == 1) or (getPlayerVocation(cid) == 5) or (getPlayerVocation(cid) == 2) or (getPlayerVocation(cid) == 6)then
doPlayerAddMana(cid, mana_add)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
exhaustion.set(cid, storage, time)
doSendAnimatedText(getPlayerPosition(cid),""..mana_add.."", TEXTCOLOR_LIGHTBLUE)
else
doPlayerSendTextMessage(cid,22,"This is only for sorcerers and druids.")
end
return TRUE
end