View Single Post
01-26-16, 02:47 AM   #1
Lesteryoung
A Black Drake
Join Date: Aug 2015
Posts: 81
Request for someone to turn two macro scripts into addons.

I know I could just throw these into a folder and they would probably work fine, but was just wondering if someone could clean them up.

Macro one puts the yellow border around dispellable buffs that is default for mages/shamans.. etc around all target/focus frame buffs for all classes and not just enemy target/focus.

Lua Code:
  1. hooksecurefunc("TargetFrame_UpdateAuras", function(s) for i=1,MAX_TARGET_BUFFS do if select(5,UnitAura(s.unit,i)) == 'Magic' then _G[s:GetName().."Buff"..(i).."Stealable"]:Show() end end end)

Macro two replaces the level text on the default nameplates to arenaID numbers when inside an arena. So arena target 123 instead of level 100.

Lua Code:
  1. C_Timer.NewTicker(.2,function()for A,P in pairs({WorldFrame:GetChildren()})do A=P.ArtContainer if A then for i=1,5 do if P.NameContainer.NameText:GetText()==GetUnitName("arena"..i)then A.LevelText:SetText(i)break end end end end end)
  Reply With Quote