X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/0453a59cf1f5c15fa46a1460dd12d372475b10f1..refs/heads/master:/OmaLog/Logging.lua diff --git a/OmaLog/Logging.lua b/OmaLog/Logging.lua index f8c2ec8..cf55148 100644 --- a/OmaLog/Logging.lua +++ b/OmaLog/Logging.lua @@ -8,9 +8,23 @@ local frame = CreateFrame("Frame", "OmaLogger"); frame:Hide(); local raidIDs = { - [1861] = "Uldir", + [2164] = "The Eternal Palace", + [2217] = "Ny'alotha", + [2296] = "Castle Nathria", + [2450] = "Sanctum of Domination", +}; +local dungeonIDs = { + [1594] = "The Undermine", + [1754] = "Freehold", + [1762] = "King's Rest", + [1763] = "Atal'Dazar", + [1771] = "Tol Dagor", + [1822] = "Siege of Boralus", + [1841] = "Underrot", + [1862] = "Waycrest Manor", + [1864] = "Shrine of the Storm", + [1877] = "Temple of Sethraliss", }; ---local minDungMapID = 1456; local function shouldLog() local _, zoneType, difficulty, _, _, _, _, mapID = GetInstanceInfo(); @@ -25,10 +39,10 @@ local function shouldLog() elseif difficulty == 14 then -- Normal return true; end - --elseif zoneType == "party" and mapID >= minDungMapID then - -- if difficulty == 8 or difficulty == 23 then - -- return true; - -- end + elseif zoneType == "party" and dungeonIDs[mapID] then + if difficulty == 8 or difficulty == 23 then + return true; + end end return false; @@ -51,11 +65,12 @@ local function updateZone() end frame:SetScript("OnEvent", function(self, event) - if event == "ZONE_CHANGED_NEW_AREA" then + if event == "ZONE_CHANGED_NEW_AREA" or event == "PLAYER_LOGIN" then CTimerAfter(3, updateZone); elseif event == "CHALLENGE_MODE_START" then CTimerAfter(1, updateZone); end end); frame:RegisterEvent("ZONE_CHANGED_NEW_AREA"); +frame:RegisterEvent("PLAYER_LOGIN"); --frame:RegisterEvent("CHALLENGE_MODE_START"); -- for logging M+