Quantcast Placing macros on action slots with Lua - WoWInterface
Thread Tools Display Modes
08-14-19, 03:21 AM   #1
oddnecessity
A Defias Bandit
Join Date: Jul 2019
Posts: 2
Question Placing macros on action slots with Lua

Hi,
I am using the following code in my addon to place spells on specific action slots:
Code:
PickupSpell("100") PlaceAction ("9") ClearCursor()
which works fine. What does not work is:
Code:
PickupMacro("ui off") PlaceAction ("59") ClearCursor()
PickupMacro("ui off") by itself works as intended (I have unique macro names)
ClearCursor() also works.
But PlaceAction seems to only work for spells, not for macros. Is this the intended behaviour? Am I missing something? How can I place macros on my action slots with Lua (I know it only works out of combat)
  Reply With Quote
08-14-19, 07:45 AM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,306
I suspect the PlaceAction function will only work with a spell or ability id as Action is usually used to signify a combat/defense action made and thus not with Macros which can be made up of multiple actions.

I've never had the need to do this programmatically so can't comment on whether this has always been the case but function name wise it makes sense to not work with macros.

Hopefully someone else with more experience of this stuff will have a better explanation/answer for you.
__________________
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Placing macros on action slots with Lua

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off