Thread Tools Display Modes
Old 04-06-13, 03:57 AM   #1
A Cyclonian
Join Date: Jul 2008
Posts: 40
Mount macro

I'm using a mount addon that casts random mounts depending on location. Simple /rmount.

How can i make a macro will be grayed out if i can not mount(like in combat or indoors), or glow as if equiped?
lynce is offline   Reply With Quote
Old 04-06-13, 12:52 PM   #2
Fishing Trainer
Seerah's Avatar
WoWInterface Super Mod
Join Date: Oct 2006
Posts: 9,479
If I'm not mistaken, you'll need to poll the action buttons to see which slot your macro is in. Your addon would then need to handle the change of its display manually.
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

Seerah is offline   Reply With Quote
Old 04-06-13, 06:49 PM   #3
A Pyroguard Emberseer
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 3,677
It would be easier to update your macro to use "/cast" commands and let the Blizzard code handle coloring and highlighting the action button.

For example, the addon would need to edit the macro with a new "/cast Mount Name" after each time you mounted (or every 2 minutes, etc) to show the next mount to be used.

Since addons can't edit macros in combat, if you wanted the macro to be useful in combat, your addon would need to edit the macro when entering combat to something like "/cast Travel Form" and edit it back to use a mount after combat ended.
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline   Reply With Quote
Old 04-09-13, 06:55 AM   #4
A Cyclonian
Join Date: Jul 2008
Posts: 40
Hehe this all sound way to complicated for me Think i'm just gonna stick with the simple macro i have.
lynce is offline   Reply With Quote
Old 10-26-13, 04:21 PM   #5
An Aku'mai Servant
morpheusxeno's Avatar
Join Date: Mar 2010
Posts: 39
#showtooltip [flyable]Red Drake;[noflyable]Swift Gray Ram
/run if IsMounted()then return end local t if not IsFlyableArea()then t={3,8,9,10}else t={1,2,4,6,7}end CallCompanion("MOUNT",t[random(#t)])

I think there is a condition for #show something like [notmountable] or something...
"I saw six men kicking and punching the mother-in-law. My neighbor said ‘Are you going to help?’ I said, ‘No, Six should be enough."

Last edited by morpheusxeno : 10-26-13 at 04:23 PM.
morpheusxeno is offline   Reply With Quote

Go BackWoWInterface » AddOns, Compilations, Macros » Macro Help » Mount 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