local values = {
[1] = {min = 350, max = 500},
[3] = {min = 200, max = 250},
[4] = {min = 100, max = 150}
}
values[2] = values[1] -- make druid vocation id the same as sorc id
function onUse(cid, item, fromPosition, itemEx, toPosition)
local value = values[getPlayerVocation(cid)]
-- just incase player vocation doesnt exist in the table for some reason
if not value then
return true
end
doPlayerAddMana(cid, math.random(value.min, value.max))
return true
end