Thread Tools Display Modes
01/22/24, 03:09 PM   #1
Solution_Lop
AddOn Author - Click to view addons
Join Date: Jan 2024
Posts: 5
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.

Last edited by Solution_Lop : 01/22/24 at 03:13 PM.
  Reply With Quote
01/22/24, 04:22 PM   #2
Solution_Lop
AddOn Author - Click to view addons
Join Date: Jan 2024
Posts: 5
Originally Posted by Solution_Lop View Post
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))
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Get information about an item


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