How to edit lua for a macro?

Hi guys.

Wanted to get rid of the default blizzard buff icons in the top right, and I found a macro that does exactly that. Someone else in the thread talked about editing a “lua” file so I don’t have to click the macro every time I open the game. I have no clue how to do this, I’ve heard of lua but have no idea what it is or what it’s function is. Thanks in advance guys!

If you’re interested, here is the macro in question:

/run local b,t=BuffFrame,ConsolidatedBuffs b:SetShown(not b:IsShown())t:SetShown(not t:IsShown())

The macro toggles between shown, not shown and back again. Putting it into a simple “run on load” addon looses the ability to toggle (unless you keep the original macro as well). If you’re happy with that then:

  1. Paste everything but “/run” into the website “addon.bool.no”
  2. Change the addon Folder name from “MyFirstAddOn” to something unique “DuckBuffGone” maybe.
  3. Press “Create My Addon and give me my files”

Congratulations, you’ve created an addon. Install as per other addons.

2 Likes

It worked! Never done that before; learned something new today. Thanks!