A leveling guide for WoW 1.12 players of pfQuest, based on Easy Route by stealthzi (MIT). See README.md and CHANGES.md. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XfR1apt9f3R7SxBKB2FF2D
48 lines
1.9 KiB
Lua
48 lines
1.9 KiB
Lua
-- texlua fuzz.lua <addon> <race> <class> <level> <mode> <playIters>
|
|
-- Plays a bit, then runs every slash command and clicks/hovers every button of every window, several rounds.
|
|
local here = arg[0]:match("^(.*)/") or "."
|
|
dofile(here .. "/lib.lua")
|
|
local W, ER, S, P, try, settle = H.W, H.ER, H.S, H.P, H.try, H.settle
|
|
local N = tonumber(arg[6] or "100")
|
|
PLAY(N)
|
|
|
|
local SKIP = { pfQuest_xpGuideSettingsClose = true }
|
|
local function fire(f, script, a1)
|
|
local s = f._scripts[script]
|
|
if not s then return end
|
|
this, arg1 = f, a1 or "LeftButton"
|
|
local ok, err = L53.xpcall(s, debug.traceback)
|
|
if not ok then table.insert(W.errors, "[" .. script .. " " .. tostring(f._name) .. "] " .. err) end
|
|
end
|
|
local cmds = { "", "wizard", "window", "area", "menu", "arrow", "arrow", "next", "config", "list", "tips", "tips", "skull", "skull", "money",
|
|
"rate", "mode casual", "mode medium", "mode hard", "mode casual", "selftest", "unskip", "note hello", "prompt", "prompt", "party", "party",
|
|
"chain", "chain", "minimap", "minimap", "?", "help", "copy", "about", "new", "settings", "stop", "", "bogus" }
|
|
for round = 1, 3 do
|
|
for _, c in ipairs(cmds) do
|
|
try("/er " .. c, function() SlashCmdList.PFQUEST_XPGUIDE(c) end)
|
|
W.Tick(0.3, 2)
|
|
end
|
|
-- every window
|
|
for _, fn in ipairs({ "ShowSettings", "ShowWizard", "ShowGuideMenu", "ShowHelp", "ShowExport", "ShowWelcome", "ShowTracker", "ShowSimple",
|
|
"ShowQuestLogPanel", "OpenRate" }) do
|
|
if ER[fn] then try(fn, function() ER[fn]() end) end
|
|
end
|
|
W.Tick(0.3, 3)
|
|
-- every button: hover then click (a snapshot: clicking makes new frames)
|
|
local list = {}
|
|
for _, f in ipairs(W.frames) do table.insert(list, f) end
|
|
for _, f in ipairs(list) do
|
|
if not SKIP[f._name or ""] then
|
|
fire(f, "OnEnter"); fire(f, "OnLeave")
|
|
end
|
|
end
|
|
for _, f in ipairs(list) do
|
|
if not SKIP[f._name or ""] and f._scripts.OnClick then
|
|
fire(f, "OnClick")
|
|
W.Tick(0.1, 1)
|
|
end
|
|
end
|
|
PLAY(30)
|
|
end
|
|
REPORT()
|