Last active
May 3, 2018 18:09
-
-
Save Gnarfoz/0d30d26b20f2c4c7150e9aabd642dc13 to your computer and use it in GitHub Desktop.
Output scenario info to chat
This file contains 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") | |
local stageNameOld | |
local stageName | |
local stageDescription | |
local function handler(self, event) | |
stageName, stageDescription = C_Scenario.GetStepInfo() | |
if stageName ~= stageNameOld then | |
stageNameOld = stageName | |
DEFAULT_CHAT_FRAME:AddMessage("Stage: "..stageName.." Description: "..stageDescription) | |
end | |
end | |
f:SetScript("OnEvent",handler) | |
f:RegisterEvent("SCENARIO_UDPATE") |
This file contains 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
## Interface: 70300 | |
## Title: Scenario to Chat | |
## Notes: Dumps the current scenario stage name and description to chat | |
scenario_to_chat.lua |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment