C_MountJournal.GetMountInfo

From Warcraft Wiki
Jump to navigation Jump to search
GitHub Octocat.png  Townlong-Yak BAD.png  ProfIcons engineering.png  BTNTemp.png C_MountJournal.GetMountInfoByID TheWarWithin-Icon-Inline.pngDragonflight-Icon-Inline.pngCata-Logo-Small.pngWrath-Logo-Small.pngWoW Icon update.png + 7.0.3 / 1.15.0
GitHub Octocat.png  Townlong-Yak BAD.png  ProfIcons engineering.png  BTNTemp.png C_MountJournal.GetDisplayedMountInfo TheWarWithin-Icon-Inline.pngDragonflight-Icon-Inline.pngCata-Logo-Small.pngWrath-Logo-Small.pngWoW Icon update.png + 7.0.3 / 1.15.0
Wowprogramming.png  BTNTemp.png C_MountJournal.GetMountInfo + 6.0.2

Returns information about the specified mount.

creatureName, spellID, icon, active, isUsable, sourceType, isFavorite, isFactionSpecific, faction, hideOnChar, isCollected = C_MountJournal.GetMountInfo(index)

Arguments

index
number - the index of the mount, in the range of 1 to C_MountJournal.GetNumMounts() (inclusive)

Returns

Index Value Type Details
1 creatureName String The name of the mount
2 spellID Number The ID of the spell that summons the mount
3 icon String Path to the icon for the mount
4 active Boolean Indicates if the player is currently mounted on the mount
5 isUsable Boolean Indicates if the mount is usable based on the player's current location, riding skill, profession skill, class, etc.
6 sourceType Number Indicates generally how the mount may be obtained; see the 3rd return value from C_MountJournal.GetMountInfoExtra for specific information
7 isFavorite Boolean Indicates if the mount is currently marked as a favorite
8 isFactionSpecific Boolean true if the mount is only available to one faction, false otherwise
9 faction Number/nil 0 if the mount is available only to Horde players, 1 if the mount is available only to Alliance players, or nil if the mount is not faction-specific
10 hideOnChar Boolean Indicates if the mount should be hidden in the player's mount journal (includes Swift Spectral Gryphon and mounts specific to the opposite faction)
11 isCollected Boolean Indicates if the player has learned the mount

Details

Returns nothing if the specified index is out of bounds.

Current values of the sourceType return include:

These are the same source type IDs and labels used in the pet journal.

Patch changes

See also