AutoMountEquip

This addon automatically finds and equips all items which can increase mount speed when you mount, and re-equips your previous gear set when you dismount. You can exclude items or enchants from being autoequipped if you desire, with "/ame exclude [name]" (where [name] is the name of an item or enchant from the list provided in the slash command help), and you can configure several other things via the same slash command. "/ame trinketslot" allows you to set your preferred trinket slot to upper or lower, "/ame pvpswitch" toggles whether or not gear will be autoequipped while in a battleground or arena, and "/ame messages" toggles whether or not feedback messages will be printed to the chat frame when you mount and dismount to inform you of which items were equipped. Also, you can tell the addon to ignore the next mount/dismount via a macro by including "/script AutoMountEquip.SetIgnoreNext(enabled)", where "enabled" is "true" or "false" without the quotes.

Addon Type Information

Addon type: Interface
Libraries used:

ConfigManager1

DelaysManager2

EventsManager1

SimpleSlash1

See the readme file in this addon's folder, or my author portal, for an explanation of the addon type system used.

Support

If you found a bug in this addon, want to provide feedback, want to help translate it, or even just want to ask a question, please contact me using one of these methods:

I don't know if anyone is still updating this mod, but there seems to be an annoying and possibly nasty bug with it. Sometimes (not 100% sure what the trigger is, but it might be when taking a multi-leg flight) at the end of the flight, the trinket that was replaced by "Carrot on a Stick" does not switch out successfully. Instead, the Carrot remains on the trinket slot and the trinket in question ends up on the mouse cursor.

Has anyone else experienced this behavior? Have you been able to track it down and fix it? Is this mod deprecated in favor of something else? (If so, what is it? A Google search for "auto mount" or "mount equip" only seems to return this mod.

AutoMountEquip 5.40a no longer works properly in WoW 2.1 live (USEng). This needs to be updated.

Mount up on a flying mount. The normal attack trinket that should be switched out with the Riding Crop (and was in WoW 2.0.12) isn't switched. At all, no matter how long you wait. But then get off the flying mount on the ground and the Riding Crop goes in its proper slot (but shouldn't be doing so, as you are dismounted).

This is all unrelated to logging out, going to a flight master or anything else; it was tested mounting & dismounting on the ground manually.

Apparently wowinterface REALLY hates indentation, it's auto-deleted both tabs and spaces now. And my pseudo-code does not make sense without indentation. I am going to use periods to substitute for indentation.

Mount Event Occurs:

if already wearing crop:
.....do nothing
if not wearing crop:
.....swap in the crop
.....PreferredTrinket = the trinket that the crop replaced

Unmount Event Occurs:

if not wearing crop:
.....-- assume user changed to new preferred trinket while mounted
.....-- do not restore preferred trinket, as user slotted a different trinket while mounted
.....PreferredTrinket = nil
if wearing crop and PreferredTrinket is nil:
.....do nothing
if wearing crop and PreferredTrinket is some trinket:
.....restore the preferred trinket
.....PreferredTrinket = nil

My formatting was deleted in the last post. Here it is again with formatting.

Mount Event Occurs:

if already wearing crop:
do nothing
if not wearing crop:
swap in the crop
PreferredTrinket = the trinket that the crop replaced

Unmount Event Occurs:

if not wearing crop:
-- assume user changed to new preferred trinket while mounted
-- do not restore preferred trinket, as user slotted a different trinket while mounted
PreferredTrinket = nil
if wearing crop and PreferredTrinket is nil:
do nothing
if wearing crop and PreferredTrinket is some trinket:
restore the preferred trinket
PreferredTrinket = nil

Note that the PreferredTrinket is always set to nil after unmounting, unless it's already nil.

Using this mod, several times a day, I am left with riding crop in a trinket slot after dismounting. This is mostly because of one reason: Logging out while mounted. But this is an extremely common occurence, especially in the Outlands. This may also happen if a dismount event never fires. This makes this mod unusable for me, as I am still having to replace my preferred trinkets after dismounting, several times a day.

This can easily be fixed by having the mod save the user's preferred trinket preference each time the mod swaps in a riding crop or something similar. This should be using SavedVariablesPerCharacter.

The following pseudocode should fix this problem.

Mount Event Occurs:

if already wearing crop:
do nothing
if not wearing crop:
swap in the crop
PreferredTrinket = the trinket that the crop replaced

Unmount Event Occurs:

if not wearing crop:
-- assume user changed to new preferred trinket while mounted
-- do not restore preferred trinket, as user slotted a different trinket while mounted
PreferredTrinket = nil
if wearing crop and PreferredTrinket is nil:
do nothing
if wearing crop and PreferredTrinket is some trinket:
restore the preferred trinket
PreferredTrinket = nil

Note that the PreferredTrinket is always set to nil after unmounting, unless it's already nil.

Unfortunately, the switching can't really be done any faster until Blizzard improves their API. The IsMounted() function returns the wrong values until about half a second after your mounetd status changes, so AutoMountEquip has to delay that long after your buffs change (indicating a possible change in mounted status) to check. The only other way to check mounted status is to parse each individual buff on you, to see if the texture matches a known mount icon. This method is very inefficient and results in false positives for druids and hunters.

E.g. As a warrior, if you dismount then charge a mob, then you're still wearing your mount gear when you reach the mob, which is kind of annoying. My ping is 65ms at the moment, so I doubt it is a server lag issue.

Also it seems "/ame messages" prints out the wrong message when you toggle it, i.e. "AutoMountEquip: No longer displaying feedback messages when autoequipping gear.", then it will actually display the feedback messages.