Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetTradeSkillReagentInfo

Last wiki revision 2022-07-22

Returns information on reagents for the specified trade skill. reagentName, reagentTexture, reagentCount, playerReagentCount = GetTradeSkillReagentInfo(tradeSkillRecipeId, reagentId)

  • tradeSkillRecipeId:The Id of the tradeskill recipe
  • reagentId:The Id of the reagent (from 1 to x, where x is the result of calling GetTradeSkillNumReagents)
  • reagentName: - The name of the reagent.
  • reagentTexture: - The texture for the reagent's icon.
  • reagentCount: - The quantity of this reagent required to make one of these items.
  • playerReagentCount: - The quantity of this reagent in the player's inventory.

local numReagents = GetTradeSkillNumReagents(id); local totalReagents = 0; for i=1, numReagents, 1 do local reagentName, reagentTexture, reagentCount, playerReagentCount = GetTradeSkillReagentInfo(id, i); totalReagents = totalReagents + reagentCount; end;

Calculates the total number of items required by the recipe.

Source

https://warcraft.wiki.gg/wiki/API_GetTradeSkillReagentInfo · 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.