ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Get information about an item (https://www.esoui.com/forums/showthread.php?t=10795)

Solution_Lop 01/22/24 03:09 PM

Get information about an item
 
Hello, I'm looking for a method that will return me string SI_ITEMTYPEDISPLAYCATEGORY

I've been looking for a long time and haven't found anything like it. The task is to find which category the itemLink belongs to.

For example, that Heartwood is Woodworking, etc.

I've already tried the GetItemLinkCraftingSkillType(itemLink) method, but it doesn't return what I need. For example, weapons are sent to the Blacksmithing category.

Solution_Lop 01/22/24 04:22 PM

Quote:

Originally Posted by Solution_Lop (Post 49249)
Hello, I'm looking for a method that will return me string SI_ITEMTYPEDISPLAYCATEGORY

I've been looking for a long time and haven't found anything like it. The task is to find which category the itemLink belongs to.

For example, that Heartwood is Woodworking, etc.

I've already tried the GetItemLinkCraftingSkillType(itemLink) method, but it doesn't return what I need. For example, weapons are sent to the Blacksmithing category.

Okay, I went into the source code of the inventory and found a solution. In case anyone is interested:

Lua Code:
  1. local category, subcategory = GetItemLinkFilterTypeInfo(itemLink)
  2.     d(GetString("SI_ITEMFILTERTYPE", test1))
  3.     d(GetString("SI_ITEMFILTERTYPE", test2))


All times are GMT -6. The time now is 04:49 PM.

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