aly revised this gist . Go to revision
1 file changed, 1 insertion, 1 deletion
lowestjob.lua
| @@ -14,7 +14,7 @@ jobs = { | |||
| 14 | 14 | { name="SCH", xp=18 }, | |
| 15 | 15 | { name="AST", xp=22 }, | |
| 16 | 16 | { name="SGE", xp=29 }, | |
| 17 | - | { name="BRD", xp=4 }, | |
| 17 | + | { name="BRD", xp=3 }, | |
| 18 | 18 | { name="MCH", xp=20 }, | |
| 19 | 19 | { name="DNC", xp=27 }, | |
| 20 | 20 | { name="BLM", xp=5 }, | |
aly revised this gist . Go to revision
1 file changed, 38 insertions
lowestjob.lua(file created)
| @@ -0,0 +1,38 @@ | |||
| 1 | + | -- Uses FastJobSwitcher | |
| 2 | + | jobs = { | |
| 3 | + | { name="PLD", xp=1 }, | |
| 4 | + | { name="WAR", xp=2 }, | |
| 5 | + | { name="DRK", xp=21 }, | |
| 6 | + | { name="GNB", xp=26 }, | |
| 7 | + | { name="MNK", xp=0 }, | |
| 8 | + | { name="DRG", xp=4 }, | |
| 9 | + | { name="NIN", xp=19 }, | |
| 10 | + | { name="SAM", xp=23 }, | |
| 11 | + | { name="RPR", xp=28 }, | |
| 12 | + | { name="VPR", xp=30 }, | |
| 13 | + | { name="WHM", xp=6 }, | |
| 14 | + | { name="SCH", xp=18 }, | |
| 15 | + | { name="AST", xp=22 }, | |
| 16 | + | { name="SGE", xp=29 }, | |
| 17 | + | { name="BRD", xp=4 }, | |
| 18 | + | { name="MCH", xp=20 }, | |
| 19 | + | { name="DNC", xp=27 }, | |
| 20 | + | { name="BLM", xp=5 }, | |
| 21 | + | { name="SMN", xp=18 }, | |
| 22 | + | { name="RDM", xp=24 }, | |
| 23 | + | { name="PCT", xp=31 } | |
| 24 | + | } | |
| 25 | + | lowest = { name="NONE", level=999, xp=-1 } | |
| 26 | + | for _, job in ipairs(jobs) do | |
| 27 | + | CurrentLevel = GetLevel(job.xp) | |
| 28 | + | job.level = CurrentLevel | |
| 29 | + | LogDebug(job.name .. ": " .. job.level) | |
| 30 | + | if lowest.level > job.level then | |
| 31 | + | LogDebug(job.name .. " (" .. job.level .. ") lower than " .. lowest.name .. " (" .. lowest.level .. ")") | |
| 32 | + | lowest = job | |
| 33 | + | end | |
| 34 | + | end | |
| 35 | + | yield("/echo Switching to " .. lowest.name .. " (" .. lowest.level .. ")") | |
| 36 | + | if lowest.name ~= "NONE" then | |
| 37 | + | yield("/" .. lowest.name) | |
| 38 | + | end | |