WoW API: GetContainerNumSlots

From AddOn Studio
Revision as of 06:39, 16 August 2006 by WoWWiki>Mikk (Formatting mostly)
Jump to navigation Jump to search

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.