Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.
- #### COSMETIC MACROS #####
- --- 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
- /changeactionbar 2
- /click ActionButton1
- /click ActionButton2
- /click ActionButton3
- /click ActionButton4
- /click ActionButton5
- /click ActionButton6
- /click ActionButton7
- /click ActionButton8
- /click ActionButton9
- /click ActionButton10
- /changeactionbar 1
- --- Arena#3 on Nameplates (Credit to cdew/mes)
- /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)
- --- Friendly Nameplates no Classcolour
- /console ShowClassColorInFriendlyNameplate 0
- --- Friendly Nameplates Shorter
- /run C_NamePlate.SetNamePlateFriendlySize(100, 30)
- ---- Petframe positioning
- /script PetActionBarFrame:ClearAllPoints() PetActionBarFrame:SetPoint("CENTER",UIParent, -29,-204)
- /run MainMenuBar:SetScale(1.12)
- /run PlayerFrame:SetScale(0.0001)
- /run PetActionBarFrame.SetPoint = function () end
- --- Hiding Cosmetic Garbage from the actionbars + positioning
- /run HonorWatchBar:HookScript("OnShow",function(f) f:Hide() end) HonorWatchBar:Hide()
- /run ArtifactWatchBar:HookScript("OnShow",function(f) f:Hide() end) ArtifactWatchBar:Hide()
- /run MainMenuBarLeftEndCap:Hide();MainMenuBarRightEndCap:Hide()
- /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)
- /run MultiBarBottomLeft.SetPoint = function() end ActionButton1:ClearAllPoints() ActionButton1:SetPoint("CENTER",-230,5) ActionButton1.SetPoint = function() end MultiBarBottomRight:ClearAllPoints() MultiBarBottomRight:SetPoint("CENTER",2,86)
- /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()
- /run MultiBarLeft:SetParent(UIParent) MultiBarRight:SetParent(UIParent) MainMenuBarArtFrame:Hide() StanceButton1:ClearAllPoints() StanceButton1:SetPoint("CENTER",235,40) StanceButton1.SetPoint = function() end
- /run hooksecurefunc("CooldownFrame_Set", function(self) if self.currentCooldownType == COOLDOWN_TYPE_LOSS_OF_CONTROL then self:SetCooldown(0, 0) end end)
- /run UIErrorsFrame:UnregisterEvent("UI_ERROR_MESSAGE")
- --- Different cosmetic scripts + "spellsteal border" for magic buffs
- /run b='Buff' st='Stealable' mM='Magic' mB=maxBuffs TFUA='TargetFrame_UpdateAuras' PFu=PlayerFrame.unit MTB=MAX_TARGET_BUFFS UB=UnitBuff UIE=UnitIsEnemy
- /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)
- /run UIP=UnitIsPlayer RCC=RAID_CLASS_COLORS UC=UnitClass TFNB=TargetFrameNameBackground FFNB=FocusFrameNameBackground
- /run f=CreateFrame("FRAME") f:RegisterEvent("PARTY_MEMBERS_CHANGED") f:RegisterEvent("PLAYER_TARGET_CHANGED") f:RegisterEvent("PLAYER_FOCUS_CHANGED") f:RegisterEvent("UNIT_FACTION")
- /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)
- /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
- /run hooksecurefunc("UnitFrameHealthBar_Update", colour) hooksecurefunc("HealthBar_OnValueChanged", function(self) colour(self, self.unit) end)
- /run BuffFrame:ClearAllPoints() BuffFrame:SetPoint("BOTTOMLEFT",TargetFrame,"BOTTOMLEFT",800,28) BuffFrame.SetPoint = function() end BuffFrame:SetScale(1.0)
- /run FocusFrameTextureFramePrestigeBadge:SetAlpha(0) FocusFrameTextureFramePrestigePortrait:SetAlpha(0) TargetFrameTextureFramePrestigeBadge:SetAlpha(0) TargetFrameTextureFramePrestigePortrait:SetAlpha(0)
- /run TargetFrameToT:ClearAllPoints();TargetFrameToT:SetPoint("LEFT",TargetFrame,"RIGHT",-108,-38);FocusFrameToT:ClearAllPoints();FocusFrameToT:SetPoint("LEFT",FocusFrame,"RIGHT",-108,-38)
- --- Extending Standard-UI raidframe debuffs
- /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
- /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
- /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);
- --- "Pretty" Counterspell Macro with Stopwatch
- /sw :23
- /sw play
- /p -- ENEMY CS ---
- /run StopwatchTickerSecond:SetFont("Fonts\\FRIZQT__.ttf",24,"OUTLINE")
- /run StopwatchTickerSecond:SetParent("UIParent") StopwatchFrame:Hide()
- --- Hide Macros and Keybinds on Actionbars
- - Key(pt1)
- /run for i = 1, 12 do _G["BonusActionButton"..i.."HotKey"]:SetAlpha(0)) end
- /run for i = 1, 12 do _G["MultiBarBottomLeftButton"..i.."HotKey"]:SetAlpha(0) end
- /run for i = 1, 12 do _G["MultiBarBottomRightButton"..i.."HotKey"]:SetAlpha(0) end
- - Key(pt2)
- /run for i = 1, 12 do _G["MultiBarLeftButton"..i.."HotKey"]:SetAlpha(0) end
- /run for i = 1, 12 do _G["MultiBarRightButton"..i.."HotKey"]:SetAlpha(0) end
- /run for i = 1, 12 do _G["ActionButton"..i.."HotKey"]:SetAlpha(0) end
- - Macros
- /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
- /run PetActionBarFrame.SetPoint = function () end
- --- StandardUI-Arenaframes positioning and Layout
- /run LoadAddOn("Blizzard_ArenaUI")
- /run ArenaEnemyFrame1:ClearAllPoints()
- /run ArenaEnemyFrame2:ClearAllPoints()
- /run ArenaEnemyFrame3:ClearAllPoints()
- /run ArenaEnemyFrame4:ClearAllPoints()
- /run ArenaEnemyFrame5:ClearAllPoints()
- /run ArenaEnemyFrame1:SetPoint("CENTER",UIParent,"CENTER",240,60)
- /run ArenaEnemyFrame2:SetPoint("CENTER",UIParent,"CENTER",240,0)
- /run ArenaEnemyFrame3:SetPoint("CENTER",UIParent,"CENTER",240,-60)
- /run ArenaEnemyFrame4:SetPoint("CENTER",UIParent,"CENTER",240,-120)
- /run ArenaEnemyFrame5:SetPoint("CENTER",UIParent,"CENTER",240,-180)
- /run ArenaEnemyFrame1.SetPoint = function() end
- /run ArenaEnemyFrame2.SetPoint = function() end
- /run ArenaEnemyFrame3.SetPoint = function() end
- /run ArenaEnemyFrame4.SetPoint = function() end
- /run ArenaEnemyFrame5.SetPoint = function() end
- /run ArenaEnemyFrames:SetScale(1.6)
- /run LoadAddOn("Blizzard_ArenaUI");ArenaEnemyFrames:Show();ArenaEnemyFrame1:Show();ArenaEnemyFrame2:Show();ArenaEnemyFrame3:Show();ArenaEnemyFrame1CastingBar:Show();ArenaEnemyFrame2CastingBar:Show();ArenaEnemyFrame3CastingBar:Show();
- END
- --- Partynameplates without Class Colour
- /console ShowClassColorInFriendlyNameplate 0
- --- Setting Raidmarks for Party
- /script SetRaidTargetIcon("raid2",2)
- /script SetRaidTargetIcon("raid3",8)
- /script SetRaidTargetIcon("player",6)
- #### PVP MACROS ####
- #show ice nova
- /cast [@target,harm,exist] ice nova
- #showtooltip Ice Block
- /stopcasting
- /cast !Ice Block
- /cast Ice lance
- /cancelaura Ice block
- /petattack
- /cast [nopet] Summon Water Elemental
- /cast !Freeze
- /petattack
- /dismount
- #showtooltip Ring of Frost
- /petpassive [nomod]
- /cast [nomod, @focus] Counterspell
- /stopcasting [mod:ctrl]
- /cast [mod:shift, @arena2] Polymorph
- /cast [mod:ctrl, @arena2] Counterspell
- /cancelaura Ice Block
- #showtooltip Ice Block
- /petpassive [nomod]
- /cast [nomod, @focus] Polymorph
- /stopcasting [mod:ctrl]
- /cast [mod:shift, @arena3] Polymorph
- /cast [mod:ctrl, @arena3] Counterspell
- /cancelaura Ice Block
- #showtooltip [talent:3/1] Ring of Frost; [talent:3/2] Ice Ward; [talent:3/3] Frostjaw
- /cast Ice Floes
- /cast [talent:3/1] Ring of Frost; [talent:3/2] Ice Ward; [talent:3/3] Frostjaw
- #showtooltip [talent:4/1]Greater Invisibility; [talent:4/2] Cauterize; [talent:4/3] Cold Snap
- /use Healthstone
- /cast [talent:4/1]Greater Invisibility; [talent:4/2] Cauterize; [talent:4/3] Cold Snap
- #showtooltip [talent:5/1] Mage bomb; [talent:5/2] Unstable Magic; [talent:5/3] Ice Nova
- /cast [talent:5/1] Mage bomb; [talent:5/2] Unstable Magic; [talent:5/3] Ice Nova
- #showtooltip [talent:6/1] Mirror Image; [talent:6/2] Rune of Power; [talent:6/3] Incanter's Flow
- /cast [talent:6/1] Mirror Image; [talent:6/2] Rune of Power; [talent:6/3] Incanter's Flow
- #showtooltip Honorable Medallion(Honor Talent)
- /cast [nomod, @focus] Polymorph
- /stopcasting [mod:ctrl]
- /cast [mod:shift, @arena1] Polymorph
- /cast [mod:ctrl, @arena1] Counterspell
- /cancelaura Ice Block
- #Showtooltip
- /cast [talent:6/1] A Murder of Crows; [talent:6/2] Barrage; [talent:6/3] Volley
- #showtooltip
- /cast Counterspell
- /p COUNTERSPELL %t
- #showtooltip
- /stopcasting
- /cast Counterspell
- #showtooltip [spec:3] Ice Barrier; [spec:2] Blazing Barrier; [spec:1] Prismatic Barrier
- /stopcasting
- /click ExtraActionButton1
- /stopcasting
- /stopattack
- #showtooltip Ice Barrier
- /click [nomod] ExtraActionButton1
- /stopcasting [nomod]
- /stopattack [nomod]
- /petmoveto [mod:shift]
- /click [nomod] ExtraActionButton1
- /stopcasting [nomod]
- /stopattack [nomod]
- /petmoveto [mod:shift]
- #showtooltip
- /cast [spec:1] Evocation
- /cast [spec:3, nopet] Summon Water Elemental
- /stopmacro [spec:3, nopet]
- /cast [spec:3, pet,nodead] !freeze
- /dismount [spec:3]
- /petattack [spec:3]
- /petassist
- #showtooltip
- /cast [spec:1] Evocation
- /cast [spec:3, nopet] Summon Water Elemental
- /stopmacro [spec:3, nopet]
- /cast [spec:3, pet,nodead] !freeze
- /dismount [spec:3]
- /petpassive [spec:3]
- /petfollow
- #showtooltip
- /petpassive
- /cast Polymorph
- #showtooltip
- /cast Scorch
- /cancelaura Ice block
- #showtooltip [spec:3] Cold Snap; [spec:2] Meteor; [spec:1] Ring Of Frost
- /cast Ring of Frost
- #showtooltip
- /cast [@focus] Mass Entanglement
- /cast [@focus] Solar Beam
- #showtooltip
- /dismount [mounted]
- /castrandom [swimming] Abyssal Seahorse; [flyable] Hearthsteed; Black War Bear, Amani War Bear, Stormpike Battle Charger
- #showtooltip
- /cast [form:1] Mangle
- /cast [noform:1] Remove Corruption
- #showtooltip
- /cast [form:1] Frenzied Regeneration
- /cast [noform:1] Starsurge
- #showtooltip
- /cast [form:1] Thrash
- /cast [noform:1] Starsurge
- #showtooltip
- /cast [noform:1] Remove Corruption; Mangle
- #showtooltip
- /cast Arcane Power
- /cast Presence of Mind
- /cast Arcane Blast
- #showtooltip
- /cast Presence of Mind
- /cast Arcane Blast
- #showtooltip
- /cast [nomod, @focus] spellsteal
- /cast [mod:shift, @focus] fire blast
- #showtooltip
- /cast Icy Veins
- /cast Ice Form(Honor Talent)
- /cast ebonbolt
- #showtooltip
- /cast Icy Veins
- /cast Ice Form(Honor Talent)
- /cast Frozen Orb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement