Thread Tools Display Modes
04/21/14, 05:46 PM   #1
SubitusNex
Join Date: Apr 2014
Posts: 2
Problems with itemLink Parsing

I've been reading a few threads around here on itemLink parsing and I have a question for you knowledgeable ones.

Is there information on itemLinks on CraftingInfo (such as crafting type - provisioning, etc).

For items in your bags you can find out which type of crafting an item is for through the function GetItemCraftingInfo(integer bagId, integer slotIndex)

But if I want to do that based on a mail without putting it into the inventory there's no such function. The best thing I could come up with was getting the ItemLink and through that look into the item properties.

Figured out how to get item quality/color, but don't know yet about CraftingInfo.

Any ideas?
  Reply With Quote
04/22/14, 02:51 AM   #2
BadVolt
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 74
Look like here's what you are looking for
  1. GetAttachedItemLink(id64 mailId, luaindex attachIndex, LinkStyle linkStyle)
    Returns: string link
  2. GetAttachedItemInfo(id64 mailId, luaindex attachIndex)
    Returns: textureName icon, integer stack, string creatorName

And what info do you need exactly?
  Reply With Quote
04/22/14, 02:59 AM   #3
SubitusNex
Join Date: Apr 2014
Posts: 2
That far I know, my problem is getting crafting type info from the itemlink (since apparently you can only do get it through a function from an item in a bag), through something like ZO_LinkHandler_ParseLink(link) afterward.

Do we know what the 23 properties it gives out are exactly, or just the first few?

I'm going to try and look into a few of those through a bunch of links to try and figure it out.

Last edited by SubitusNex : 04/22/14 at 03:01 AM.
  Reply With Quote
04/22/14, 03:15 AM   #4
BadVolt
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 74
Originally Posted by SubitusNex View Post
That far I know, my problem is getting crafting type info from the itemlink (since apparently you can only do get it through a function from an item in a bag), through something like ZO_LinkHandler_ParseLink(link) afterward.

Do we know what the 23 properties it gives out are exactly, or just the first few?

I'm going to try and look into a few of those through a bunch of links to try and figure it out.
text, color, and various mystic "data". Looks like it depends on type of item link is attached to.
  Reply With Quote
04/22/14, 09:30 AM   #5
ins
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 76
Check the wiki.
I added an entry for http://wiki.esoui.com/ZO_LinkHandler_CreateLink

Linkhandler Create and Parse are basically the same. (I.e. One Parses what the other Creates)
  Reply With Quote
04/22/14, 11:50 AM   #6
Vicster0
 
Vicster0's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 82
Originally Posted by ins View Post
Check the wiki.
I added an entry for http://wiki.esoui.com/ZO_LinkHandler_CreateLink

Linkhandler Create and Parse are basically the same. (I.e. One Parses what the other Creates)
You sir, are one of my favorite people right now.

Time for me to update my LinkDissection() function!
  Reply With Quote
04/22/14, 01:27 PM   #7
ins
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 76
Cheers
My Wiki formatting sucks.

Updated it with some Ids for enchantments and some script examples you can use in game.
  Reply With Quote
04/22/14, 06:22 PM   #8
Vuelhering
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 169
Originally Posted by Vicster0 View Post
You sir, are one of my favorite people right now.
Same. Link parsing is pretty useful.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Problems with itemLink Parsing

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