Wednesday 18 September 2013

World of Warcraft - Macro - Random Mount

This macro will random a mount from all of your available mounts.
Flying mounts for areas that allow flying or ground mounts where you cannot fly.

/dismount
/run if not IsMounted() then local m,t,f="mount",{{},{}} for i=2,GetNumCompanions(m) do tinsert(t[bit.band(2,select(6,GetCompanionInfo(m,i)))==0 and 1 or 2],i) end f=IsFlyableArea() and 2 or 1 CallCompanion(m,t[f][random(#t[f])]) else Dismount() end

Sometimes you may get a "cant use that mount" if you have a class specific, faction specific or zone specific mount, but just hit it again and you will get the next random.

No comments:

Post a Comment