Only works when at the Auction House
I would like to create a macro that only works when I'm using the auctionhouse. I'm hoping that I don't need to settle for [nocombat].
I've tried this: Code:
/click [target=Auctioneer, exists] MacaroonButton70 Anyone got any ideas on how I can achieve this? Am I missing something easy? Thanks in advance :) |
The "target=*" macro condition only supports (a) unit tokens like "player" or "focus", or (b) names of characters in your current party or raid.
You could try this: Code:
/cleartarget |
Quote:
|
True, that's not the intended use, but it is the only way to accomplish some things. My action bar addon (also Macaroon) can use macro conditionals to define bar states. In order to create a bar state that shows only when I am dead, I have to do [@player, dead] which is the short version of [target=player, dead]. If you simply use [dead] it will show the bar when my current target is dead, which is not the desired functionality.
Also, I think the @unit alias for target=unit was added more because of the extreme limitations on the length of macros, than as an attempt to clarify the meaning. Length is also the reason they added bar as an alias for actionbar and form as an alias for stance (though the latter was also added because the average player probably does not realize that druid forms are considered stances by the game/macro engine). |
I use extensive Macro branching to minimize the amount of work required to change something that is used by more than one button. MacaroonButton503 ,for example, is in all of my combat macros and works perfectly, printing "Combat gear equipped successfully" only if that is actually the case. If I were to get an upgrade for my Bloodthirsty Pyrium Helm, (which is likely lol) it would be a nightmare changing all my buttons! With Macro branching I just need to change 1.
MacaroonButton503: Code:
/stopmacro [noequipped:Fishing Poles] Anyhoo, I've had a little inspiration from Phanx's suggestion and I've ended up with... Code:
/cleartarget [@target, dead] [@target, noharm] [@target, help] Cheers mate. |
Then again...
Don't get me wrong though Phanx, if there's a way to make the button only work when the AH is open like
Code:
/run if AuctionFrame:IsVisible() then... |
Quote:
Quote:
The second macro doesn't guarantee in any way whether or not the user has the AH up. You can run the macro right outside the building (the auctioneers still in view of the client) and the entire macro would still run. Quote:
Code:
/run if AuctionFrameAuctions and AuctionFrameAuctions:IsVisible() then AuctionsCancelAuctionButton:Click();StaticPopup1Button1:Click(); end |
All times are GMT -6. The time now is 08:11 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI