Wowpedia
Advertisement
Wowpedia
240,490
pages
Game Flavors
Links
Patch
Added in 1.1.0 / 1.13.2

Returns information about an item in a container slot.

icon, itemCount, locked, quality, readable, lootable, itemLink, isFiltered, noValue, itemID, isBound = GetContainerItemInfo(bagID, slot)

Arguments

bagID 
number - BagID of the bag the item is in, e.g. 0 for your backpack.
slot 
number - index of the slot inside the bag to look up.

Returns

1. texture 
number - The icon texture (FileID) for the item in the specified bag slot.
2. itemCount 
number - The number of items in the specified bag slot.
3. locked 
boolean - True if the item is locked by the server, false otherwise.
4. quality 
number - The Quality of the item.
5. readable 
boolean - True if the item can be "read" (as in a book), false otherwise.
6. lootable 
boolean - True if the item is a temporary container containing items that can be looted, false otherwise.
7. itemLink 
string - The itemLink of the item in the specified bag slot.
8. isFiltered 
boolean - True if the item is grayed-out during the current inventory search, false otherwise.
9. noValue 
boolean - True if the item has no gold value, false otherwise.
10. itemID 
number - The unique ID for the item in the specified bag slot.
11. isBound 
boolean - True if the item is bound to the current character, false otherwise.

Patch Changes

See Also

Advertisement