Hi all,
I am doing a little ldb for m+ keystone tracker using standard databroker and LibQTip.
One of the problem I am facing is that the:
Lua Code:
C_MythicPlus.GetOwnedKeystoneChallengeMapID()
seems not available at the PLAYER_ENTERING_WORLD event.
But I am unable to find what I have to load or wait to have this value.
Infact after a while I got it. Mah.
Another problem really strange is that a character usually get the data of the previous one logged before in the:
Lua Code:
C_MythicPlus.GetWeeklyBestForMap(mapID)
I check similar addons and all seems to have this kind of problem, is it a known bug ?
I.e IKeyStones use this code to bypass:
Lua Code:
function iKS:scanCharacterMaps()
if not iKS:createPlayer() then return end
local maps = C_ChallengeMode.GetMapTable()
local maxCompleted = 0
for _, mapID in pairs(maps) do
local _, level, _, affixes, members = C_MythicPlus.GetWeeklyBestForMap(mapID)
if members then
for _,member in pairs(members) do -- Avoid leaking from another char (wtf??, how is this even possible)
if member.name == unitName then
if level and level > maxCompleted then
maxCompleted = level
end
break;
end
end
end
end
if iKeystonesDB[player].maxCompleted and iKeystonesDB[player].maxCompleted < maxCompleted then
iKeystonesDB[player].maxCompleted = maxCompleted
end
end
Thanks so much for any tips.
P.s.
Also this seems to me strange and odd: