Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function(event, ...)
- --This is your 'Options Menu'. Change these values to suit your needs.
- local interruptOrder = {"Krazyito", "Shinobars", "Tido"} -- This is the order the rotation will go by. You MUST use their EXACT name, including realm if they are on a different realm No realm if on the same. Example: "Krazyito-Mal'ganis"
- local unitToInterrupt = "target" -- This is the unit your are interrupting. Make sure to use correct UnitID with quotation marks. ("target", "focus", boss1" etc..)
- local hideAfterCombat = false -- this option lets you hid the list after combat.
- --end of the 'Options Menu'
- local _, _, _, raidSize = ... -- ENCOUNTER_START and ENCOUNTER_END variables.
- local _, subevent, _, _, sourceName, _, _, _, destName, _, _, _, spellName= ... -- COMBAT_LOG_EVENT_UNFILTERED variables.
- local getClassInterrupt = function(playerName)
- local playerClass = UnitClass(playerName)
- if playerClass == "Death Knight" then
- return "Mind Freeze" or "Strangulate"
- elseif playerClass == "Druid" then
- return "|cFFFF7D0A" .. playerName .. "|r"
- elseif playerClass == "Hunter" then
- return "|cFFABD473" .. playerName .. "|r"
- elseif playerClass == "Mage" then
- return "|cFF69CCF0" .. playerName .. "|r"
- elseif playerClass == "Monk" then
- return "|cFF00FF96" .. playerName .. "|r"
- elseif playerClass == "Paladin" then
- return "|cFFF58CBA" .. playerName .. "|r"
- elseif playerClass == "Priest" then
- return "|cFFFFFFFF" .. playerName .. "|r"
- elseif playerClass == "Rogue" then
- return "|cFFFFF569" .. playerName .. "|r"
- elseif playerClass == "Shaman" then
- return "|cFF0070DE" .. playerName .. "|r"
- elseif playerClass == "Warlock" then
- return "|cFF9482C9" .. playerName .. "|r"
- elseif playerClass == "Warrior" then
- return "|cFFC79C6E" .. playerName .. "|r"
- end
- end
- if event == "ENCOUNTER_START" and raidSize >= 10 then
- WA_INTERRUPT_MANAGER_Trigger = 1
- WA_INTERRUPT_MANAGER_List = interruptOrder
- return true
- elseif event == "COMBAT_LOG_EVENT_UNFILTERED" then
- if subevent == "SPELL_CAST_SUCCESS"
- elseif event == "ENCOUNTER_END" then -- When an encounter ends, stop the timer and untrigger the aura.
- if hideAfterCombat == true then
- WA_INTERRUPT_MANAGER_Trigger = 0
- else
- WA_INTERRUPT_MANAGER_Trigger = 1
- end
- return false
- end
- --TEST CODE---
- WA_INTERRUPT_MANAGER_Trigger = 1
- --WA_INTERRUPT_MANAGER_List = interruptOrder
- table.insert(WA_INTERRUPT_MANAGER_List, WA_INTERRUPT_MANAGER_List[1])
- table.remove(WA_INTERRUPT_MANAGER_List, 1)
- return true
- --------------
- end
Advertisement
Add Comment
Please, Sign In to add comment