Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetTradeSkillInfo

Last wiki revision 2022-08-01

Retrieves information about a specific trade skill. skillName, skillType, numAvailable, isExpanded, altVerb, numSkillUps, indentLevel, showProgressBar, currentRank, maxRank, startingRank = GetTradeSkillInfo(skillIndex)

(skillIndex)

  • skillIndex: - The id of the skill you want to query.

skillName, skillType, numAvailable, isExpanded, altVerb, numSkillUps

  • skillName: - The name of the skill, e.g. "Copper Breastplate" or "Daggers", if the skillIndex references to a heading.
  • skillType: - "header", if the skillIndex references to a heading; "subheader", if the skillINdex references a subheader for things like the cooking specialties; or a string indicating the difficulty to craft the item ("trivial", "easy", "medium", "optimal", "difficult").
  • numAvailable: - The number of items the player can craft with his available trade goods.
  • isExpanded: - Returns if the header of the skillIndex is expanded in the crafting window or not
  • altVerb: - If not nil, a verb other than "Create" which describes the trade skill action (i.e., for Enchanting, this returns "Enchant"). If nil the expected verb is "Create."
  • numSkillUps: - The number of skill ups that the player can receive by crafting this item.
  • indentLevel: - 0 or 1, indicates whether this skill should be indented beneath its header. Used for specialty subheaders and their recipes.
  • showProgressBar: - indicates if a sub-progressbar must be displayed with the specialty current and max ranks. In the normal UI, those values are only shown when the mouse is over the sub-header.
  • currentRank: - is a the current rank for the specialty if showProgressBar is true.
  • maxRank: - is a the maximum rank for the specialty if showProgressBar is true.
  • startingRank: - is the starting rank where the specialty is available. It is used as the starting value of the progress bar.

local name, type; for i=1,GetNumTradeSkills do name, type, _, _, _, _ = GetTradeSkillInfo(i); if (name and type ~= "header") then DEFAULT_CHAT_FRAME:AddMessage("Found: "..name); end end

  • Displays all items the player is able to craft in the chat windows.

Source

https://warcraft.wiki.gg/wiki/API_GetTradeSkillInfo · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.