View Single Post
04-13-20, 06:25 AM   #4
kurapica.igas
A Chromatic Dragonspawn
Join Date: Aug 2011
Posts: 152
Using secure template doesn't mean you can use features like CastSpellByName, the template handle the OnClick for you, so you can only set attributes on the button.

For simple, we can bind the macro to the button:

Lua Code:
  1. btn:SetAttribute("type", "macro")
  2. btn:SetAttribute("macrotext", "/cast disenchant\n/run OpenAllBags()")
  Reply With Quote