WoW:API GetContainerNumSlots: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
(Formatting)
Line 13: Line 13:
<!-- List each argument, together with its type -->
<!-- List each argument, together with its type -->
:;[[API TYPE bagID|bagID]]
:;[[API TYPE bagID|bagID]]
::: Integer - the slot containing the bag.
::: Integer - the slot containing the bag. Valid slot numbers are 0-4. 0 is the BackPack, 1 is the 2nd Bag and so on.


----
----
Line 21: Line 21:
:numberOfSlots
:numberOfSlots
:; numberOfSlots
:; numberOfSlots
::: Integer - the number of slots in a bag.
::: Integer - the number of slots in the specified bag.
 
----
;''Details''
 
<!-- Details not appropriate for the main description can go here -->
:Valid slot numbers are 0-4. 0 is the BackPack, 1 is the 2nd Bag and so on.
 
 
----
----
{{WoW API}}
{{WoW API}}

Revision as of 06:58, 13 July 2006

GetContainerNumSlots -Documentation by Arvenis-


GetContainerNumSlots(bagID);


Gives you the number of slots available in the bag specified by the index.

Arguments
(bagID)
bagID
Integer - the slot containing the bag. Valid slot numbers are 0-4. 0 is the BackPack, 1 is the 2nd Bag and so on.

Returns
numberOfSlots
numberOfSlots
Integer - the number of slots in the specified bag.

Template:WoW API