Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API ContainerIDToInventoryID

Last wiki revision 2022-07-21

bagID = ContainerIDToInventoryID(containerID)

  • bagID: - BagID between 1 and
  • inventoryID: - InventorySlotId used in functions like and

Prints all bag container IDs and their respective inventory IDs (You need to be at the bank for bank inventory IDs to return valid results) for i = 1, NUM_BAG_SLOTS + NUM_BANKBAGSLOTS do local invID = ContainerIDToInventoryID(i) print(i, invID, GetInventoryItemLink("player", invID)) end

Source

https://warcraft.wiki.gg/wiki/API_ContainerIDToInventoryID · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.