API:GetBagItemInfo

Gets information about a bag item in BagFrameTab1-6 (Backpack I-VI).

Arguments

 * bagIndex
 * number - The bag slot of the item to be used.

Returns

 * inventoryIndex
 * number - The Inventory index of the item (used in UseBagItem for instance).
 * icon
 * string - The path to the item's icon.
 * name
 * string - The name of the item.
 * itemCount
 * number - The number of the item
 * locked
 * boolean - 'cause it is in trade
 * quality
 * int - The quality/rarity of the item
 * 0 = white
 * 1 = green
 * 2 = blue
 * 3-7 = ???
 * 8 = item shop

Example
Returns information about the first bag item slot in Backpack I:

Related Functions

 * UseItemByName
 * GetBagCount
 * GetBagItemCooldown
 * UseBagItem
 * GetBagItemLink
 * GetGoodsItemInfo
 * PickupBagItem
 * SplitBagItem