Thread Tools Display Modes
04/19/15, 09:37 PM   #1
AssemblerManiac
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 51
Unhappy GetItemCraftingInfo itemType incorrect

I'm trying to merge some data in InventoryInsight, but GetItemCraftingInfo is causing a problem.

2nd return value for all style mats is zero, but should be ITEMTYPE_STYLE_MATERIAL.

GetItemLinkItemType(itemLink) returns the proper value.

Can someone else confirm this fails on style mats?

Thanks

(I already know I can call both functions, but I hate additional call overhead if it's not necessary)
  Reply With Quote
04/25/15, 09:57 PM   #2
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by AssemblerManiac View Post
I'm trying to merge some data in InventoryInsight, but GetItemCraftingInfo is causing a problem.

2nd return value for all style mats is zero, but should be ITEMTYPE_STYLE_MATERIAL.

GetItemLinkItemType(itemLink) returns the proper value.

Can someone else confirm this fails on style mats?

Thanks

(I already know I can call both functions, but I hate additional call overhead if it's not necessary)
It only works for crafting materials. It does not work on gear and It does not work on Style material, they are not considered crafting materials (they are style materials). One reason for the differentiation between style materials & crafting materials is probably because style materials are not restricted to a single crafting type.

As for why couldn't it still return the correct itemType? I don't know, but it wont unless it is a crafting material.

The first 0 it returns for TradeskillType stands for: CRAFTING_TYPE_INVALID, which basically means it didn't work, its not a crafting mat.

Last edited by circonian : 04/25/15 at 10:01 PM.
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » GetItemCraftingInfo itemType incorrect


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