Get craft material level
Hello,
I am trying to get the level of craft material (from 4 to CP150). For exemple: - Rubedite Ingot is CP150-CP160 - Kresh Fiber is CP10 - CP30 How can I do this ? Thanks |
Are you at the relevant crafting station? Or is this anywhere? When you're at a station you have some extra functions you can use.
|
The game offers no built in way to do this easily. You'd have to create a lookup table or something.
|
you could use LibItemLink to get your correct level and item level by using:
Lua Code:
|
Great thanks !
Ii will try what you tell me |
Quote:
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). |
The function GetItemCraftingInfo return rankRequirement. The rank 1-10 defines the levels. The relation must be hard-coded.
|
All times are GMT -6. The time now is 07:59 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI