WoW:API GetContainerNumSlots: Difference between revisions
Jump to navigation
Jump to search
GetContainerNumSlots -Documentation by Arvenis-
(Formatting) |
No edit summary |
||
| Line 23: | Line 23: | ||
::: Integer - the number of slots in the specified bag. | ::: Integer - the number of slots in the specified bag. | ||
---- | ---- | ||
;''Notes'' | |||
In 1.11.2, it appears that with the Key Ring, GetContainerNumSlots(-2) always returns zero. | |||
This happens if HasKey() is true or false. | |||
{{WoW API}} | {{WoW API}} | ||
Revision as of 03:32, 16 August 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. 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.
- Notes
In 1.11.2, it appears that with the Key Ring, GetContainerNumSlots(-2) always returns zero.
This happens if HasKey() is true or false. Template:WoW API