WoW:API GetContainerNumSlots: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Formatting mostly) |
||
| Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
Return the number of slots available in the bag specified by the index. | |||
GetContainerNumSlots(bagID); | numberOfSlots = GetContainerNumSlots(bagID); | ||
== Parameters == | |||
=== Arguments === | |||
:;[[bagID]] | |||
::: Integer - the slot containing the bag, e.g. 0 for backpack, etc. | |||
=== Returns === | |||
:; numberOfSlots | :; numberOfSlots | ||
::: Integer - the number of slots in the specified bag. | ::: Integer - the number of slots in the specified bag. | ||
== Details == | |||
* In 1.11.2, it appears that with the Key Ring, GetContainerNumSlots(-2) always returns zero, regardless of whether HasKey() is true or false. | |||
Revision as of 06:39, 16 August 2006
← WoW API < GetContainerNumSlots
Return the number of slots available in the bag specified by the index.
numberOfSlots = GetContainerNumSlots(bagID);
Parameters
Arguments
- bagID
-
- Integer - the slot containing the bag, e.g. 0 for backpack, etc.
Returns
- numberOfSlots
-
- Integer - the number of slots in the specified bag.
Details
- In 1.11.2, it appears that with the Key Ring, GetContainerNumSlots(-2) always returns zero, regardless of whether HasKey() is true or false.