WoW:API GetContainerItemInfo

Revision as of 16:35, 24 February 2005 by WoWWiki>Arvenis
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
GetContainerItemInfo -Documentation by Arvenis-

Arguments
(bag,slot)
bag
number - number of the bag the item is in.
slot ;
number - slot number of the bag item you want the info for.

Returns
texture, itemCount
texture - the texture for the item in the specified bag slot
itemCount - the number of items in the specified bag slot

Examples
local texture, itemCount = GetContainerItemInfo(1,2);
If you are only interested in one of these values you can use the _ character to ignore the texture or the itemCount.
local _,itemCount = GetContainerItemInfo(1,2);
local texture,_ = GetContainerItemInfo(1,2);

See also: GetInventorySlotInfo to get the same information from a player's inventory (a.k.a. backpack).


Result
The texture variable will contain the item's texture and the itemCount variable will contain the number of that item in the slot.

Template:WoW API