View Single Post
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