Here try this.
function onUse(cid, item, fromPosition, itemEx, toPosition)
local mana = getCreatureMaxMana(cid)
local maxheal = (mana * 0.05)
local min,max = 1+getPlayerLevel(cid)*0.4+maxheal , 50+getPlayerLevel(cid)*0.6+maxheal
if exhaustion.check(cid,1990) == true then
min = min *...