Get an Epic Experience with Premium


Libraries Login to Add Favorites
  • World of Warcraft
  • 4 Monthly Downloads
  • Supports:
  • 311 Total Downloads
  • Updated 02/20/2014
  • Created 02/20/2014
  • 0 Favorites
  • Project Site
  • Comments
  • Release Type: Alpha
  • License: All Rights Reserved

About LibItemInfo-1.0

Caches requested item info, allowing much quicker access on subsequent requests than GetItemInfo. Caches return values from GetItemInfo and are localised wherever applicable.

Callbacks when items get cached.

Simply get a reference to the library and then use it as a table, accessing item info using either item ID or item string.

If the item is cached, will return a table:

items[13262] = {
	name = "Ashbringer",
	quality = 5,
	itemLevel = 76,
	reqLevel = 60,
	type = "Weapon",
	subType = "Two-Handed Swords",
	invType = "INVTYPE_2HWEAPON",
	stackSize = 1,

This table is taken directly from the library database and should never be modified.

If not cached, will return nil and be queued for caching. A callback will fire when the item gets cached.


Fires once per frame update after all queued items that were cached were entered into the database.

Example usage:
local ItemInfo = LibStub("LibItemInfo-1.0")

local myAddon = {}

ItemInfo.RegisterCallback(myAddon, "OnItemInfoReceivedBatch", function(event, itemID)
	if ItemInfo[42] then
		print("Received item info")

local item = ItemInfo[42]

if item then

Better docs to be written.


Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Darkest Dungeon Wiki Editing Contest