Classic Macro Permissibility Question

Hi. I recently came across this macro script, which helpfully destroys your totems so you don’t inadvertently aggro mobs with those left behind when you move to a new location (it’s basically totemic recall for classic). However, being woefully ignorant regarding macros, i wanted to ensure that there was nothing problematic about its use in Classic:

/run if not UnitAffectingCombat(“player”)then for i=1,4 do n=“t”…i CreateFrame(“Button”,n,UIParent,“SecureUnitButtonTemplate”)_G[n]:SetAttribute(“type”, “destroytotem”)_G[n]:SetAttribute(“totem-slot”,i)end end
/click t1
/click t2
/click t3
/click t4

Many thanks.

1 Like

best to ask in the UI and Macro forum.

and here we are… :wave:

General rule is if you can do it within the game systems you can do it.

1 Like

That seems like a reasonable principle, but the script seems too good to be true, hence my concern.

Eh it’s pretty basic, just makes some buttons then clicks them.