WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Macro Help (https://www.wowinterface.com/forums/forumdisplay.php?f=140)
-   -   Mount macro (https://www.wowinterface.com/forums/showthread.php?t=46183)

lynce 04-06-13 03:57 AM

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?

Seerah 04-06-13 12:52 PM

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.

Phanx 04-06-13 06:49 PM

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.

lynce 04-09-13 06:55 AM

Hehe this all sound way to complicated for me:) Think i'm just gonna stick with the simple macro i have.

morpheusxeno 10-26-13 04:21 PM

#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...


All times are GMT -6. The time now is 04:29 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI