Advertisement
Daisyduketv

Macros 15-09-2017 Legion S5 Tournament UI

Sep 15th, 2017
6,724
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.70 KB | None | 0 0
  1. Aside from Cosmetic scripts (changing actionbars and frame positions as well as extending standard debuffs on raidframes) and some non-combat Addons (Details, TrufiGCD, Reflex) used for post game analysis, my interface is the standard UI (as is required for a tournament player). This is because me and my team (ABC) are currently practicing for the 2017 World Championships at Blizzcon.
  2.  
  3. #### COSMETIC MACROS #####
  4.  
  5. --- Make this for any number of macros or slots that you need. This is only for Tournament players, if that is not your aspiration you should just stick to writing your own addon which is easier to execute
  6.  
  7. /changeactionbar 2
  8. /click ActionButton1
  9. /click ActionButton2
  10. /click ActionButton3
  11. /click ActionButton4
  12. /click ActionButton5
  13. /click ActionButton6
  14. /click ActionButton7
  15. /click ActionButton8
  16. /click ActionButton9
  17. /click ActionButton10
  18. /changeactionbar 1
  19.  
  20. --- Arena#3 on Nameplates (Credit to cdew/mes)
  21.  
  22. /run local U=UnitIsUnit hooksecurefunc("CompactUnitFrame_UpdateName",function(F)if IsActiveBattlefieldArena()and F.unit:find( "nameplate")then for i=1,5 do if U( F.unit ,"arena"..i)then F.name:SetText(i)F.name:SetTextColor(1 ,1,0)break end end end end)
  23.  
  24. --- Friendly Nameplates no Classcolour
  25.  
  26. /console ShowClassColorInFriendlyNameplate 0
  27.  
  28. --- Friendly Nameplates Shorter
  29.  
  30. /run C_NamePlate.SetNamePlateFriendlySize(100, 30)
  31.  
  32. ---- Petframe positioning
  33.  
  34. /script PetActionBarFrame:ClearAllPoints() PetActionBarFrame:SetPoint("CENTER",UIParent, -29,-204)
  35. /run MainMenuBar:SetScale(1.12)
  36. /run PlayerFrame:SetScale(0.0001)
  37. /run PetActionBarFrame.SetPoint = function () end
  38.  
  39.  
  40. --- Hiding Cosmetic Garbage from the actionbars + positioning
  41.  
  42.  
  43. /run HonorWatchBar:HookScript("OnShow",function(f) f:Hide() end) HonorWatchBar:Hide()
  44. /run ArtifactWatchBar:HookScript("OnShow",function(f) f:Hide() end) ArtifactWatchBar:Hide()
  45. /run MainMenuBarLeftEndCap:Hide();MainMenuBarRightEndCap:Hide()
  46.  
  47. /run for i=1,12 do _G["ActionButton"..i]:SetParent(MainMenuBar) end MultiBarBottomLeft:SetParent(MainMenuBar) MultiBarBottomRight:SetParent(MainMenuBar) MultiBarBottomLeft:ClearAllPoints() MultiBarBottomLeft:SetPoint("CENTER",2,46)
  48.  
  49. /run MultiBarBottomLeft.SetPoint = function() end ActionButton1:ClearAllPoints() ActionButton1:SetPoint("CENTER",-230,5) ActionButton1.SetPoint = function() end MultiBarBottomRight:ClearAllPoints() MultiBarBottomRight:SetPoint("CENTER",2,86)
  50.  
  51. /run MultiBarBottomRight.SetPoint = function() end HonorWatchBar:HookScript("OnShow",function(f) f:Hide() end) HonorWatchBar:Hide() ArtifactWatchBar:HookScript("OnShow",function(f) f:Hide() end) ArtifactWatchBar:Hide()
  52.  
  53. /run MultiBarLeft:SetParent(UIParent) MultiBarRight:SetParent(UIParent) MainMenuBarArtFrame:Hide() StanceButton1:ClearAllPoints() StanceButton1:SetPoint("CENTER",235,40) StanceButton1.SetPoint = function() end
  54.  
  55. /run hooksecurefunc("CooldownFrame_Set", function(self) if self.currentCooldownType == COOLDOWN_TYPE_LOSS_OF_CONTROL then self:SetCooldown(0, 0) end end)
  56. /run UIErrorsFrame:UnregisterEvent("UI_ERROR_MESSAGE")
  57.  
  58. --- Different cosmetic scripts + "spellsteal border" for magic buffs
  59.  
  60. /run b='Buff' st='Stealable' mM='Magic' mB=maxBuffs TFUA='TargetFrame_UpdateAuras' PFu=PlayerFrame.unit MTB=MAX_TARGET_BUFFS UB=UnitBuff UIE=UnitIsEnemy
  61.  
  62.  
  63. /run hooksecurefunc(TFUA,function(s) for i=1,MTB do _,_,ic,_,dT=UB(s.unit,i) if(ic and (not s.mB or i<=s.mB)) then fS=_G[s:GetName()..b..i..st] if (UIE(PFu,s.unit) and dT==mM) then fS:Show() else fS:Hide() end end end end)
  64.  
  65. /run UIP=UnitIsPlayer RCC=RAID_CLASS_COLORS UC=UnitClass TFNB=TargetFrameNameBackground FFNB=FocusFrameNameBackground
  66.  
  67. /run f=CreateFrame("FRAME") f:RegisterEvent("PARTY_MEMBERS_CHANGED") f:RegisterEvent("PLAYER_TARGET_CHANGED") f:RegisterEvent("PLAYER_FOCUS_CHANGED") f:RegisterEvent("UNIT_FACTION")
  68.  
  69. /run function e(self,event,...) if UIP("target") then c=RCC[select(2,UC("target"))] TFNB:SetVertexColor(c.r,c.g,c.b) end if UIP("focus") then c=RCC[select(2,UC("focus"))] FFNB:SetVertexColor(c.r,c.g,c.b) end end f:SetScript("OnEvent",e)
  70.  
  71. /run function colour(sb,unit) UC=UnitClass if UnitIsPlayer(unit) and UnitIsConnected(unit) and unit==sb.unit and UC(unit) then _,cl=UC(unit) c=RAID_CLASS_COLORS[cl] sb:SetStatusBarColor(c.r,c.g,c.b) PlayerFrameHealthBar:SetStatusBarColor(0,1,0) end end
  72.  
  73. /run hooksecurefunc("UnitFrameHealthBar_Update", colour) hooksecurefunc("HealthBar_OnValueChanged", function(self) colour(self, self.unit) end)
  74.  
  75. /run BuffFrame:ClearAllPoints() BuffFrame:SetPoint("BOTTOMLEFT",TargetFrame,"BOTTOMLEFT",800,28) BuffFrame.SetPoint = function() end BuffFrame:SetScale(1.0)
  76.  
  77. /run FocusFrameTextureFramePrestigeBadge:SetAlpha(0) FocusFrameTextureFramePrestigePortrait:SetAlpha(0) TargetFrameTextureFramePrestigeBadge:SetAlpha(0) TargetFrameTextureFramePrestigePortrait:SetAlpha(0)
  78.  
  79. /run TargetFrameToT:ClearAllPoints();TargetFrameToT:SetPoint("LEFT",TargetFrame,"RIGHT",-108,-38);FocusFrameToT:ClearAllPoints();FocusFrameToT:SetPoint("LEFT",FocusFrame,"RIGHT",-108,-38)
  80.  
  81. --- Extending Standard-UI raidframe debuffs
  82.  
  83. /run function sp(f,i) tr="TOPRIGHT";f2=f.debuffFrames;s=f2[1]:GetWidth();f3=f2[i];f3:SetSize(s,s);f3:ClearAllPoints();if i>6 then f3:SetPoint("BOTTOMRIGHT",f2[i-3],tr,0,0) else f3:SetPoint(tr,f2[1],tr,-(s*(i-3)),0) end end
  84.  
  85. /run function CBF(f,i) bf=CreateFrame("Button",f:GetName().."Debuff"..i,f,"CompactDebuffTemplate");bf.baseSize=22;bf:SetSize(f.buffFrames[1]:GetSize()) end;function mv(f) for i=4,12 do sp(f,i) end end
  86.  
  87. /run function mv3(f) CompactUnitFrame_SetMaxDebuffs(f,12); if not f.debuffFrames[4] then for i=4,12 do CBF(f,i) end end mv(f) end;hooksecurefunc("CompactUnitFrame_UpdateDebuffs",function(f) if f:GetName():match("^Compact") then mv3(f) end end);
  88.  
  89.  
  90. --- "Pretty" Counterspell Macro with Stopwatch
  91.  
  92. /sw :23
  93. /sw play
  94. /p -- ENEMY CS ---
  95. /run StopwatchTickerSecond:SetFont("Fonts\\FRIZQT__.ttf",24,"OUTLINE")
  96. /run StopwatchTickerSecond:SetParent("UIParent") StopwatchFrame:Hide()
  97.  
  98.  
  99. --- Hide Macros and Keybinds on Actionbars
  100.  
  101. - Key(pt1)
  102. /run for i = 1, 12 do _G["BonusActionButton"..i.."HotKey"]:SetAlpha(0)) end
  103. /run for i = 1, 12 do _G["MultiBarBottomLeftButton"..i.."HotKey"]:SetAlpha(0) end
  104. /run for i = 1, 12 do _G["MultiBarBottomRightButton"..i.."HotKey"]:SetAlpha(0) end
  105.  
  106. - Key(pt2)
  107. /run for i = 1, 12 do _G["MultiBarLeftButton"..i.."HotKey"]:SetAlpha(0) end
  108. /run for i = 1, 12 do _G["MultiBarRightButton"..i.."HotKey"]:SetAlpha(0) end
  109. /run for i = 1, 12 do _G["ActionButton"..i.."HotKey"]:SetAlpha(0) end
  110.  
  111. - Macros
  112. /script local r={"MultiBarBottomLeft", "MultiBarBottomRight", "Action", "MultiBarLeft", "MultiBarRight"} for b=1,#r do for i=1,12 do _G[r[b].."Button"..i.."Name"]:SetAlpha(0) end end
  113. /run PetActionBarFrame.SetPoint = function () end
  114.  
  115.  
  116. --- StandardUI-Arenaframes positioning and Layout
  117.  
  118. /run LoadAddOn("Blizzard_ArenaUI")
  119. /run ArenaEnemyFrame1:ClearAllPoints()
  120. /run ArenaEnemyFrame2:ClearAllPoints()
  121. /run ArenaEnemyFrame3:ClearAllPoints()
  122. /run ArenaEnemyFrame4:ClearAllPoints()
  123. /run ArenaEnemyFrame5:ClearAllPoints()
  124.  
  125. /run ArenaEnemyFrame1:SetPoint("CENTER",UIParent,"CENTER",240,60)
  126. /run ArenaEnemyFrame2:SetPoint("CENTER",UIParent,"CENTER",240,0)
  127. /run ArenaEnemyFrame3:SetPoint("CENTER",UIParent,"CENTER",240,-60)
  128.  
  129. /run ArenaEnemyFrame4:SetPoint("CENTER",UIParent,"CENTER",240,-120)
  130. /run ArenaEnemyFrame5:SetPoint("CENTER",UIParent,"CENTER",240,-180)
  131. /run ArenaEnemyFrame1.SetPoint = function() end
  132. /run ArenaEnemyFrame2.SetPoint = function() end
  133.  
  134. /run ArenaEnemyFrame3.SetPoint = function() end
  135. /run ArenaEnemyFrame4.SetPoint = function() end
  136. /run ArenaEnemyFrame5.SetPoint = function() end
  137. /run ArenaEnemyFrames:SetScale(1.6)
  138.  
  139. /run LoadAddOn("Blizzard_ArenaUI");ArenaEnemyFrames:Show();ArenaEnemyFrame1:Show();ArenaEnemyFrame2:Show();ArenaEnemyFrame3:Show();ArenaEnemyFrame1CastingBar:Show();ArenaEnemyFrame2CastingBar:Show();ArenaEnemyFrame3CastingBar:Show();
  140. END
  141.  
  142. --- Partynameplates without Class Colour
  143.  
  144. /console ShowClassColorInFriendlyNameplate 0
  145.  
  146. --- Setting Raidmarks for Party
  147.  
  148. /script SetRaidTargetIcon("raid2",2)
  149. /script SetRaidTargetIcon("raid3",8)
  150. /script SetRaidTargetIcon("player",6)
  151.  
  152.  
  153. #### PVP MACROS ####
  154.  
  155.  
  156. #show ice nova
  157. /cast [@target,harm,exist] ice nova
  158.  
  159. #showtooltip Ice Block
  160. /stopcasting
  161. /cast !Ice Block
  162.  
  163. /cast Ice lance
  164. /cancelaura Ice block
  165. /petattack
  166.  
  167. /cast [nopet] Summon Water Elemental
  168. /cast !Freeze
  169. /petattack
  170. /dismount
  171.  
  172. #showtooltip Ring of Frost
  173. /petpassive [nomod]
  174. /cast [nomod, @focus] Counterspell
  175. /stopcasting [mod:ctrl]
  176. /cast [mod:shift, @arena2] Polymorph
  177. /cast [mod:ctrl, @arena2] Counterspell
  178. /cancelaura Ice Block
  179.  
  180. #showtooltip Ice Block
  181. /petpassive [nomod]
  182. /cast [nomod, @focus] Polymorph
  183. /stopcasting [mod:ctrl]
  184. /cast [mod:shift, @arena3] Polymorph
  185. /cast [mod:ctrl, @arena3] Counterspell
  186. /cancelaura Ice Block
  187.  
  188. #showtooltip [talent:3/1] Ring of Frost; [talent:3/2] Ice Ward; [talent:3/3] Frostjaw
  189. /cast Ice Floes
  190. /cast [talent:3/1] Ring of Frost; [talent:3/2] Ice Ward; [talent:3/3] Frostjaw
  191.  
  192. #showtooltip [talent:4/1]Greater Invisibility; [talent:4/2] Cauterize; [talent:4/3] Cold Snap
  193. /use Healthstone
  194. /cast [talent:4/1]Greater Invisibility; [talent:4/2] Cauterize; [talent:4/3] Cold Snap
  195.  
  196. #showtooltip [talent:5/1] Mage bomb; [talent:5/2] Unstable Magic; [talent:5/3] Ice Nova
  197. /cast [talent:5/1] Mage bomb; [talent:5/2] Unstable Magic; [talent:5/3] Ice Nova
  198.  
  199. #showtooltip [talent:6/1] Mirror Image; [talent:6/2] Rune of Power; [talent:6/3] Incanter's Flow
  200. /cast [talent:6/1] Mirror Image; [talent:6/2] Rune of Power; [talent:6/3] Incanter's Flow
  201.  
  202. #showtooltip Honorable Medallion(Honor Talent)
  203. /cast [nomod, @focus] Polymorph
  204. /stopcasting [mod:ctrl]
  205. /cast [mod:shift, @arena1] Polymorph
  206. /cast [mod:ctrl, @arena1] Counterspell
  207. /cancelaura Ice Block
  208.  
  209. #Showtooltip
  210. /cast [talent:6/1] A Murder of Crows; [talent:6/2] Barrage; [talent:6/3] Volley
  211.  
  212. #showtooltip
  213. /cast Counterspell
  214. /p COUNTERSPELL %t
  215.  
  216. #showtooltip
  217. /stopcasting
  218. /cast Counterspell
  219.  
  220. #showtooltip [spec:3] Ice Barrier; [spec:2] Blazing Barrier; [spec:1] Prismatic Barrier
  221. /stopcasting
  222. /click ExtraActionButton1
  223. /stopcasting
  224. /stopattack
  225.  
  226. #showtooltip Ice Barrier
  227. /click [nomod] ExtraActionButton1
  228. /stopcasting [nomod]
  229. /stopattack [nomod]
  230. /petmoveto [mod:shift]
  231.  
  232. /click [nomod] ExtraActionButton1
  233. /stopcasting [nomod]
  234. /stopattack [nomod]
  235. /petmoveto [mod:shift]
  236.  
  237. #showtooltip
  238. /cast [spec:1] Evocation
  239. /cast [spec:3, nopet] Summon Water Elemental
  240. /stopmacro [spec:3, nopet]
  241. /cast [spec:3, pet,nodead] !freeze
  242. /dismount [spec:3]
  243. /petattack [spec:3]
  244. /petassist
  245.  
  246. #showtooltip
  247. /cast [spec:1] Evocation
  248. /cast [spec:3, nopet] Summon Water Elemental
  249. /stopmacro [spec:3, nopet]
  250. /cast [spec:3, pet,nodead] !freeze
  251. /dismount [spec:3]
  252. /petpassive [spec:3]
  253. /petfollow
  254.  
  255. #showtooltip
  256. /petpassive
  257. /cast Polymorph
  258.  
  259. #showtooltip
  260. /cast Scorch
  261. /cancelaura Ice block
  262.  
  263. #showtooltip [spec:3] Cold Snap; [spec:2] Meteor; [spec:1] Ring Of Frost
  264. /cast Ring of Frost
  265.  
  266. #showtooltip
  267. /cast [@focus] Mass Entanglement
  268. /cast [@focus] Solar Beam
  269.  
  270. #showtooltip
  271. /dismount [mounted]
  272. /castrandom [swimming] Abyssal Seahorse; [flyable] Hearthsteed; Black War Bear, Amani War Bear, Stormpike Battle Charger
  273.  
  274. #showtooltip
  275. /cast [form:1] Mangle
  276. /cast [noform:1] Remove Corruption
  277.  
  278. #showtooltip
  279. /cast [form:1] Frenzied Regeneration
  280. /cast [noform:1] Starsurge
  281.  
  282. #showtooltip
  283. /cast [form:1] Thrash
  284. /cast [noform:1] Starsurge
  285.  
  286. #showtooltip
  287. /cast [noform:1] Remove Corruption; Mangle
  288.  
  289. #showtooltip
  290. /cast Arcane Power
  291. /cast Presence of Mind
  292. /cast Arcane Blast
  293.  
  294. #showtooltip
  295. /cast Presence of Mind
  296. /cast Arcane Blast
  297.  
  298. #showtooltip
  299. /cast [nomod, @focus] spellsteal
  300. /cast [mod:shift, @focus] fire blast
  301.  
  302. #showtooltip
  303. /cast Icy Veins
  304. /cast Ice Form(Honor Talent)
  305. /cast ebonbolt
  306.  
  307. #showtooltip
  308. /cast Icy Veins
  309. /cast Ice Form(Honor Talent)
  310. /cast Frozen Orb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement