ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Wish List (https://www.esoui.com/forums/forumdisplay.php?f=177)
-   -   [implemented] Recipe ItemLink (https://www.esoui.com/forums/showthread.php?t=6899)

Rhyono 03/13/17 02:36 PM

[implemented] Recipe ItemLink
 
Could GetRecipeInfo have the item ID added to its return, or could we have GetRecipeItemLink(number recipeListIndex, number recipeIndex) created?

Noobanidus 03/13/17 08:52 PM

Quote:

Originally Posted by Rhyono (Post 30209)
Could GetRecipeInfo have the item ID added to its return, or could we have GetRecipeItemLink(number recipeListIndex, number recipeIndex) created?

Does GetRecipeResultItemLink(recipeListIndex, recipeIndex) do what you're looking for?

Rhyono 03/13/17 09:48 PM

GetRecipeResultItemLink(recipeListIndex, recipeIndex) returns the consumable product of recipes you have learned.

ZOS_ChipHilseberg 03/14/17 09:01 AM

Unfortunately a recipe does not know anything about item(s) that teach it.

sirinsidiator 03/14/17 12:15 PM

Quote:

Originally Posted by ZOS_ChipHilseberg (Post 30217)
Unfortunately a recipe does not know anything about item(s) that teach it.

Would it work the other way around?
Lua Code:
  1. recipeListIndex, recipeIndex = GetItemLinkRecipeIndex(itemLink)

ZOS_ChipHilseberg 03/14/17 01:52 PM

That would be pretty easy to add, yes.

Rhyono 03/14/17 02:46 PM

My intention was so that we no longer needed to keep lookup tables for recipes. So doing the reverse doesn't solve the problem, at least for me.

sirinsidiator 03/15/17 04:07 AM

Quote:

Originally Posted by Rhyono (Post 30222)
My intention was so that we no longer needed to keep lookup tables for recipes. So doing the reverse doesn't solve the problem, at least for me.

While that is true, it should still help you by making it easier to generate a lookup table.
Just iterate over all itemIds (start on the first recipe itemId as that will never change), generate a link, check if it is a recipe and if it is one, save the data into the table.

ZOS_ChipHilseberg 03/15/17 11:46 AM

The API has been added and I also unblocked the GetRecipeInfo API so it can give results even if you don't know the recipe.

manavortex 03/18/17 12:21 PM

You're the best. That will make my life with FurnitureCatalogue so much easier.

Philgo68 03/21/17 10:53 PM

Crafted Item to Recipe
 
So where is that API Chip? This would help greatly with a new MM function also.

Thanks,

Philgo

sirinsidiator 02/20/18 12:14 PM

This has been added as
Code:

* GetItemLinkGrantedRecipeIndices(*string* _itemLink_)
** _Returns:_ *luaindex:nilable* _recipeListIndex_, *luaindex:nilable* _recipeIndex_



All times are GMT -6. The time now is 10:22 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI