Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns info for 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[]
Patch 8.0.1 (2018-07-17): 9th and 10th return values added.
Patch 7.0.3 (2016-07-19): First return value changed from a string texture path to a fileID.