View Single Post
02/15/23, 03:56 AM   #11
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
You can get the styleId from the itemLink

Code:
* GetItemLinkInfo(*string* _itemLink_)
** _Returns:_ *string* _icon_, *integer* _sellPrice_, *bool* _meetsUsageRequirement_, *[EquipType|#EquipType]* _equipType_, *integer* _itemStyleId_

--or via
GetItemLinkItemStyle(itemLink)

Code:
* IsSmithingStyleKnown(*integer* _itemStyleId_, *luaindex* _patternIndex_)
** _Returns:_ *bool* _known_
I think the _patternIndex_ is the itemType then, like hands, head, etc. so maybe it's the same as EquipType, but I doubt it.
I guess you need to map between the 2 somehow: EquipType -> itemStylePatternIndex

I never used those functions so far. Maybe spy other addon's code, like CraftStore.

Last edited by Baertram : 02/15/23 at 04:57 AM.
  Reply With Quote