WoW:API GetContainerNumFreeSlots: Difference between revisions
Jump to navigation
Jump to search
(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...) |
m (Move page script moved page API GetContainerNumFreeSlots to API GetContainerNumFreeSlots without leaving a redirect) |
||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
Returns the total number of free slots in the bag an the type of items that can go into it specified by the index. | 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 = | numberOfFreeSlots, BagType = GetContainerNumFreeSlots([[bagID]]); | ||
== Parameters == | == Parameters == |
Latest revision as of 04:45, 15 August 2023
← 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 = GetContainerNumFreeSlots(bagID);
Parameters[edit]
Arguments[edit]
- bagID
-
- Integer - the slot containing the bag, e.g. 0 for backpack, etc.
Returns[edit]
- 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