Macro for random mount

Hello,

I would like to make a macro (no addon) that would allow me to summon certain mounts when i’m grounded and to summon a mount from my favorites list the rest of the time.
If you’re wondering why, it’s because a lot of flying mounts launch on ground

Can i add a condition so that this script launches when I’m on the ground :
/run if IsMounted()then return end local t t={2339,663,1825,682,404,1943,311} C_MountJournal.SummonByID(t[random(#t)])

And this one the rest of the time :
/run C_MountJournal.SummonByID(0)

Does someone have a solution please ?

https://warcraft.wiki.gg/wiki/API_SecureCmdOptionParse

/run local t={0} if not SecureCmdOptionParse("[advflying] [flying]") then  t={2339,663,1825,682,404,1943,311} end C_MountJournal.SummonByID(t[random(#t)])

If the zone doesn’t support flying pick from the list, otherwise do random.

It’s weird, it doesn’t work, my favorite flying mounts are summoned even when I’m on Argus or 0ribos with this command :weary:

Oh, it’s -able not -ing

/run local t={0} if not SecureCmdOptionParse("[advflyable] [flyable]") then  t={2339,663,1825,682,404,1943,311} end C_MountJournal.SummonByID(t[random(#t)])
1 Like

It works perfectly!! Thank you very much! :wink:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.