WoW:API GetInventoryItemCount: Difference between revisions

no edit summary
m (Just changed the {{wowapi}} tag to put it at the top of the page and remove the depreciated one.)
No edit summary
Line 14: Line 14:
:count
:count


:;count : Numeric - The number of the item in the specified slot. This returns 1 for normal items (AND for empty slots). For the ammo slot it returns the available quantity of that ammo type. BEWARE - An EMPTY ammo slot returns 1.
:;count : Numeric - Returns 1 on empty slots (Thus, on empty ammo slot, 1 is returned). For containers (Bags, etc.), this returns the number of items stored inside the container (Thus, empty containers return 0). Under all other conditions, this function returns the amount of items in the specified slot.
== Example ==
== Example ==
<!-- begin code -->
<!-- begin code -->
Anonymous user