API ContainerIDToInventoryID

inventoryId = ContainerIDToInventoryID(bagID)

Arguments

 * (bagID)


 * bagID : bagID - number of the bag (1 -- NUM_BAG_SLOTS+NUM_BANKBAGSLOTS) to get the inventoryID for.

Returns

 * inventoryID
 * inventoryID - the bag's inventory ID used in functions like PutItemInBag(inventoryId) and GetInventoryItemLink("player",inventoryId)

Example
local invID = ContainerIDToInventoryID(1) local bagLink = GetInventoryItemLink("player",invID) DEFAULT_CHAT_FRAME:AddMessage("Bag slot 1 is inventory slot "..invID..", a "..bagLink)

Result
Bag slot 1 is inventory slot 20, a [Imbued Netherweave Bag]