WoW:API GetContainerNumSlots: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 28: Line 28:
<!-- 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. 0 is the BackPack, 1 is the 2nd Bag and so on.
:Valid slot numbers are 0-4. 0 is the BackPack, 1 is the 2nd Bag and so on.


----
----
{{Template:WoW API}} :
{{WoW API}}
<!-- Update the category to the appropriate subsection, and be sure to put the function name as the label for the category link. Multiple subcategories are okay if appropriate, please dont link functions to the API Functions category directly. -->
[[World of Warcraft API#Inventory_Functions|Inventory Functions]]
[[Category:API Functions|GetContainerNumSlots]]
[[Category:API Container Functions|GetContainerNumSlots]]
[[Category:API Inventory Functions|GetContainerNumSlots]]

Revision as of 04:57, 4 January 2006

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