Blazing Saddles adds /mount and /mountrandom commands to mount and dismount under the new Companion UI, and /cute and /cuterandom commands to do the same thing for vanity pets. It tries to smart-match the names as much as possible and should be conditional-aware, i.e.
Originally posted by Narune I can't seem to get it to mountrandom in a nonflying locale
I've tired a bunch of variations, but nothing seems to happen when I'm in a non flying locale. If someone has a working macro please post. I just want it to choose a random mount where ever I am. Land mount when necessary.
It's not presently able to discriminate between flying and non-flying mounts, but it recognizes conditionals, so you *should* be able to say
I can't seem to get it to mountrandom in a nonflying locale
I've tired a bunch of variations, but nothing seems to happen when I'm in a non flying locale. If someone has a working macro please post. I just want it to choose a random mount where ever I am. Land mount when necessary.
If you are in a flyable area, you get a random mount from the list before the ;
If you are in a non-flyable area, it randomizes the mount from after the ;
Blizzard added their own mount command, making this addon redundant.
You can now use
/use Mountname;
to bring out your mount.
This is the paladin mounting macro i use:
Code:
/cast [nocombat, nomounted]!Crusader Aura; [mounted]!Retribution Aura;
/stopcasting
/use [noflyable,nocombat,nomounted] Swift Razzashi Raptor;
/use [flyable,nocombat,nomounted] Reins of the Onyx Netherwing Drake;
/dismount [mounted]
This works quite nice on live, but not on beta because the aura change now generates global cooldown, even with /stopcasting.
Patched today, the new signature for GetCompanionInfo is
<something>, name, <something>, <icon>, <active>. Change the code to:
local _, name, _, icon, active = GetCompanionInfo("MOUNT", i);
and
local _, name, _, icon, active = GetCompanionInfo("CRITTER", i);
The macro I posted below for paladins no longer works in this build -- the aura change starts the GCD, which apparently now affects the mounts. Hopefully this gets fixed.
I ran into some sort of trouble getting the add-on to match my mount's name correctly. I made a couple changes to the /mount command to help:
Added support for using mount number instead of name
Added a check for an exact match of the name (including capitalization)
If the mount you asked for couldn't be found, the add-on will now tell you that and list the mounts that it would have recognized
Just in case this is useful to anyone, here's my new SlashCmdList.Mount function:
Code:
function SlashCmdList.Mount(...)
local msg;
for i=1,select('#', ...) do
msg = select(i, ...);
if type(msg) == 'string' then
break;
end
end
if not msg then return; end
msg = SecureCmdOptionParse(msg);
local mounts = "";
if msg and msg ~= "" then
for i=1, GetNumCompanions("MOUNT") do
local _, _, name, icon, active = GetCompanionInfo("MOUNT", i);
mounts = mounts..i..": "..name.."\n";
if name:lower():match(msg:lower()) or i == msg or name == msg then
if not active then
CallCompanion("MOUNT", i);
return;
else
Dismount();
return;
end
return;
end
end
DEFAULT_CHAT_FRAME:AddMessage("Blazing Saddles: Mount \""..msg.."\" not found. Available choices are:\n"..mounts)
end
end
Also, for the Paladins out there, it took me some time to get a good macro running in WotLK which also switches your auras. In case this is helpful to anyone, here's the macro which did eventually work:
Originally posted by Darkspell but if you are not in a flying mount area, it does not default to ground mount at all. Nothing happens.
There seems to be some peculiarity in the way the flyable condition is being resolved, or something. I suspect this is at least as much part of the beta client as it is of the add-on.
Quote:
Also, it would be nice if when you clicked on the button again, you dismounted.
If you are not using a random macro, it should. If you are using a random macro, you can add a /dismount line after the /mountrandom line.
Originally posted by kamdis I haven't used the mod, so I can't say for sure, but I'm guessing that the semicolon between machine and rocket needs to be a comma.
Good call. A comma did the trick as far as the random part is concerned, but if you are not in a flying mount area, it does not default to ground mount at all. Nothing happens.
Also, it would be nice if when you clicked on the button again, you dismounted.
Last edited by Darkspell : 07-31-2008 at 07:15 PM.