Created
July 20, 2020 04:27
-
-
Save nebularg/c3988067ae752ad3e5134e8d6e637299 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local f = CreateFrame("Frame") | |
f:SetScript("OnEvent", function(self, event) | |
if Transcriptor:IsLogging() then | |
Transcriptor:StopLog(event ~= "CHALLENGE_MODE_COMPLETED" and event ~= "PLAYER_ENTERING_WORLD") | |
end | |
if event ~= "PLAYER_ENTERING_WORLD" and event ~= "CHALLENGE_MODE_COMPLETED" then | |
Transcriptor:StartLog(event ~= "CHALLENGE_MODE_START") | |
end | |
end) | |
f:RegisterEvent("PLAYER_ENTERING_WORLD") -- left early | |
f:RegisterEvent("CHALLENGE_MODE_START") | |
f:RegisterEvent("CHALLENGE_MODE_COMPLETED") | |
f:RegisterEvent("ENCOUNTER_START") | |
f:RegisterEvent("ENCOUNTER_END") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment