Thread Tools Display Modes
03/13/17, 02:36 PM   #1
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
[implemented] Recipe ItemLink

Could GetRecipeInfo have the item ID added to its return, or could we have GetRecipeItemLink(number recipeListIndex, number recipeIndex) created?
 
03/13/17, 08:52 PM   #2
Noobanidus
 
Noobanidus's Avatar
AddOn Author - Click to view addons
Join Date: May 2015
Posts: 23
Originally Posted by Rhyono View Post
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?
 
03/13/17, 09:48 PM   #3
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
GetRecipeResultItemLink(recipeListIndex, recipeIndex) returns the consumable product of recipes you have learned.
 
03/14/17, 09:01 AM   #4
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
Unfortunately a recipe does not know anything about item(s) that teach it.
 
03/14/17, 12:15 PM   #5
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,567
Originally Posted by ZOS_ChipHilseberg View Post
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)
 
03/14/17, 01:52 PM   #6
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
That would be pretty easy to add, yes.
 
03/14/17, 02:46 PM   #7
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
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.
 
03/15/17, 04:07 AM   #8
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,567
Originally Posted by Rhyono View Post
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.
 
03/15/17, 11:46 AM   #9
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
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.
 
03/18/17, 12:21 PM   #10
manavortex
 
manavortex's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 138
You're the best. That will make my life with FurnitureCatalogue so much easier.
 
03/21/17, 10:53 PM   #11
Philgo68
AddOn Author - Click to view addons
Join Date: Nov 2014
Posts: 6
Crafted Item to Recipe

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

Thanks,

Philgo
 
02/20/18, 12:14 PM   #12
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,567
This has been added as
Code:
* GetItemLinkGrantedRecipeIndices(*string* _itemLink_)
** _Returns:_ *luaindex:nilable* _recipeListIndex_, *luaindex:nilable* _recipeIndex_
 

ESOUI » Developer Discussions » Wish List » [implemented] Recipe ItemLink

Thread Tools
Display Modes

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