Originally Posted by
r0cki
Need a macro for several fly mounts (Onyxia, Cloud Serpent, and some more i might feel like using), and also for some ground mounts (Huntsman Horse, Raven Lord, etc).
Can anyone help me?
Thanks!
If you want random mounts:
Not sure if this still works
Code:
/userandom [flyable] FMOUNT1, FMOUNT2, FMOUNT3; MOUNT1, MOUNT2
replace MOUNTX with the mounts name, gets really long with lots of mounts.
This should: (is better if you want more mounts )
Code:
/run local m if IsFlyableArea() then m={1,3,5} else m={2,4,8}end CallCompanion("MOUNT",m[random(#m)])
Replace 1,3,5 with your flying mounts index (in mount tab) and 2,4,8 with ground mount indices. (you can list as many mounts you want, just separate them with commas)
You can get a full list of your mounts with indices:
Code:
/run for i=1,GetNumCompanions("mount") do print(i..": "..select(2,GetCompanionInfo("mount",i)))end
If you want to search a specific mount
Code:
/run local n for i=1,GetNumCompanions("mount") do n=select(2,GetCompanionInfo("mount",i)) if strfind(n,"Black") then print(i,n)end end
Replace Black with the search term. (This will show every mounts index with Black in its name, and also its name (by searching black you get more than 1 so it's nice to see the name too)