Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
bagId = ContainerIDToInventoryID(containerID)
Arguments
- bagID
- number - BagID between 1 and
NUM_BAG_SLOTS + NUM_BANKBAGSLOTS
Returns
- inventoryID
- number - InventorySlotId used in functions like PutItemInBag() and GetInventoryItemLink()
Example
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
Values
ID | Vanilla 1.13.7 |
Vanilla 1.14.0 |
TBC 2.5.2 |
Retail | Description |
---|---|---|---|---|---|
1st character bag | |||||
2nd character bag | |||||
3rd character bag | |||||
4th character bag | |||||
bank slots (vanilla: 24, bcc/retail: 28) | |||||
1st bank bag | |||||
2nd bank bag | |||||
3rd bank bag | |||||
4th bank bag | |||||
5th bank bag | |||||
6th bank bag | |||||
7th bank bag |