WoW API: GetContainerNumFreeSlots

From AddOn Studio
Revision as of 14:31, 27 January 2009 by WoWWiki>CaliNerathor (New page: {{wowapi}} __NOTOC__ Returns the total number of free slots in the bag an the type of items that can go into it specified by the index. numberOfFreeSlots, BagType = GetContainerNumSlots...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetContainerNumFreeSlots

Returns the total number of free slots in the bag an the type of items that can go into it specified by the index.

numberOfFreeSlots, BagType = GetContainerNumSlots(bagID);

Parameters

Arguments

bagID
Integer - the slot containing the bag, e.g. 0 for backpack, etc.

Returns

numberOfFreeSlots
Integer - the number of slots in the specified bag, or 0 if there is no bag in the given slot.
BagType
Integer - The type of the container