WoW:API GetInventoryItemCount

Revision as of 05:35, 29 March 2005 by WoWWiki>WoWWiki-Ulic
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
GetInventoryItemCount -Documentation by ulic-


GetInventoryItemCount("unit", slot);


Gets the quantity for an item in an Inventory Slot. Only known use for this is the ranged slot, for throwing weapons.


Arguments
(unit, slot)
unit
String - the string identifing where to get the slot info from
slot
Integer - the integer number of the inventory slot

Returns
Integer - the number of the item in the specified slot

Example
itemCount = GetInventoryItemCount("player", index);

Template:WoW API : Inventory Functions