Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.10 KB | None | 0 0
  1. function(...)
  2. local COLORS = {
  3. ["boss"] = "|CFF2BBBAD",
  4. ["normal"] = "|CFFFFFFFF",
  5. ["gold"] = "|CFFD4AF37",
  6. ["red"] = "|CFFFF4444",
  7. ["blue"] = "|CFF33B5E5",
  8. ["orange"] = "|CFFFF8800",
  9. ["purple"] = "|CFFAA66CC",
  10. ["green"] = "|CFF00C851",
  11. ["yellow"] = "|CFFFFFF00",
  12. ["spell"] = "|CFF4285F4",
  13. ["mob"] = "|CFFAA66CC",
  14. ["instance_name"] = "|CFFFFBB33",
  15. ["difficulty"] = "|CFFFFCC80",
  16. }
  17.  
  18. local DUNGEON_INFO = {
  19. ----------------
  20. -- Atal'Dazar --
  21. ----------------
  22. [1763] = {
  23. ["info"] = {
  24. "First <color=blue>3</color> bosses can be killed in any order",
  25. "The fire breath from tiki masks is lethal"
  26. },
  27. ["trash"] = {
  28. {["text"] = "<mob>Dazar'ai Augur</mob> - Interrupt <spell>Fiery Enchant</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  29. {["text"] = "<mob>Dazar'ai Augur</mob> - Dispel <spell>Wildfire</spell> from players", ["roles"] = {"HEALER"}},
  30. {["text"] = "<mob>Dazar'ai Colossus</mob> - Kill FIRST if present", ["roles"] = {"DAMAGER", "TANK"}},
  31. {["text"] = "<mob>Dazar'ai Colossus</mob> - Channels <spell>Soulburn</spell> on player, outheal it", ["roles"] = {"HEALER"}},
  32. {["text"] = "<mob>Dazar'ai Confessor</mob> - Interrupt <spell>Mending Word</spell> and <spell>Bwonsamdi's Mantle</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  33. {["text"] = "<mob>Dazar'ai Juggernaut</mob> - Interrupt <spell>Fanatic Rage</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  34. {["text"] = "<mob>Feasting Skyscreamer</mob> - Interrupt <deadly/><spell>Terrifying Screech</spell> (<color=red>6s fear</color>)", ["roles"] = {"DAMAGER", "TANK"}},
  35. {["text"] = "<mob>Gilded Priestess</mob> - Soak <color=red>red</color> pool if targeted by <spell>Transfusion</spell>", ["roles"] = {"DAMAGER", "HEALER", "TANK"}},
  36. {["text"] = "<mob>Reanimated Honor Guard</mob> - Heavy group damage after <spell>Reanimation Totem</spell> destroyed", ["roles"] = {"HEALER"}},
  37. {["text"] = "<mob>Reanimated Honor Guard</mob> - Destroy <spell>Reanimation Totem</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  38. {["text"] = "<mob>Shadowblade Stalker</mob> - Tank may take serious damage during <spell>Venomfang Strike</spell>", ["roles"] = {"HEALER"}},
  39. {["text"] = "<mob>Shadowblade Stalker</mob> - Stay healthy during <spell>Venomfang Strike</spell>", ["roles"] = {"TANK"}},
  40. {["text"] = "<mob>Shieldbearer of Zul</mob> - Move other enemies away during <spell>Bulwark of Juju</spell>", ["roles"] = {"TANK"}},
  41. {["text"] = "<mob>Zanchuli Witch-Doctor</mob> - Interrupt <spell>Unstable Hex</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  42. {["text"] = "<mob>Zanchuli Witch-Doctor</mob> - Dispel <spell>Unstable Hex</spell> from players (curse)", ["roles"] = {"HEALER"}},
  43. },
  44. ["bosses"] = {
  45. {
  46. ["name"] = "Priestess Alun'za",
  47. ["phases"] = false,
  48. ["info"] = {
  49. {["text"] = "Soak <color=red>red</color> pool during <spell>Transfusion</spell>", ["roles"] = {"DAMAGER", "HEALER", "TANK"}},
  50. {["text"] = "Dodge <color=gold>golden</color> orbs", ["roles"] = {"DAMAGER", "HEALER", "TANK"}},
  51. {["text"] = "Dispel <spell>Molten Gold</spell> from players", ["roles"] = {"HEALER"}},
  52. {["text"] = "CC and kill adds before they reach pools!", ["roles"] = {"DAMAGER"}},
  53. {["text"] = "Tank boss on top of throne", ["roles"] = {"TANK"}},
  54. {["text"] = "Adds can't be tanked", ["roles"] = {"TANK"}},
  55. {["text"] = "Purge <spell>Guilded Claws</spell> from boss", ["roles"] = {"DAMAGER"}},
  56. {["text"] = "Use mitigation if <spell>Guilded Claws</spell> is not purged", ["roles"] = {"TANK"}},
  57. }
  58. },
  59. {
  60. ["name"] = "Vol'kaal",
  61. ["phases"] = true,
  62. ["info"] = {
  63. -- Phase 1
  64. {
  65. {["text"] = "<spell>Reanimation Totems</spell> have to die within <color=blue>7s</color> of each other", ["roles"] = {"DAMAGER"}},
  66. {["text"] = "Avoid <color=green>green</color> pools", ["roles"] = {"DAMAGER", "HEALER", "TANK"}},
  67. {["text"] = "Interrupt <spell>Noxious Stench</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  68. },
  69. -- Phase 2
  70. {
  71. {["text"] = "Avoid <color=green>green</color> pools", ["roles"] = {"DAMAGER", "HEALER", "TANK"}},
  72. {["text"] = "Interrupt <spell>Noxious Stench</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  73. {["text"] = "Tank boss along the edges, only moving from <color=green>green</color> pools", ["roles"] = {"TANK"}},
  74. }
  75. }
  76. },
  77. {
  78. ["name"] = "Rezan",
  79. ["phases"] = false,
  80. ["info"] = {
  81. {["text"] = "Boss should be positioned near a pillar", ["roles"] = {"TANK"}},
  82. {["text"] = "Players and boss should not step in <color=purple>purple</color> bone piles (spawn adds)", ["roles"] = {"DAMAGER", "HEALER", "TANK"}},
  83. {["text"] = "Pick up adds", ["roles"] = {"TANK"}},
  84. {["text"] = "Move behind pillar when boss casts <spell>Terrifying Visage</spell>", ["roles"] = {"DAMAGER", "HEALER", "TANK"}},
  85. {["text"] = "Kite boss when <spell>Pursuit</spell> targets you, avoid <color=purple>purple</color> bone piles", ["roles"] = {"DAMAGER", "HEALER", "TANK"}},
  86. {["text"] = "Use defensive CD if boss catch you during <spell>Pursuit</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  87. {["text"] = "Players caught by <spell>Pursuit</spell> take HIGH damage", ["roles"] = {"HEALER"}},
  88. {["text"] = "Use mitigation when boss cast <spell>Serrated Teeth</spell> on you", ["roles"] = {"TANK"}},
  89. {["text"] = "Avoid standing behind boss as he knockbacks", ["roles"] = {"DAMAGER", "HEALER"}},
  90. }
  91. },
  92. {
  93. ["name"] = "Yazma",
  94. ["phases"] = false,
  95. ["info"] = {
  96. {["text"] = "Use mitigation when boss cast <spell>Skewer</spell> on you", ["roles"] = {"TANK"}},
  97. {["text"] = "Interrupt <spell>Wracking Pain</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  98. {["text"] = "Dispel <spell>Wracking Pain</spell> from players (curse)", ["roles"] = {"HEALER"}},
  99. {["text"] = "Avoid spiders!", ["roles"] = {"DAMAGER", "HEALER", "TANK"}},
  100. {["text"] = "Avoid <color=purple>purple</color> pools", ["roles"] = {"DAMAGER", "HEALER", "TANK"}},
  101. {["text"] = "Stack far away from boss when <spell>Soulrend</spell> is cast", ["roles"] = {"DAMAGER", "HEALER"}},
  102. {["text"] = "Kill adds before they reach boss! If add reach boss, use defensive CD's", ["roles"] = {"DAMAGER"}},
  103. {["text"] = "If any add reaches boss, use healing CD's", ["roles"] = {"HEALER"}},
  104. }
  105. },
  106. },
  107. },
  108.  
  109. --------------------------
  110. -- Temple of Sethraliss --
  111. --------------------------
  112. [1877] = {
  113. ["info"] = {"Go left side in the beginning for less trash between 1:st and 2:nd boss"
  114.  
  115. },
  116. ["trash"] = {
  117. {["text"] = "<mob>Charged Dust Devil</mob> - Interrupt <spell>Healing Surge</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  118. {["text"] = "<mob>Sandswept Marksman</mob> - Do not move when affected by <spell>Neurotoxin</spell>", ["roles"] = {"DAMAGER", "HEALER"}},
  119. {["text"] = "<mob>Scaled Krolusk Rider/Tamer</mob> - Interrupt <spell>Electrified Scales</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  120. {["text"] = "<mob>Scaled Krolusk Tamer</mob> - Interrupt <spell>Electrified Scales</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  121. {["text"] = "<mob>Scaled Krolusk Rider</mob> - Face mob away from group and avoid <spell>Noxious Breath</spell>", ["roles"] = {"TANK"}},
  122. {["text"] = "<mob>Sand-crusted Striker</mob> - Don't tank mobs in <spell>Dust Cloud</spell>", ["roles"] = {"TANK"}},
  123. {["text"] = "<mob>Sand-crusted Striker</mob> - Prio, don't CC mobs in <spell>Dust Cloud</spell>", ["roles"] = {"DAMAGER"}},
  124. {["text"] = "<mob>Mature Krolusk</mob> - Face mob away from group and avoid <spell>Noxious Breath</spell>", ["roles"] = {"TANK"}},
  125. {["text"] = "<mob>Crazed Incubator</mob> - Interrupt <spell>Stoneshield Potion</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  126. {["text"] = "<mob>Crazed Incubator</mob> - Dispel <spell>Venomous Spit</spell> (poison) from players", ["roles"] = {"HEALER"}},
  127. {["text"] = "<mob>Faithless Tender</mob> - Dispel <spell>Venomous Spit</spell> (poison) from players", ["roles"] = {"HEALER"}},
  128. {["text"] = "<mob>Faithless Tender</mob> - Interrupt <spell>Greater Healing Potion</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  129. {["text"] = "<mob>Agitated Nimbus</mob> - Interrupt <spell>Accumulate Charge</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  130. {["text"] = "<mob>Spark Channeler</mob> - Interrupt <spell>Shock</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  131. {["text"] = "<mob>Hoodoo Hexer</mob> - Dispell <spell>Flame Shock</spell> (magic) from players", ["roles"] = {"HEALER"}},
  132. {["text"] = "<mob>Heart Guardian</mob> - Tank will take alot of damage from this mob", ["roles"] = {"HEALER"}},
  133. {["text"] = "<mob>Heart Guardian</mob> - Highest kill prio", ["roles"] = {"DAMAGER"}},
  134. {["text"] = "<mob>Plague Doctor</mob> - Interrupt <spell>Chain Lightning</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  135. {["text"] = "<mob>Plague Doctor</mob> - Dispell <spell> Snake Charm </spell> on players", ["roles"] = {"HEALER"}},
  136.  
  137.  
  138.  
  139. },
  140. ["bosses"] = {
  141. {
  142. ["name"] = "Adderis and Aspix",
  143. ["phases"] = false,
  144. ["info"] = {
  145. {["text"] = "Stack on Adderis to split DMG from <spell>Arcing Blades</spell>", ["roles"] = {"DAMAGER", "HEALER", "TANK"}},
  146. {["text"] = "Move behind <mob>Adderis</mob> when he casts <deadly/><spell>Cyclone Strike</spell>", ["roles"] = {"DAMAGER", "HEALER", "TANK"}},
  147. {["text"] = "<mob>Aspix</mob>: Interupt <spell>Jolt</spell> and <spell>Gust</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  148. {["text"] = "When <mob>Aspix</mob> reaches <color=yellow>100% Energy</color> prepare for heavy AOE DMG", ["roles"] = {"HEALER"}},
  149. }
  150. },
  151. {
  152. ["name"] = "Merektha",
  153. ["phases"] = false,
  154. ["info"] = {
  155. {["text"] = "Avoid <color=green>green</color> pools and <spell>Noxious Breath</spell>", ["roles"] = {"DAMAGER", "HEALER", "TANK"}},
  156. {["text"] = "Look away when <spell>Blinding Sand</spell> is casted", ["roles"] = {"DAMAGER", "HEALER", "TANK"}},
  157. {["text"] = "Destroy the entanglement cast on random player", ["roles"] = {"DAMAGER"}},
  158. {["text"] = "At 60% HP she burrows - Dispell <spell>Cytotoxin</spell> (poison) and avoid being hit by boss", ["roles"] = {"HEALER"}},
  159. {["text"] = "At 60% HP she burrows - Kill adds and avoid being hit by boss", ["roles"] = {"DAMAGER"}},
  160. {["text"] = "At 45% HP she burrows - Kill adds and avoid being hit by boss", ["roles"] = {"DAMAGER"}},
  161. {["text"] = "At 45% HP she burrows - Don't tank mobs in <spell>Dust Cloud</spell> and avoid being hit by boss", ["roles"] = {"TANK"}},
  162. {["text"] = "At 45% HP she burrows - Avoid being hit by boss.", ["roles"] = {"HEALER"}},
  163. }
  164.  
  165. },
  166. {
  167. ["name"] = "Galvazzt",
  168. ["phases"] = false,
  169. ["info"] = {
  170. {["text"] = "Take turns standning in the <color=blue>blue</color> beams, switch on ≈10 stacks of <deadly/><spell>Galvanize</spell>", ["roles"] = {"DAMAGER", "HEALER", "TANK"}},
  171. {["text"] = "Top up group before boss reaches <color=yellow>100% energy</color>", ["roles"] = {"HEALER"}},
  172. }
  173.  
  174. },
  175. {
  176. ["name"] = "Avatar of Sethraliss",
  177. ["phases"] = false,
  178. ["info"] = {
  179. {["text"] = "Kill <mob>Hoodoo Hexers</mobs> as fast as possible", ["roles"] = {"DAMAGER"}},
  180. {["text"] = "<mob>Hoodoo Hexers</mobs> do NOT need to be tanked", ["roles"] = {"TANK"}},
  181. {["text"] = "Tank <mob>Heart Guardian</mobs> as soon as it spawns", ["roles"] = {"TANK"}},
  182. {["text"] = "When <mob>Heart Guardian</mobs> dies, pick up the <spell>Energy Fragment</spell> (sphere)", ["roles"] = {"TANK", "HEALER", "DAMAGER"}},
  183. {["text"] = "When all <mob>Hoodoo Hexers</mobs> are down, HEAL <mob>Avatar of Sethraliss</mobs> ALOT", ["roles"] = {"HEALER"}},
  184. {["text"] = "Protect the healer from <mob>Plague Toads</mob> by either killing them or walking in to them <deadly/>(not to many)", ["roles"] = {"TANK", "DAMAGER"}},
  185. {["text"] = "<mob>Plague Doctor</mob> - Interrupt <spell>Chain Lightning</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  186. {["text"] = "<mob>Plague Doctor</mob> - Dispell <spell> Snake Charm </spell> on players", ["roles"] = {"HEALER"}},
  187. }
  188.  
  189. },
  190. },
  191. },
  192.  
  193. ----------------------
  194. -- The MOTHERLODE!! --
  195. ----------------------
  196. [1594] = {
  197. ["info"] = {},
  198. ["trash"] = {
  199. {["text"] = "<mob>Addled Thug</mob> - Interrupt <spell>Inhale Vapors</spell>, also charge stuns (2s) random player", ["roles"] = {"DAMAGER", "TANK"}},
  200. {["text"] = "<mob>Azerite Extractor</mob> - Face mob away from group when they channel <spell>Power Through</spell>", ["roles"] = {"TANK"}},
  201. {["text"] = "<mob>Azerite Extractor</mob> - Do not stand in front of mob when they channel <spell>Power Through</spell>", ["roles"] = {"DAMAGER", "HEALER"}},
  202. {["text"] = "<mob>Feckless Assistant</mob> - Interrupt <spell>Blowtorch</spell> and <spell>Transfiguration Serum</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  203. {["text"] = "<mob>Feckless Assistant</mob> - Dispel <spell>Festering Bite</spell> from players", ["roles"] = {"HEALER"}},
  204. {["text"] = "<mob>Hired Assassin</mob> - Interrupt <spell>Toxic Blades</spell> and try to stop <spell>Hail of Flechettes</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  205. {["text"] = "<mob>Mech Jockey</mob> - Prio, avoid <color=red>red</color> pools and stop <spell>Activate Mech</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  206. {["text"] = "<mob>Mechanized Peacekeeper</mob> - Avoid <color=orange>orange</color> clouds, attack from behind during <spell>Energy Shield</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  207. {["text"] = "<mob>Refreshment Vendors</mob> - Prio, interrupt <spell>Kaja'Cola Refresher</spell> and <spell>Iced Spritzer</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  208. {["text"] = "<mob>Stonefury</mob> - Interrupt <deadly/><spell>Furious Quake</spell> and <deadly/><spell>Tectonic Barrier</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  209. {["text"] = "<mob>Taskmaster Askari</mob> - Drag away nearby trash when mob casts <spell>Cover</spell>, kite under 20% HP", ["roles"] = {"TANK"}},
  210. {["text"] = "<mob>Venture Co. Alchemist</mob> - Interrupt <spell>Transmute: Enemy to Goo</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  211. {["text"] = "<mob>Venture Co. Alchemist</mob> - Dispel <spell>Transmute: Enemy to Goo</spell> (polymorph) from players", ["roles"] = {"HEALER"}},
  212. {["text"] = "<mob>Venture Co. Earthshaper</mob> - Interrupt <spell>Earth Shield</spell>, purge it if it lands", ["roles"] = {"DAMAGER", "TANK"}},
  213. {["text"] = "<mob>Venture Co. Mastermind</mob> - Prio, avoid <color=purple>purple<color>orbs and purge <spell>Azerite Injection</spell>", ["roles"] = {"DAMAGER", "TANK"}},
  214. {["text"] = "<mob>Venture Co. Mastermind</mob> - Be prepared to heal player targeted by <spell>Energy Lash</spell>", ["roles"] = {"HEALER"}},
  215. {["text"] = "<mob>Wanton Sapper</mob> - Avoid <color=red>red</color> pools and kite mob from group if fixated", ["roles"] = {"DAMAGER", "HEALER", "TANK"}},
  216. {["text"] = "<mob>Weapons Tester</mob> - Avoid <deadly/><spell>Force Cannon</spell> (frontal knockback)", ["roles"] = {"DAMAGER"}},
  217. {["text"] = "<mob>Weapons Tester</mob> - Avoid <deadly/><spell>Force Cannon</spell> (frontal knockback), turn away during <spell>Echo Blade</spell>", ["roles"] = {"TANK"}},
  218. {["text"] = "<mob>Weapons Tester</mob> - Avoid <deadly/><spell>Force Cannon</spell> (frontal knockback), dispel <spell>Echo</spell> (silence)", ["roles"] = {"HEALER"}},
  219. },
  220. ["bosses"] = {
  221. {
  222. ["name"] = "Coin-Operated Crowd Pummeler",
  223. ["phases"] = false,
  224. ["info"] = {
  225. {["text"] = "Kick balls into boss", ["roles"] = {"DAMAGER", "HEALER"}},
  226. {["text"] = "Help players aim while kicking balls at boss by not moving boss", ["roles"] = {"TANK"}},
  227. {["text"] = "Stay behind boss to avoid <spell>Shocking Claw</spell> (frontal AoE)", ["roles"] = {"DAMAGER", "HEALER"}},
  228. {["text"] = "Move behind boss after he starts casting <spell>Shocking Claw</spell> (frontal AoE)", ["roles"] = {"TANK"}},
  229. {["text"] = "As soon as <spell>Throw Coins</spell> piles spawn, move boss at least 15 yards away from them", ["roles"] = {"TANK"}},
  230. }
  231. },
  232. {
  233. ["name"] = "Azerokk",
  234. ["phases"] = false,
  235. ["info"] = {
  236. {["text"] = "Kill adds", ["roles"] = {"DAMAGER"}},
  237. {["text"] = "The <mob>Earthrager</mob> mobs will fixate a random player, kite and or use CC", ["roles"] = {"DAMAGER", "HEALER", "TANK"}},
  238. {["text"] = "Stay behind boss to avoid <spell>Tectonic Smash</spell> (frontal AoE knockdown)", ["roles"] = {"DAMAGER", "HEALER"}},
  239. {["text"] = "Move behind boss after he starts casting <spell>Tectonic Smash</spell> (frontal AoE knockdown)", ["roles"] = {"TANK"}},
  240. }
  241. },
  242. {
  243. ["name"] = "Rixxa Fluxflame",
  244. ["phases"] = false,
  245. ["info"] = {
  246. }
  247. },
  248. {
  249. ["name"] = "Modul Razdunk",
  250. ["phases"] = true,
  251. ["info"] = {
  252. -- Phase 1
  253. {
  254. },
  255. -- Phase 2
  256. {
  257. }
  258. }
  259. },
  260. },
  261. },
  262. }
  263.  
  264. local output = ""
  265.  
  266. local inInstance, instanceType = IsInInstance()
  267.  
  268. if inInstance == true then
  269. local instanceName, instanceType, instanceDifficultyID, instanceDifficultyName, instanceMaxPlayers, instanceDynamicDifficulty, instanceIsDynamic, instanceMapID, instanceGroupSize = GetInstanceInfo()
  270. local specID, specName, specDescription, specIcon, specRole, primaryStat = GetSpecializationInfo(GetSpecialization())
  271.  
  272. if DUNGEON_INFO[instanceMapID] then
  273. output = COLORS["instance_name"] .. instanceName .. COLORS["normal"] .. " (" .. COLORS["difficulty"] .. instanceDifficultyName .. COLORS["normal"] .. ")|n"
  274.  
  275. -- Info
  276. local info_output = ""
  277. for _, note in ipairs(DUNGEON_INFO[instanceMapID]["info"]) do
  278. info_output = info_output .. " • " .. note .. "|n"
  279. end
  280. if info_output ~= "" then
  281. output = output .. info_output .. "|n"
  282. end
  283.  
  284. -- Trash
  285. local trash_output = ""
  286. for _, note in ipairs(DUNGEON_INFO[instanceMapID]["trash"]) do
  287. if tContains(note["roles"], specRole) then
  288. trash_output = trash_output .. " • " .. note["text"] .. "|n"
  289. end
  290. end
  291. if trash_output ~= "" then
  292. output = output .. " Trash:|n" .. trash_output .. "|n"
  293. end
  294.  
  295. -- Bosses
  296. for boss_key, boss_info in ipairs(DUNGEON_INFO[instanceMapID]["bosses"]) do
  297. output = output .. " " .. COLORS["boss"] .. boss_info["name"] .. ":|n" .. COLORS["normal"]
  298.  
  299. if DUNGEON_INFO[instanceMapID]["bosses"][boss_key]["phases"] == true then
  300. for phase_number, phase_info in ipairs(DUNGEON_INFO[instanceMapID]["bosses"][boss_key]["info"]) do
  301. output = output .. " Phase " .. phase_number .. ":|n"
  302. for _, note in ipairs(DUNGEON_INFO[instanceMapID]["bosses"][boss_key]["info"][phase_number]) do
  303. if tContains(note["roles"], specRole) then
  304. output = output .. " • " .. note["text"] .. "|n"
  305. end
  306. end
  307. end
  308. else
  309. for _, note in ipairs(DUNGEON_INFO[instanceMapID]["bosses"][boss_key]["info"]) do
  310. if tContains(note["roles"], specRole) then
  311. output = output .. " • " .. note["text"] .. "|n"
  312. end
  313. end
  314. end
  315.  
  316. output = output .. "|n"
  317. end
  318.  
  319. -- Parse tags
  320. output = gsub(output, "<deadly/>", "|T".. GetItemIcon(13155) ..":0|t")
  321. output = gsub(output, "<color=gold>", COLORS["gold"])
  322. output = gsub(output, "<color=orange>", COLORS["orange"])
  323. output = gsub(output, "<color=red>", COLORS["red"])
  324. output = gsub(output, "<color=green>", COLORS["green"])
  325. output = gsub(output, "<color=yellow>", COLORS["yellow"])
  326. output = gsub(output, "<color=blue>", COLORS["blue"])
  327. output = gsub(output, "<color=purple>", COLORS["purple"])
  328. output = gsub(output, "</color>", COLORS["normal"])
  329. output = gsub(output, "<mob>", COLORS["mob"])
  330. output = gsub(output, "</mob>", COLORS["normal"])
  331. output = gsub(output, "<spell>", COLORS["spell"])
  332. output = gsub(output, "</spell>", COLORS["normal"])
  333. end
  334. end
  335.  
  336. return output
  337. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement