Get an Epic Experience with Premium


Bags & Inventory Login to Add Favorites
  • World of Warcraft
  • 7 Monthly Downloads
  • Supports: 4.0.1
  • 1,647 Total Downloads
  • Updated 11/03/2010
  • Created 09/17/2008
  • 4 Favorites
  • Project Site
  • Comments
  • Release Type: Inactive
  • License: GNU Lesser General Public License version 2.1 (LGPLv2.1)
  • Newest File: v0.7

About LibBaggage-1.0

LibBaggage provides a simplified interface to the inventory. Most notably, there are only a handful of events to listen to (most addons using this library will be content with 3 or 4 of the events).


  • Watches the inventory, bank and equipment
  • Event propagation through the CallbackHandler-1.0 library
  • itemTable "data type"
    • Contains the location of the item in the form of a bagID and a slotID. The bagID is mostly the same as the bagID of the normal Blizzard API, extended with the values "bank", "keyring" and "equipment" to indicate that the item is not in a bag, but in an inventory slot
    • Contains all information to reconstruct a complete tooltip, notably an item link, all jewelIDs, enchantID, uniqueID, etc.
  • ItemAdded event whenever an item is added to the inventory
    • Arguments: bagID, slotID
  • ItemRemoved event whenever an item is removed from the inventory
    • Arguments: itemTable of the removed item

Planned Features

  • Guildbank support
  • Means to make the inventory data persistent across WoW sessions. Still, it is not planned to have LibBaggage save the data by itself. Rather, it will provide means for addons to save the data themselves and provide it back to LibBaggage in a later session.

r36 | nimbal | 2010-11-03 18:47:45 +0000 (Wed, 03 Nov 2010) | 1 line
Changed paths:
   A /tags/v0.7 (from /trunk:35)

Tagging as v0.7
r35 | nimbal | 2010-11-03 18:45:02 +0000 (Wed, 03 Nov 2010) | 3 lines
Changed paths:
   M /trunk/LibBaggage-1.0.lua
   M /trunk/LibBaggage-1.0.toc

* Bumped toc number
* Fixed item information not available on client startup due to the cache not being populated yet
* Fixed some bugs related to guild bank scanning
r33 | nimbal | 2010-10-09 09:03:29 +0000 (Sat, 09 Oct 2010) | 1 line
Changed paths:
   M /trunk/LibBaggage-1.0.toc

* Updated toc number
r31 | nimbal | 2010-10-09 08:56:11 +0000 (Sat, 09 Oct 2010) | 2 lines
Changed paths:
   M /trunk/LibBaggage-1.0.lua

* Minor refactoring
* Fixed error when moving items in guild bank
r30 | nimbal | 2009-05-23 20:34:56 +0000 (Sat, 23 May 2009) | 1 line
Changed paths:
   M /trunk/LibBaggage-1.0.lua

* Added guild bank support


  • #3
    Is your addon going to cache information, like baggins_anywhere or bagnon_forever?
  • #4
    It is planned to allow addons to get the raw data from the library and save it themselves in order to pass it back to LibBaggage when WoW starts up next time. However, what little time I have these weeks I rather spend in Northrend, so I can't give you any estimate on when this feature will become available.
  • #1
    Interesting. I've looked into a lot of mods that cache the inventory because I wanted to support them in ArmorCraft. I ended-up no doing it because nothing out there that is currently supported cover the whole picture.

    An inventory lib would need to cover:

    - Bags and backup inventory
    - Bank inventory
    - Guildbank
    - Equipement on the toon
    - Mailbox

    You have already planed for Guildbank, what about the Mailbox and what the character is wearing?
  • #2
    Equipment is already scanned, although there are no iterators for it yet. I won't add support for mailbox, though, as I feel that would be out of scope.
  • To post a comment, please login or register a new account.
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 »

The Sandbox: Godly Giveaway