Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

API C_TradeSkillUI.GetAllRecipeIDs

From Wowpedia
Jump to: navigation, search

Returns a table containing all the recipe IDs for the current trade skill

recipeIDs = C_TradeSkillUI.GetAllRecipeIDs()

Returns

recipeIDs
table - The IDs of all the recipes for the current trade skill, or an empty table if the trade skill panel has yet to be opened.

Example

The following snippet lists the names of all the recipes for the current trade skill:

local recipeIDs = C_TradeSkillUI.GetAllRecipeIDs();
local recipeInfo = {};
for idx = 1, #recipeIDs do
  C_TradeSkillUI.GetRecipeInfo(recipeIDs[idx], recipeInfo);
  print(idx, recipeInfo.name);
end

Details

  • The table that is returned includes both learnt and unlearnt recipes and ignores all filtering.

Patch changes

See also