Achaea experience script

Share your scripts and packages with other Mudlet users.
Post Reply
naftali
Posts: 138
Joined: Wed Jan 20, 2010 8:42 pm

Achaea experience script

Post by naftali »

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.

Code: Select all

display(xpFrom(70,80))

'23.89'
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.
Code: [show] | [select all] lua
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)

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: Achaea experience script

Post by Vadi »

Forgot to add the xpFrom function itself.

naftali
Posts: 138
Joined: Wed Jan 20, 2010 8:42 pm

Re: Achaea experience script

Post by naftali »

*facepalm*
Attachments
Experience.xml
The function and supporting tables
(7.51 KiB) Downloaded 460 times

Post Reply