Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Line 34: Line 34:
 
==See Also==
 
==See Also==
 
* {{api|GetItemInfo}}
 
* {{api|GetItemInfo}}
  +
* {{api|GetItemInfoInstant}}

Revision as of 13:40, 11 August 2018

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

Arguments

bagID
Number (bagID) - number 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

Index Value Type Details
1 texture Number The fileID of the icon texture 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.

Patch Changes

  • Battle for Azeroth Patch 8.0.1 (2018-07-17): 9th and 10th return values added.
  • Legion Patch 7.0.3 (2016-07-19): First return value changed from a string texture path to a fileID.

See Also