WoW:API ContainerIDToInventoryID: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
----
----
;''Arguments''
;''Arguments''
:;:(containedID)
:;:(bagID)
:::;containedID: number - number of the bag to get the inventoryID for
:::;[[API TYPE bagID|bagID]] : number - number of the bag to get the inventoryID for


----
----
Line 9: Line 9:


:;inventoryID
:;inventoryID
:: inventoryID - the bag's inventory ID
:: inventoryID - the bag's inventory ID used in fonctions like [[API PutItemInBag|PutItemInBag(inventoryId)]]
----
----
;''Examples''
;''Examples''

Revision as of 23:44, 14 March 2006

ContainerIDToInventoryID -Documentation by Luke1410-

Arguments
(bagID)
bagID
number - number of the bag to get the inventoryID for

Returns
inventoryID
inventoryID - the bag's inventory ID used in fonctions like PutItemInBag(inventoryId)

Examples
local invID = ContainerIDToInventoryID(1)  
--Returns the invID

Result
invID contains the bag's inventoryID

Template:WoW API