For my Furnishing Recipe Collector addon, I have a need to get the recipe item link from the result item link.
I can't seem to get this working:
https://wiki.esoui.com/Select_a_recipe_in_recipe_list
I'm using the following functions, which seems like they should work, but they are not giving me the itemLink for the recipe, they are giving me the itemLink for the result item:
local craftingStationType, recipeListIndex,recipeIndex = GetRecipeInfoFromItemId(vItemLinkId)
local known_, name_, numIngredients_, provisionerLevelReq_, qualityReq_, specialIngredientType_, requiredCraftingStationType_, resultItemId_ GetRecipeInfo(recipeListIndex,recipeIndex)
I then tried figuring out how to iterate over ingredients, to see if the recipe was an ingredient, and I can't seem to find the correct way to iterate over the ingredients:
local link = GetRecipeIngredientItemLink(recipeListIndex, recipeIndex, i, LINK_STYLE_BRACKETS)