- bagID - number of the bag (0-11) to get the inventoryID for.
Note: After TBC Closed Beta patch v22.214.171.12499 (8th Jan 2007), inputs outside the range of 0-11 (0-4 for bags, and 5-11 for bank) now throw "invalid container ID" errors. As of 2.3 (11/12/2007) passing in a bagID of 0 throws an "Invalid Container ID" error.
local invID = ContainerIDToInventoryID(1) DEFAULT_CHAT_FRAME:AddMessage("Bag slot 1 is inventory slot "..invID)
Bag slot 1 is inventory slot 20
- The return of container IDs -2 (key ring), -1 (bank) and 0 (backpack) aren't actual Inventory slots usable by most Inventory functions.
- The player bags begin at container 1 and inventory 20.
- The bank bags begin at container 5 and inventory 68.