Originally Posted by Scootworks
you could use LibItemLink to get your correct level and item level by using:
Lua Code:
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).