View Single Post
07/01/14, 04:23 AM   #49
farangkao
 
farangkao's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 59
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:
  1. BAG_BACKPACK = 1  -- your Inventory
  2. BAG_BANK = 2       -- your Bank
  3. BAG_BUYBACK = 4   -- Buyback Tab*
  4. BAG_DELETE = 255  -- No Idead,probably recently destroyed items (need to investigate)
  5. BAG_GUILDBANK = 3  --  Guildbank(s) *
  6. BAG_TRANSFER = 5   -- No Idea, probably Player-to-Player Transfer Window Items
  7. 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.

Last edited by farangkao : 07/01/14 at 04:31 AM.
  Reply With Quote