Quantcast WoWInterface - View Single Post - TRUE random mount summoner (that works with flying mounts)
View Single Post
12-08-16, 04:15 PM   #11
A Molten Giant
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 913
Originally Posted by Amivit View Post
Ingame "Summon Random Favorite Mount" and RandomCompanion addon both disregard all my flyable mounts, if I'm not in a flying zone. I would really like to randomly summon those guys too.

Ignoring mount addons and the randomness discussion, this macro should still include flying mounts in no-flying zones
/run local j,t,b=C_MountJournal,{},0+SecureCmdOptionParse"[flyable]248;230"for i=1,j.GetNumMounts()do if select(5,j.GetMountInfoByID(i))and bit.band(select(5,j.GetMountInfoExtraByID(i)),b)==b then tinsert(t,i)end end _=#t>0 and j.SummonByID(t[random(#t)])
  Reply With Quote