This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Classic Theme
Thottbot Theme
Random mount/pet macro question
Post Reply
Return to board index
Post by
rentardal
The question is simple i have many mounts and compainion pets but i never use em can i make a random cast macro with out having to manualy type in each mount/pets name and would there be a way to exclude slow mounts?
Post by
Myhv
It's not the best idea if you have more than 5 mounts, 'cause of 255 char limit. I would suggest getting an addon, I'm using GoGoMount, 'cause it's really smart and can be configured. Basically it will mount you on fastest mount you have that you can use in this area. It's actually works with WG (flying mount when there is no battle and ground during the battle). It also works with druid forms (have not tried it with flying one, but it works with travel). It will actually shapeshif in to travel form if you use it while moving ^^ And you can set preferred mounts for each zone/global if you don't want to use all of 'em.
Post by
Wildhorn
For pet:
/run local n = GetNumCompanions("CRITTER"); CallCompanion("CRITTER", random(1, n));
For mount:
/run local n = GetNumCompanions("MOUNT"); CallCompanion("MOUNT", random(1, n));
I will do more deep searching to make that mount macro to check for only fastest/flying mounts. brb
EDIT: I am unable to find a way to check mount speed. Btw, I check GoGoMount code... that guy is crazy, he manually made a data base with all ingame mounts! Which also mean the addon is very static and you need to wait for him to update it every time there is a new mount added ingame.
Post by
Myhv
Every time you get the new mount that was just added in to the game.... So I guess ain't that much of a problem. And so far it is being updated constantly.
Post by
rentardal
tyvm for now ill just dismount if slow mounts come up thanks for your help
Post by
153649
This post was from a user who has deleted their account.
Post by
Wildhorn
edited pet macro (forgot to change a mount for critter).
Post by
321579
This post was from a user who has deleted their account.
Post by
RedwoodElf
Whether you're in Dalaran, Wintergrasp, or any other zone, this macro will select a random mount that is appropriate for your current location.
/run if IsMounted()then return end local t if GetRealZoneText()=="Dalaran"and GetSubZoneText()~="Krasus' Landing"or GetZoneText()=="Wintergrasp"or not IsFlyableArea()then t={1,12,16}else t={6,7,15}end CallCompanion("MOUNT",t)
/dismount
Land mounts replace 1,12,16 and flying mounts replace 6,7,15. These can be a comma-delimited list of numbers or a single number, as long as they are within the braces.
The numbers correspond to the slot in your mounts tab: the first top-left mount is 1, the top-right is 6, bottom-left is 7, bottom-right is 12, and the first top-left mount on the second page is 13.
From
Wowmacros.com
. I recommend not adding the slots of your slow mounts or creating a second macro for slow mounts only.
That one is old. IsFlyableArea now correctly registers Dalaran/Krassus' landing, and Wintergrasp is now flyable except during the battle.
/run if IsMounted()then dismount() else local t if (GetZoneText()=="Wintergrasp" and not(GetWintergraspWaitTime()))or not IsFlyableArea()then t={1,12,16}else t={6,7,15}end CallCompanion("MOUNT",t) end
If you're in Wintergrasp and GetWintergraspWaitTime() returns nil (battle in progress) it will mount a walking mount, else a flying mount, hopefully. Servers are down, so I can't test it right now.
Post by
321579
This post was from a user who has deleted their account.
Post by
Wildhorn
Im trying to make a more dinamic macro. Personally I have way too many mounts to start to add every of them into "t=" :P
I guess OP is in same situation.
Post by
Zxian
Why not just use GoGoMount? And GoGoPet?
Post by
RedwoodElf
Why not just use GoGoMount? And GoGoPet?
Many people would like to keep their addons to a minimum. Making it all as a macro means no addon memory overhead.
Post by
RedwoodElf
/run if IsMounted()then dismount() else local t,w={1,12,16},(GetZoneText()=="Wintergrasp")if (w and GetWintergraspWaitTime())or(not(w) and IsFlyableArea())then t={6,7,15}end CallCompanion("MOUNT",t) end
First one didn't work, this may be better...still haven't been able to thoroughly test the wintergrasp functionality (Dang Hallows End Event) but it SHOULD work now.
Post by
Ental
To add to OP's post, what if youw anted to set up a macro that would cast a random mount for each type of mount you have... for instance, I have all the epic land mounts for all 5 factions (Silvermoon chickens, Orgrimar Wolves, etc...) and I wanted to have a random mount from each of the three offered to me. So when I pressed my mount for wolves it would pick one of three available to me, or the chicken, it would give me one of the three available and so on? Is this possible? This way, since I keep an extra small bar on my UI with my mounts (flying, faction, and mammoth/zhevra) I could have a single macro for chickens, one for wolves, one for horses, and so on.
Post by
RedwoodElf
To add to OP's post, what if youw anted to set up a macro that would cast a random mount for each type of mount you have... for instance, I have all the epic land mounts for all 5 factions (Silvermoon chickens, Orgrimar Wolves, etc...) and I wanted to have a random mount from each of the three offered to me. So when I pressed my mount for wolves it would pick one of three available to me, or the chicken, it would give me one of the three available and so on? Is this possible? This way, since I keep an extra small bar on my UI with my mounts (flying, faction, and mammoth/zhevra) I could have a single macro for chickens, one for wolves, one for horses, and so on.
Easily. Just edit the macro I gave you above, and change the lists to the mounts you want that macro to use, and give the macro an appropriate name and icon (Chicken for the chickens, hoofprint for horses, etc)
Post by
Ental
/run if IsMounted()then dismount() else local t,w={1,12,16},(GetZoneText()=="Wintergrasp")if (w and GetWintergraspWaitTime())or(not(w) and IsFlyableArea())then t={6,7,15}end CallCompanion("MOUNT",t) end
so... where it says: CallCompanion("MOUNT",t) end
replace with: CallCompanion("MOUNT",t) end
?
Post by
Zxian
Many people would like to keep their addons to a minimum. Making it all as a macro means no addon memory overhead.
Honestly, more RAM usage does not lead to lag in games. The sooner people figure this out, the better. If you're getting to the point where installing another addon is leading to your system paging memory to disk, you need to upgrade your memory pronto. Want a prime source of lag and system unresponsiveness? Insufficient memory.
Lag can be caused by addons that do a lot of data collection during battle (such as Recount or Skada), which are chewing up CPU cycles that might otherwise go towards the game engine itself. WoW is a very CPU demanding game, especially when you start tacking on all the data collection and organization addons that some people use.
An addon like GoGoMount does not consume any CPU cycles aside from when you call a mount. There are many other addons like this as well.
Post by
Ental
I figured out the random mount question for myself, and if anyone else is interested, I will post the answer myself here...
First, quick explanation...
I have my mounts on a small bar to the right on my screen. In my slots there are: Wolf mount, Raptor mount, Chicken mount, Kodo mount, Undead Horse mount, Mammoth, Zhevra, and Windriders.
The thing is, I have 3 of each one and want to be able to see/use any of them to my liking, but not so random that I never see one. Sometimes, I like riding my Undead mount on my way through Tirisfal Glades, or hop on the Wolf in Orgrimar, or maybe strap myself to my Mammoth while in Dalaran or Wintergrasp. Point is, I have three of each and some others, so I want to get a different one up to my liking, so I found the macro by search WowWiki.com...
#showtooltip
/castrandom Swift Gray Wolf, Swift Burgundy Wolf, Swift Brown Wolf
And then I can set up a macro for each other set of mounts and have at my access any of them according to my mood.
Hope it helps ANYONE.
Post by
RedwoodElf
(Actually , for the script version, you would replace the t={1,12,16} part with a list of the slot numbers of the pets you're looking for. Let's say your wolves are in slots 3,7,5, and 8 in your mount list tab...then you would put t={3,7,5,8} in the first part of the script (thats the walking mount list)
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.