Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-16-22, 02:07 PM   #1
mooman219
A Defias Bandit
 
mooman219's Avatar
Join Date: Oct 2022
Posts: 3
Get spell name from a button name

Hello,

I'm looking to setup a script at load time to do the following:
Code:
local button = _G["BT4Button73"]
local action = GetAction(button)
if (action == "spell or item") then
  print("/use [@mouseover]%s", spell/item name)
end
I'm still reading into lua syntax, and trying to catch up on wowpedia.fandom.com/wiki/ for the API docs.

Last edited by mooman219 : 10-16-22 at 03:12 PM.
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » Macro Help » Get spell name from a button name


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