krazyito65

Untitled

Jan 21st, 2015
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. function(event, ...)
  2.  
  3.  
  4. --This is your 'Options Menu'. Change these values to suit your needs.
  5. 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"
  6. local unitToInterrupt = "target" -- This is the unit your are interrupting. Make sure to use correct UnitID with quotation marks. ("target", "focus", boss1" etc..)
  7. local hideAfterCombat = false -- this option lets you hid the list after combat.
  8. --end of the 'Options Menu'
  9.  
  10. local _, _, _, raidSize = ... -- ENCOUNTER_START and ENCOUNTER_END variables.
  11. local _, subevent, _, _, sourceName, _, _, _, destName, _, _, _, spellName= ... -- COMBAT_LOG_EVENT_UNFILTERED variables.
  12.  
  13. local getClassInterrupt = function(playerName)
  14. local playerClass = UnitClass(playerName)
  15.  
  16. if playerClass == "Death Knight" then
  17. return "Mind Freeze" or "Strangulate"
  18. elseif playerClass == "Druid" then
  19. return "|cFFFF7D0A" .. playerName .. "|r"
  20. elseif playerClass == "Hunter" then
  21. return "|cFFABD473" .. playerName .. "|r"
  22. elseif playerClass == "Mage" then
  23. return "|cFF69CCF0" .. playerName .. "|r"
  24. elseif playerClass == "Monk" then
  25. return "|cFF00FF96" .. playerName .. "|r"
  26. elseif playerClass == "Paladin" then
  27. return "|cFFF58CBA" .. playerName .. "|r"
  28. elseif playerClass == "Priest" then
  29. return "|cFFFFFFFF" .. playerName .. "|r"
  30. elseif playerClass == "Rogue" then
  31. return "|cFFFFF569" .. playerName .. "|r"
  32. elseif playerClass == "Shaman" then
  33. return "|cFF0070DE" .. playerName .. "|r"
  34. elseif playerClass == "Warlock" then
  35. return "|cFF9482C9" .. playerName .. "|r"
  36. elseif playerClass == "Warrior" then
  37. return "|cFFC79C6E" .. playerName .. "|r"
  38. end
  39.  
  40.  
  41. end
  42.  
  43.  
  44. if event == "ENCOUNTER_START" and raidSize >= 10 then
  45.  
  46. WA_INTERRUPT_MANAGER_Trigger = 1
  47. WA_INTERRUPT_MANAGER_List = interruptOrder
  48.  
  49. return true
  50.  
  51. elseif event == "COMBAT_LOG_EVENT_UNFILTERED" then
  52.  
  53.  
  54.  
  55. if subevent == "SPELL_CAST_SUCCESS"
  56.  
  57. elseif event == "ENCOUNTER_END" then -- When an encounter ends, stop the timer and untrigger the aura.
  58.  
  59. if hideAfterCombat == true then
  60. WA_INTERRUPT_MANAGER_Trigger = 0
  61. else
  62. WA_INTERRUPT_MANAGER_Trigger = 1
  63. end
  64.  
  65. return false
  66.  
  67. end
  68.  
  69. --TEST CODE---
  70. WA_INTERRUPT_MANAGER_Trigger = 1
  71. --WA_INTERRUPT_MANAGER_List = interruptOrder
  72. table.insert(WA_INTERRUPT_MANAGER_List, WA_INTERRUPT_MANAGER_List[1])
  73. table.remove(WA_INTERRUPT_MANAGER_List, 1)
  74. return true
  75. --------------
  76. end
Advertisement
Add Comment
Please, Sign In to add comment