Script I cooked up based on numbers I found on the Achaea forums in a Zmud script posted by Sena. Tells you how close one level is to another - i.e. level 70 is 23.89% of the way to level 80. If anybody is actually interested I could make another script that uses the same numbers to find the absolute experience (i.e. 7450000) from one level to another.
Usage:
xpFrom(level1,level2) returns the number. To see it you need to use it in some kind of a script.
also works for decimal levels
Code: Select all
display(xpFrom(73.67,81.0537))
'27.21'
make a trigger that captures your level and percentage to the next, then set a goal and create a gauge to show how close you are! I use this myself. You need to create the gauge before, but this sets it perfectly.
local mylevel = tonumber(matches[2]) + (0.01 * tonumber(matches[3]))
local goallevel = 80
local percenttogoal = xpFrom(mylevel,goallevel)
setGauge("xpBar", percenttogoal, 100, "Level " .. mylevel .. " " .. percenttogoal .. "% to level " .. goallevel)