View Single Post
10/17/18, 01:44 PM   #12
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
Originally Posted by ZOS_ChipHilseberg View Post
You want the required level and the quality of the applied enchant?
Maybe I am just misunderstanding, but I was thinking about getting the item link for the default, applied and final enchant so I can use it with all the other itemlink methods we already have. From what I know, we need the itemId (=enchantId?) and the quality to build that:

Lua Code:
  1. local enchantId = GetItemLinkDefaultEnchantId(armorItemLink)
  2. local searchCategory = GetEnchantSearchCategoryType(enchantId)
  3. local procAbilityId = GetEnchantProcAbilityId(enchantId)
  4. local glyphItemLink = string.format("|H1:item:%d:%d:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", enchantId, missing)

Maybe you could just change the methods to give us the link, like this:
Lua Code:
  1. local glyphItemLink = GetItemLinkDefaultEnchantLink(armorItemLink)
  2. local enchantId = GetItemLinkItemId(glyphItemLink)
  3. local searchCategory = GetEnchantSearchCategoryType(enchantId)
  4. local procAbilityId = GetEnchantProcAbilityId(enchantId)

Or maybe I am just mistaken?