Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Wowpedia
Advertisement

Returns the current profession displayed in the trade skill window.

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

Returns[]

skillLineID
number - TradeSkillLineID.
skillLineDisplayName
string - Localized name.
skillLineRank
number - Current skill level.
skillLineMaxRank
number - Maximum attainable skill level.
skillLineModifier
number - Modifiers to the skill level (such as +mining, +cooking, etc).
parentSkillLineID
number - TradeSkillLineID of the parent tradeskill (i.e. Alchemy if this skill is Legion Alchemy)
parentSkillLineDisplayName
string? - Localized name of the parent tradeskill.

Patch changes[]

Battle for Azeroth Patch 8.0.1 (2018-07-17): Added parentSkillLineID, parentSkillLineDisplayName arguments.[1]
Legion Patch 7.0.3 (2016-07-19): Changed to C_TradeSkillUI.GetTradeSkillLine(). Added skillLineID argument. Returns nil if the frame is closed.[2]

  • Previously returned "UNKNOWN" when the frame was closed

Cataclysm Patch 4.0.3 (2010-11-16): Added skillLineModifier argument.[3]
WoW Icon update Patch 1.8.0 (2005-10-10): Added as name, rank, maxRank = GetTradeSkillLine()[4]

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
Advertisement