WoW:API GetContainerNumSlots: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Linked bagID)
No edit summary
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}} __NOTOC__


Return the number of slots available in the bag specified by the index.
Returns the total number of slots in the bag specified by the index.


  numberOfSlots = GetContainerNumSlots([[bagID]]);
  numberOfSlots = GetContainerNumSlots([[bagID]]);

Revision as of 16:57, 11 December 2007

WoW API < GetContainerNumSlots

Returns the total number of slots 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, or 0 if there is no bag in the given slot.

Details

  • In 2.0.3, the Key Ring(-2) always returns 32. The size of the bag displayed is determined by the amount of space used in the keyring.