-- I also whish to thanks SDPhantom and Phanx for their help, code and suggestions that help me so much in understanding and writing my first addon

801-2018081101
- bump toc

720-2017032801
- bump toc

1.0-2016102601
- bump toc

1.0-2016070501
- changed name and references to gmMounts
- bump toc for 7.0
- used the new C_MountJournal functions

--- Previous changes of MountRndCat

1.0-2015101801
- fixed a bug where a mount with the same name but with 2 ids can't be summoned (thanks to Phanx for the input and ideas)
- add the default category " favorites! " which randomly summon a mount from the favorites.
Basically it is the same of the "Summon Random Favorite Mount" spell, but I need it to use in a macro.
To do it you can also use a simple:

C_MountJournal.Summon(0)

but I found it acts more as a switch than a summon.
So you press once it summon a random favorite you press twice it dismiss.
I have to check it better.

I love your addon but I had to make a couple tweaks to it.
The output of running fc core.lua core-ORIGINALBAK.lua where "core.lua" is my modified version and "core-ORIGINALBAK.lua" is your original version is as follows:

The third/last change makes it so /gmm does nothing. I need this so that the following macro works (almost) as it would were I to use /castrandom <condition-based parameters> instead of /gmm <condition-based categories>:

Aside from using categories' names instead of a comma-separated list of mounts' names, the difference from using /gmm instead of /castrandom is that I had to add a final semicolon to the end to simulate a /gmm "" and do nothing (in case the character is indoors or whatever) and not get an error message in the process.

The second change is simply what you suggested earlier in this thread, so as to not display the "Summoning ..." chat message.

I'm not acutally asking you to implement these changes but I figured you might like to know how people are using and editing your addon.

Hi, tried a few random mount addons, but none of them seemed to let you use flying mounts in non-flying areas. Found this one and it's just what I want. Just wondering though if there's a way to turn off the chat announcement when summing a mount. Again great addon.

Hi,
there is no defined cfg that you can set at the moment to silent it.

I can implement it easily in a next version btw.
In the meantime you can comment out the lines that make the output.

So, for example, line 109:

Lua Code:

print(prgname .. " is summoning... " .. name)

should become in this way:

Lua Code:

-- print(prgname .. " is summoning... " .. name)

Stay tuned and thanks for your kind appreciation.

__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.

Hi, tried a few random mount addons, but none of them seemed to let you use flying mounts in non-flying areas. Found this one and it's just what I want. Just wondering though if there's a way to turn off the chat announcement when summing a mount. Again great addon.