Quantcast Generating an Item Link - ESOUI
Thread Tools Display Modes
08/11/17, 06:37 PM   #1
tomtomhotep's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2015
Posts: 20
Question Generating an Item Link


Are there any API functions or any way to generate an itemLink for an equipment item if you have the following:
  • Required Level
  • Required CP (or 0)
  • ARMORTYPE_xxx constant (or nil for weapons/shield)
  • EQUIP_TYPE_xxx constant (or nil for weapons/shield)
  • WEAPONTYPE_xxx constant (or nil for armor)
  • ITEM_TRAIT_TYPE_xxx constant
  • ITEMSTYLE_xxx constant
  • (string:nilable) setName (as would be returned by GetItemLinkSetInfo())

(but the item does not exist in any of player's bags, and player is not at a crafting station)

The addon I am making allows player to create a list of items to be crafted for another person, and I would like it to be able to mail the list of item links of the requested items before the addon user crafts them (like a confirmation).
  Reply With Quote
08/11/17, 07:48 PM   #2
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 250
Short answer, no. I've looked into it, both for the writ crafter and the set crafter. Unfortunately, you MUST have the ItemId of the item you wish to craft. The ItemId is dependent on a few things: The specific piece (medium hands, heavy belt, etc.) the trait, and the set. For JUST crafted items, this means you have 13 thousand different itemIds. As far as I know, there is no pattern.

That said, I do have a table of every single item ID, but it's 200 kb and I don't think you can really justify using it in an addon.

Sealed writs are close, and easier but they lack the level and quality, unfortunately.
  Reply With Quote
08/11/17, 08:26 PM   #3
tomtomhotep's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2015
Posts: 20
Ok. Didn't think so.

  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Generating an Item Link

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