WoW:API GetTradeSkillLine: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(upgraded deprecated template)
m (Move page script moved page API GetTradeSkillLine to API GetTradeSkillLine without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{wowapi}}
{{wowapi}}
local tradeskillName, currentLevel, maxLevel GetTradeSkillLine();
  local tradeskillName, currentLevel, maxLevel = GetTradeSkillLine();




----
=== Returns ===
Returnvalues


'''tradeskillName'''
:;tradeskillName : Name of the current tradeskill
Name of the current tradeskill


'''currentLevel'''
:;currentLevel : Current level in tradeskill
Current level in tradeskill


'''maxLevel'''
:;maxLevel : Current maxlevel for tradeskill (based on Journeyman, Expert etc..)
Current maxlevel for tradeskill (based on Journeyman, Expert etc..)


{{template:WoW API}}
 
Note: GetTradeSkillLine() works by calling up your profession (ex: [[Blacksmithing]]) and pulls the data for the return values. If the profession window does not open, it will return an Unknown value for tradeskillName.

Latest revision as of 04:46, 15 August 2023

WoW API < GetTradeSkillLine

 local tradeskillName, currentLevel, maxLevel = GetTradeSkillLine();


Returns[edit]

tradeskillName
Name of the current tradeskill
currentLevel
Current level in tradeskill
maxLevel
Current maxlevel for tradeskill (based on Journeyman, Expert etc..)


Note: GetTradeSkillLine() works by calling up your profession (ex: Blacksmithing) and pulls the data for the return values. If the profession window does not open, it will return an Unknown value for tradeskillName.