WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Garrison Ability macro icon (https://www.wowinterface.com/forums/showthread.php?t=51626)

Banknorris 01-18-15 05:15 PM

Garrison Ability macro icon
 
Not really relevant but out of curiosity
Is there a way to (during combat and in Nagrand) set a macro icon to show Telaari Talbuk or Frostwolf War Wolf icons?

The macro is just a /click frame
frame is a secure button that determines with spell to cast.

The best I could do was
SetMacroSpell(MacroName,"Garrison Ability")
But that only sets the generic Garrison Ability icon and does not show the icon of the available Garrison Ability.

SetMacroSpell(MacroName,"Telaari Talbuk")
SetMacroSpell(MacroName,165803) --spell id of Telaari Talbuk
SetMacroSpell(MacroName,"Frostwolf War Wolf")
SetMacroSpell(MacroName,164222) --spell id of Frostwolf War Wolf
does not work
tested while in Nagrand and with a Corral there.

I know I can edit the macro to use that texture but it is not as good.

semlar 01-18-15 05:20 PM

Is there some reason you don't just use /use Garrison Ability?

#showtooltip Call to Arms seems to work fine.

p3lim 01-18-15 07:13 PM

Supporting the Corral outpost in a macro is not an easy task, I spent quite some time trying to get it working right as well, without much success.

I suggest making an addon for it, or use something like Phanx's MountMe.

Phanx 01-19-15 06:09 AM

Unfortunately MountMe won't solve the OP's primary issue, which is getting a dynamic icon that will show which mount or ability will be used before using it. The problem with that is that it's such a waste of resources to constantly calculate which ability would be used if the player activated the macro at any given time -- it could be the Nagrand garrison mount ability, it could be a random mount, or it could be an item, or it could be a travel form (or one of several forms, for druids) or it could be some other speed-boosting class ability. To keep an icon up to date you'd have to update it every time the player started moving, stopped moving, entered combat, left combat, entered a building or other indoor area, left the building or indoor area, or changed zones, as well as every time a generic "something changed" event fired for mounts, spells, and bag items, which can happen very frequently. I considered it when I wrote my addon, but very quickly decided it wasn't worthwhile.

Banknorris 01-19-15 06:34 AM

Apparently all mount addon authors agree with you, since none of them (to my knowledge) uses a dynamic icon, they either don't use a action bar button at all (just a keybind) or just use the summon random favorite mount icon (never changes). I do prefer to see the icon though (specially on my shaman).

Phanx 01-19-15 09:38 AM

Yeah, it doesn't bother me because I just have it keybound; I've never wasted a visible button on that. :p

Banknorris 03-12-15 11:14 PM

So, after a lot of time I came up with a solution.
http://www.wowinterface.com/download...MacroIcon.html


All times are GMT -6. The time now is 11:42 PM.

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