GetCraftSkillLine

From Warcraft Wiki
Jump to navigation Jump to search

This command tells the caller which, if any, crafting window is currently open.

currentCraftingWindow = GetCraftSkillLine(n)

Arguments

n
number - Not sure how this is used, but any number greater than zero seems to behave identically. Passing zero always results in a nil return value.

Returns

currentCraftingWindow
string - The name of the currently opened crafting window, or nil if no crafting window is open. This will be one of "Enchanting" or "Beast Training".

Details

This function is not quite the same as GetCraftDisplaySkillLine(). The latter returns nil in case the Beast Training window is open, while the current function returns "Beast Training".

Patch changes

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