local function t(l)
local r = ((50 * math.pow(l, 3) / 3) - (100 * math.pow(l, 2)) + ((850 * l) / 3) - 200)
return r
end
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local s = 35478
if player:getStorageValue(s) == 1 then
player:sendTextMessage(MESSAGE_STATUS_SMALL, "You cannot use this item more than once.")
return true
end
player:addExperience(t(player:getLevel() + 5) - player:getExperience(), true --[[set to false if you don't want to show up the exp animated text to player.]])
player:setStorageValue(s, 1)
player:sendTextMessage(MESSAGE_STATUS_SMALL, "You grew up 5 levels!")
return true
end