Thread Tools Display Modes
02-26-21, 06:09 AM   #1
Whanino
A Kobold Labourer
Join Date: Feb 2021
Posts: 1
Specific "no item, use that" Macro

Hi all!

I found one /script macro here that does something let's say close enough but it is not what I need. I tried to edit it but with no luck.

Basically, I need a macro that is gonna check for the exact item in my inventory, and if there is none it's gonna use a spell that gives that exact item. So basically one button for the same thing.

If there is item (use it), if there is no item in bag (spell to make it).

Thanks all for your time! Cheers!
  Reply With Quote
03-06-21, 05:58 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
There isn't a macro condition for that. What I tend to do is write a macro like this.
Code:
/cast [btn:1] ItemName; SpellName
This makes left-clicking the button use the item and right-clicking will create it.
Of course, replace ItemName and SpellName with the names of the actual item and creation spell.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 03-06-21 at 06:00 PM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Macro Help » Specific "no item, use that" Macro

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