This commit is contained in:
2024-06-05 19:22:21 +02:00
parent 1c89ffa29d
commit 3e36ad5ae0
3 changed files with 118 additions and 3 deletions

View File

@@ -0,0 +1,29 @@
-- TICKER_10000
function()
if not InterfaceGUI then return end
if not InterfaceGUI.Cashe_1 then return end
for k, v in pairs(InterfaceGUI.Cashe_1) do
if v.UIMSG_BEST_RUNS then
local bestRuns = v.UIMSG_BEST_RUNS
for i = 1, #bestRuns, 5 do
local challengeId = bestRuns[i]
local roleMask = bestRuns[i + 1]
-- print(roleMask)
local stars = bestRuns[i + 2]
local keyLvl = bestRuns[i + 3]
local score = bestRuns[i + 4]
if challengeId and challengeId > 0 and roleMask and roleMask > 0 and keyLvl and keyLvl > 0 then
local dungeonName = aura_env.challengeNameMap[challengeId] or "???"
local key = aura_env.Key.new(
dungeonName,
"isDps",
string.rep("+", stars) .. keyLvl,
"???",
score)
key:register()
end
end
end
end
end