View Single Post
05/03/20, 11:41 AM   #6
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Originally Posted by Scootworks View Post
you could use LibItemLink to get your correct level and item level by using:
Lua Code:
  1. LIB_ITEM_LINK:BuildItemLink(itemId, itemQuality, itemLevel, itemChampionPoints, itemStyle, isCrafted, enchantId, enchantQuality, linkStyle)
This won't "get" you the level but you are setting them yourself as you create an itemlink?

If you want to know what crafting material got what level you need to hardcode it, like the addon "Crafting Material Level Display" does, unfortunately.
Or you need the itemlinks of all these crafting materials and try if GetItemLinkRequiredLevel("itemlink of the crafting material") returns something valid (in the past it didn't and just returned 0 in some cases or other values).

Last edited by Baertram : 05/03/20 at 11:44 AM.
  Reply With Quote