WoW:API GetContainerNumSlots: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 27: Line 27:


<!-- Details not appropriate for the main description can go here -->
<!-- Details not appropriate for the main description can go here -->
:Valid slot numbers are 0-4, numbered from left to right including the backpack.
:Valid slot numbers are 0-4. 0 is the BackPack, 1 is the 2nd Bag and so on.


----
----

Revision as of 21:17, 15 July 2005

GetContainerNumSlots -Documentation by Arvenis-


GetContainerNumSlots(index);


Gives you the number of slots available in the bag specified by the index.

Arguments
(index)
index
Integer - the slot containing the bag.

Returns
numberOfSlots
numberOfSlots
Integer - the number of slots in a bag.

Details
Valid slot numbers are 0-4. 0 is the BackPack, 1 is the 2nd Bag and so on.

Template:WoW API : Inventory Functions