Thread Tools Display Modes
Prev Previous Post   Next Post Next
07/13/24, 02:57 PM   #1
tomstock
AddOn Author - Click to view addons
Join Date: Feb 2022
Posts: 6
Question Recipe ItemLink from Result ItemLink

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)
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » Recipe ItemLink from Result ItemLink


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off