GetCraftDisplaySkillLine

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0

This command retrieves displayable information for the current craft.

name, rank, maxRank = GetCraftDisplaySkillLine()

Parameters

Returns

name
string - The name of the active craft, or nil if the current craft has no displayable name. Also nil if there are no active crafting windows.
rank
number - The player's current rank for the named craft, if applicable.
maxRank
number - The maximum rank for the named craft, if applicable.

Details

The two crafts, Beast Training and Enchanting, have a slightly different UI: the latter has a blue progress bar at the top of the window indicating the player's rank while the former does not. Accordingly, this function returns nil when the Beast Training window is open, while all return values should be valid when the Enchanting window is open.

See Also

GetCraftSkillLine() returns the name of the currently active crafting window regardless of whether the name should be displayed.

Patch changes

Wrath-Logo-Small.png Patch 3.0.2 (2008-10-14): Removed.