LibItemLevel-1.0

241 Downloads

Items often aren't the item level that GetItemInfo claims. This is because of:

  • Upgraded items
  • Legion Artifacts
  • Timewalking scaling
  • Overall post-7.3.5 world reward scaling

But sometimes you still want to know what level they are. This is easy enough with tooltip scanning, but has certain pitfalls it's easy to miss. So, this library does that for you.

Example of use:

LIL = LibStub("LibItemLevel-1.0") -- ilvl of the item in slot 6 of the backpack: print(LIL.GetItemLevel(0, 6)) -- ilvl of an item by id print(LIL.GetItemLevel(12345)) -- ilvl of an item in an inventory slot print(LIL.GetItemLevel("HeadSlot")) -- ilvl of an item by item link print(LIL.GetItemLevel("item:12345"))