I believe this function will give you an alarm when 1500 exp left to lvl (You can change it at local threshold I suppose). Not % left, but still better than x experience. Not made by me, I don't quite remember, but I think it was @
Syntax posting it in the chat, when xenobot had a chat ;P
PHP Code:
function Self.ExpToLevel(level)
local x = level or Self.Level() + 1
return ((50 / 3) * (x^3 - 6 * x^2 + 17 * x - 12)) - Self.Experience()
end
local threshold = 1500
while(true)do
if(Self.ExpToLevel() < threshold)then
alert()
end
wait(1000)
end