I am using the following Lua to join all LFRs that I have not cleared this week:
Code:
local pLvl = UnitLevel("player")
ClearAllLFGDungeons(LE_LFG_CATEGORY_LFR)
local tank, heal, dps = C_LFGList.GetAvailableRoles()
SetLFGRoles(1, tank, heal, dps)
for i = 1, GetNumRFDungeons() do
local id, _, _, _, min, max = GetRFDungeonInfo(i)
local total, killed = GetLFGDungeonNumEncounters(id)
if not (pLvl < min or pLvl > max) then
if killed ~= total and IsLFGDungeonJoinable(id) then
SetLFGDungeon(LE_LFG_CATEGORY_LFR, id)
end
end
end
JoinLFG(LE_LFG_CATEGORY_LFR)
The code works fine, however the issue I am having is that once I enter an LFR, the other queues stop. This is not the same behaviour as manually clicking queue for each LFR on the LFG window. I was wondering if anyone knew of a way to keep the queue going with this code. Thanks