WoW:API GetContainerNumSlots: Difference between revisions
Jump to navigation
Jump to search
GetContainerNumSlots -Documentation by Arvenis-
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | <!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | ||
GetContainerNumSlots( | GetContainerNumSlots(bagID); | ||
<!-- Describe the purpose of the function, though exhausting detail can be saved for a later section --> | <!-- Describe the purpose of the function, though exhausting detail can be saved for a later section --> | ||
| Line 10: | Line 10: | ||
---- | ---- | ||
;''Arguments'' | ;''Arguments'' | ||
:( | :(bagID) | ||
<!-- List each argument, together with its type --> | <!-- List each argument, together with its type --> | ||
:; | :;[[API TYPE bagID|bagID]] | ||
::: Integer - the slot containing the bag. | ::: Integer - the slot containing the bag. | ||
Revision as of 00:04, 15 March 2006
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.
- Returns
- numberOfSlots
- numberOfSlots
-
- Integer - the number of slots in a bag.
- Details
- Valid slot numbers are 0-4. 0 is the BackPack, 1 is the 2nd Bag and so on.