ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Help/Support (https://www.esoui.com/forums/forumdisplay.php?f=164)
-   -   GetItemCraftingInfo itemType incorrect (https://www.esoui.com/forums/showthread.php?t=4610)

AssemblerManiac 04/19/15 09:37 PM

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)

circonian 04/25/15 09:57 PM

Quote:

Originally Posted by AssemblerManiac (Post 20684)
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.


All times are GMT -6. The time now is 04:52 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI