Files

18 lines
783 B
Lua

-- texlua playfast.lua <addon> <Race> <CLASS> 1 casual <iterations> [rate]
-- Plays the Fast guides from the start of the race on to the end of the route, with the quest log following the steps.
local here = arg[0]:match("^(.*)/") or "."
dofile(here .. "/lib.lua")
local W, ER, S, P = H.W, H.ER, H.S, H.P
W.Tick(3, 3)
ER.SetXPRate(tonumber(arg[7] or "2"), true)
local start
for _, g in ipairs(S.Guides()) do if g.fast and g.lo == 1 and S.Applies(g.defaultFor) then start = g end end
if not start or not ER.StartGuide(S.Key(start), true, true) then print("FAIL no Fast start guide") return end
ER.ShowTracker()
H.settle()
PLAY(tonumber(arg[6] or "6000"))
local fastVisits = 0
for _, v in ipairs(visits) do fastVisits = fastVisits + 1 end
print("fast visits: " .. fastVisits)
REPORT()