It doesn't have to be the Inventory alone, but all of the values that can be entered as bagId in
the GetItemName(bagId,slotIndex) function.
There are Global Variables defined.
So far known to me:
Lua Code:
BAG_BACKPACK = 1 -- your Inventory
BAG_BANK = 2 -- your Bank
BAG_BUYBACK = 4 -- Buyback Tab*
BAG_DELETE = 255 -- No Idead,probably recently destroyed items (need to investigate)
BAG_GUILDBANK = 3 -- Guildbank(s) *
BAG_TRANSFER = 5 -- No Idea, probably Player-to-Player Transfer Window Items
BAG_WORN = 0 -- Equipped Items
* when accessing Guildbank Data you should wait for an event called EVENT_GUILD_BANK_ITEMS_READY
Probably similar event for Buyback Tab.
So for Khabit's problem ,the only solution i currently know:
- Scan Guild Bank Items, save them (important "ID", "Name")
- Scan ItemLinks from History, compare the "ID" with the "ID" of the previously saved information.
to retrieve the Name.