Thread Tools Display Modes
02-13-22, 02:26 PM   #1
Shadowdwarf
A Kobold Labourer
Join Date: Feb 2022
Posts: 1
btn1 / btn2 macro

Hey Guys

I would like this macro to work with Outfitter addon but i cant add conditional formatting to the line.
Can someone help me?

#showtooltip Water Shield
/outfitter wear MP5
/stopmacro [btn:1]
/cast Water Shield
/outfitter wear Normal


So basicly i dont want the 2'nd line /Outfitter wear MP5 to be casted if im clicking btn:2
Is that possible?
  Reply With Quote
02-13-22, 05:58 PM   #2
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,366
Code:
#showtooltip
/run if not IsMouseButtonDown"RightButton" then Outfitter:WearOutfitByName("MP5")end
/stopmacro [btn:1]
/use Water Shield
/outfitter wear Normal
Perhaps..
Your request is not very clear.

Use plain language to describe what should happen when you left or right click.

Last edited by Dridzt : 02-13-22 at 06:01 PM.
  Reply With Quote
Yesterday, 10:28 PM   #3
Codger
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Mar 2021
Posts: 35
My Rogue Poison Macro

I don't know if this will help you but here is the macro I use to apply poison to my daggers as a rogue:
#showtooltip
/use [button:1] Instant Poison
/use [button:2] Crippling Poison
  Reply With Quote
Today, 04:42 AM   #4
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,356
Slash commands registered by other addons don't natively support macro conditionals. It needs to be explicitly handled by the addon by passing the args through SecureCmdOptionParse().
__________________
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)
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Macro Help » btn1 / btn2 macro


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