C_TradeSkillUI.GetTradeSkillLine

From Wowpedia
Jump to: navigation, search

Returns information about the currently-open tradeskill in the trade skill frame, or nil if the frame is closed.

skillLineID, skillLineDisplayName, skillLineRank, skillLineMaxRank, skillLineModifier, parentSkillLineID, parentSkillLineDisplayName = C_TradeSkillUI.GetTradeSkillLine()

Returns

skillLineID 
number (TradeSkillLineID) - The ID of the tradeskill
skillLineDisplayName 
string - The localized name of the tradeskill
skillLineRank 
number - The current skill level of the tradeskill
skillLineMaxRank 
number - The max skill level of the tradeskill
skillLineModifier 
number - Modifiers to the tradeskill rank (such as +mining, +cooking, etc)
parentSkillLineID 
number (TradeSkillLineID, nilable) - The ID of the parent tradeskill, such as Alchemy if this skill is Legion Alchemy
parentSkillLineDisplayName 
string (nilable) - The localized name of the parent tradeskill

Patch changes

Previously returned "UNKNOWN" name and zero for other values when the frame was closed

See also

References

 
  1. ^ 2018-07-16, Blizzard_TradeSkillUI.lua, version 8.0.1.27101, near line 110, archived at Townlong-Yak
  2. ^ 2016-09-08, Blizzard_TradeSkillUI.lua, version 7.0.3.22594, near line 110, archived at Townlong-Yak
  3. ^ 2010-10-19, Blizzard_TradeSkillUI.lua, version 4.0.3.13329, near line 425, archived at Townlong-Yak
  4. ^ 2005-10-11, Blizzard_TradeSkillUI.lua, version 1.8.0.4735, near line 174, archived at Townlong-Yak