About Random Mount

Summon a Random Mount based on ridding level, flying skill, location, and area. Simply create a macro containing /mnt or /rmount and it will summon a usable mount for the area you are in. For Options type /mnt help.
Thanks to Hendew (the original author) for his hard work in creating this great add-on.

================IMPORTANT NOTICE================
Patch 5.4 has changed flying mounts to all be allowed underwater.
This change broke the current method of detecting whether your character is at the surface or not.
A fix has been found but may break again at Blizzard will.

v1.07.05
Fixed bug trying to summon abyssal seahorse outside vashir
Fixed bug trying to summon a mount even after every attempt to find a usable one has failed
Improved savedvariables handling to pave the way for further improvements
Removed debug code that had served its purpose and some unused code

v1.07.02
Added dynamic mount capability detection (thanks neotsn for submitting helpful data)
Added /mnt setweight [0-1000] [pattern] command to set weights for mounts which affects how often they are chosen (default is 100)
Allow all land capable mounts to be selected in AQ not just qiraji mounts
Improved the logic that selects which type of mount to try
Use IsSpellKnown() to check riding skills
Create frame in lua instead of xml

v1.06.12
Temporary nag messages to collect feedback. I am considering removing the location filtering feature and adding a way to weight how often to use each mount. If you get a message about detecting unknown mount capabilities then please post the number(s) from the message or follow the directions from v1.06.11 notes.

v1.06.11
Added code to mine certain data that the API provides about mounts in order to better understand it. Please open your \World of Warcraft\WTF\Account\[username]\SaveVariables\RandomMountContinued.lua in a text editor and copy+paste the contents to this bug ticket: http://wow.curseforge.com/addons/random-mount/tickets/26-data-collection/ All data is appreciated but data from people with rare aquatic mounts (Reins of Poseidus, Sea Turtle, and Riding Turtle) is especially needed.

v1.06.10
Fixed game lockups from infinite looping in certain circumstances.

v1.06.09
Removed remaining mounts that do not exist

v1.06.08
Removed 2 redundant mounts

v1.06.07
Removed 2 redundant mounts that were causing those mounts to not be summoned

v1.06.06
Fixed error if you have not learned Tailoring or Engineering

v1.06.05
Thanks to phuzi0n for the error fixes

v1.06.04
Thanks to phuzi0n for the error fixes

v1.06.03
Added the Alliance Panderan Kite and the Upcomming Jade Pandaren Kite
Thanks to phuzi0n for the Profession Mount Fix and the miscellaneous printHelp error fixes

v1.06.02
Created work around for the Profession Mounts

v1.06.01
Created work around for the Profession Mounts

v1.06.00
All MoP mounts added and set for 5.0.4 patch

v1.05.07
Added Imperial Quilen mount

v1.05.05
Fixed the game freeze when entering a mount search incorrectly
Added all Mists of Pandaria mounts released to date

v1.05.02
New version using SecureCmdOptionParse()
You may use any Modifier Blizzard Supports as well as /mnt commands
I.E. /mnt [mod:shift,no combat] r horse;[mod:alt, help] riding;
/mnt [mod:ctrl] f drake; [mod:alt] icon; [mod:shift] remove gryphon;
One caveat I found is you need to put a trailing semi-colon for the default action

v1.04.37
Changed the Vashj'ir check to allow for Flying mount when at surface but not while underwater (Thanks to Xodiv for the idea)

v1.04.36
Added Vicious Gladiator's Twilight Drake

v1.04.35
Added update to Vashj'ir so only Seahorse is summoned (Thanks to Drowena for the code)

v1.04.32
Added Flametalon of Alyzrazor

v1.04.31
Added Furious Gladiator's Frost Wyrm

v1.04.30
Fixed a Blizzard change to Winter Grasp timer. Blizzard removed GetWintergraspWaitTime() and fixed the bug in the timer

v1.04.29
Update all Gryphon, Wind Rider, and Hippogryphs in the database to be both ground and flying mounts

v1.04.28
Updated for 4.2

v1.04.27
Added check for Ground mounts if you have riding skill but no ground mounts
Added additional check if you have a flying mount but not the Skill to use it

v1.04.26
Added new PvP ground mounts, the Vicious War Wolf (Horde) and Vicious War Steed (Alliance) from Patch 4.2,
modified the UIErrorsFrame check and removed English check of event frame
Added check for Flying mounts if you have flying skill but no flying mounts

v1.04.25
Modified the FindMount function call to only start looking for mounts and categorizing them if you have the required riding skill level

v1.04.24
Updated all Carpet, Rocket, Flying Machine Mounts to be both Ground and Flying Capable

v1.04.22
Found an error where in Northren if you have Cold Weather Flying but not Flight Master's License, flying mount would not summon
added Subdued Seahorse

v1.04.21
Added new Winged Guardian from Blizzard Store

v1.04.20
Made the Flight License check generic for any language
Found a bug where only a ground mount would be summoned if you did not have Flight Master's License

v1.04.10
Added Error Checking for Summoning Mount
Modified multiple Functions, Moved a few checks into Functions
Re-wrote the entire Mounting section
Removed the /mnt waterfly option (Not Needed Anymore)
Changed the search feature to /mnt r mount or /mnt f mount (riding or flying is Shrunk to r or f)
Fixed a lockup bug when searching for a mount while removeMount is active
If searching for a mount, removeMount is disabled then returned to original state after mount is summoned
When Swimming, Addon will try to summon a flying mount if you can fly, if that fails it will check for a SeaHorse or SeaTurtle, if that fails a ground mount will be summoned

v1.03.54
Reset check for Flight Master's License (Hopefully will not break Localization), fixed error if you have a large amount of mounts excluded,
added summoning of seahorse when standing on floor in Vashj'ir

v1.03.53
Fixed a removed variable that caused initialization error

v1.03.52
Seems like Blizzard changed some zone names in the master list thus they did not match. Changed the check to use IDs that do not change

v1.03.51
Added Amani Battle Bear and fixed a zone error where the ZoneName does not match ZoneName in Blizzards list

v1.03.50
Update for 4.1 and now Localized. Should be language independent
Changed all Mini Map Text lookups and Spells to their IDs

v1.03.10
Re-wrote the Search function so it accurately finds the mount you are looking for
To use the Search use /mnt riding mount or /mnt flying mount
This will allow you to summon a riding mount in a flying area or a specific flying mount
An error will appear if you cannot fly and try to summon flying mount, just like normal
Fixed a bug in the Throne of the Four Winds where it only tries to summon a flying mount not ground mount

v1.03.01
Forgot a pair of parenthesis, added search check, included waterfly into saved variables, updated all version numbers throughout the files

v1.03.00
Added a NEW feature that was highly requested. Water Flying
What is Water Flying: This enables you to summon a flying mount while you are at the surface of a body of water
The main caveat is you must be mounted on a riding mount, at the surface of the water, have waterfly enabled, and must NOT have a breath bar
If you meet all criteria above but are underwater you will get an error saying you can't use that here
If you are not mounted and on the surface you must hit the macro TWICE
Once to summon riding mount
Once to Dismount and summon flying mount

v1.02.22
Fixed a bug where Seahorse may be summoned if in a specific zone and swimming that was not in Vash'jir

v1.02.21
Fixed a bug when in Ahn'Qiraj the zone specific mounts would be added to the do not summon list and lock up the client

v1.02.20
Added the 7 new mounts introduced in Patch 4.1.0

v1.02.10
Added the Blazing hippogryph

v1.02.09
Added check if Total Mounts are under 10 then currently summoned mount will not be added to no summon list
No summon list limited to 1/5 total number of mounts

v1.02.08
Removed the runaway check
Added a check of the current nosummonlist to try to get more random mount call
Increased the nosummonlist to half the number of mounts you posses
Found incorrect check when summoning ground mount it would sometimes summon Sea Turtle or Abyssal Seahorse

v1.02.07
Found a glitch where if you did not have Flight Master's License and were in an OldWorld zone that IsFlyable it would try to call flying mount
Also found a bug where if the zone was Flyable it would always return true

v1.02.05
Added the rest of the new Cataclysm 22 mounts

v1.02.04
Added Zone check for Nespirah due to Blizzards mistake of marking it as flyable

v1.02.03
Added the two "Goblin Trike's" thanks to rxconnelly

v1.02.02
Added check for FlyableArea when zonetext does not match in game Database and is or is not flyable

v1.02.01
Added all zones for Vashj'ir

v1.02.00
Added Abyssal Seahorse
Changed water Mount function to check for Seahorse and check which zone you are in due to its requirements
Changed function to seaMount

v1.01.01
Found error where The Sea Turtle was summoned as regular riding mount

v1.01.00
Fixed the Outland Flying problem
Changed the entire Zone Check section to be a single unit
Changed the Riding Skill Section to take into account the removal of Skills Section
Changed the Mount Dictionary making Riding Mounts = 1, Flying Mounts = 2, Riding or Flying Mounts = 3
Removed references to EpicRiding and EpicFlying and 310 Mount Speed
Double Checked Safefly and verified it is working Removed an un-needed section of the TestMount function for Flyable

v1.0.0
Fixed not being able to mount flying mount in Wintergrasp after the battle was over
Added the new 4.0.3a mounts thanks to nicegy6767 and stypen from the original Add-on Added new
Cataclysm zones and Cataclysm Zone checks Fixed no flying mounts in Outland
Added the changes suggested by xantec69 from the original Add-on Removed Dalaran check (No longer needed)

v0.9.8
/mnt: /rmount: Will summon riding/flying mounts in the appropriate areas. mnt and rmount are interchangeable
/mnt help: Display help

You can now remove mounts based on spellId, useful for removing mounts that contain the same name.

Location filtering: This allows you to specify what mounts get summoned in what areas. You can specify a zone or min-map zone (case insensitive) and part or all of a mount's name. Enable location filtering with "/mnt locfilter".
Add locations and mounts "/mnt addloc zone:mount1,mount2,..."
zone can be a map zone and mini-map zone. Case doesn't matter, but it must be spelled correctly and with all punctuation as well. Separate with a colon ":" then specify mounts separated by commas ",". Mount names do not need to be the full name, partial names are fine, example ("wolf").
"/mnt addloc dalaran:talbuk,wolf,skeletal"
"/mnt addloc krasus' landing:drake,dragonhawk"
To remove a location, or mount from a location use "/mnt removeloc zone:mount1,mount2,..."
"/mnt removeloc dalaran" - Removes Dalaran from the location table,
"/mnt removeloc dalaran:wolf,talbuk" - Removes both wolf and talbuk from Dalaran but preserves all remaing mounts.
To clear the entire location table use "/mnt clearloc "
Print the current location table with "/mnt loctable"

safefly: If enabled, when you are flying you must double click the macro or button to dismount, to help prevent accidental suicide.

Mount Filtering: If you are tired of a specific type of mount, you can use a filter so it will no longer summon any of those type. For example, if you don't want to summon nether ray type "/mnt filter" to enable mount filtering and then type "/mnt remove ray" Any mounts containing "ray" in the name will no longer be summoned, be as vague or specific as you wish, if you wanted to you could remove all mounts with a "e" in them, I'm not sure I would recommend it but you could do it.

If Random Mount generates any errors please enable debug mode(/mnt debug) and post the code that it prints in your chat window in your comments.
Make sure that you post what version you are using.

Sorry for the trouble, I meant to tag it as a beta but I'm still getting used to how curse handles automatic packaging and it went out as a release with a small bug with moving the default weight to a new variable... The bug should be fixed in 1.07.04 and if you deleted your saved variables then you should be able to restore them from a backup so that you don't have to redo any settings you had..

/mnt riding or /mnt flying does nothing in chat. Type .mnt and anything else and it says mount does not exist. I thought it was my macro's so recreated them and no joy. Runing the version released today.

The new way going forward will be by setting their weights to 0 (or really low if you don't want to completely ban them). You can change every weight to 0 by running /mnt setweight 0 and then individually set higher weights for specific mounts like /mnt setweight 50 drake to set the weight of all mounts with "drake" in the name to 50, or you can set specific ones to 0 and leave the rest at the default of 100.

The old way is by setting rfilters and enabling rfilter in a similar fashion.

Any way I can type a command to "reset" this cache you're talking of? Or should I just wait for the next update? Not in a rush btw, don't want to sound like I'm demanding something off you or anything, I'm already very grateful you're actually taking care of this little shining addon ;)

It gets cleared whenever you reload the ui or logout. I will have a new version out soon with lots of fixes to things I broke.

I happened to learn a lot of new mounts the day the new version came out (the ones from the Tsu Shui reputation and the two from the Shieldwall faction), that might as well be the bug you're talking about.

Any way I can type a command to "reset" this cache you're talking of? Or should I just wait for the next update? Not in a rush btw, don't want to sound like I'm demanding something off you or anything, I'm already very grateful you're actually taking care of this little shining addon ;)