WoW:API GetContainerNumSlots: Difference between revisions
Jump to navigation
Jump to search
(Formatting mostly) |
m (linkified HasKey) |
||
| Line 17: | Line 17: | ||
== Details == | == 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. | * In 1.11.2, it appears that with the Key Ring, GetContainerNumSlots(-2) always returns zero, regardless of whether [[API HasKey|HasKey]]() is true or false. | ||
Revision as of 23:06, 1 November 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.