API:GetBagItemInfo

__NOTOC__
GetBagItemInfo
Gets information about a bag item in BagFrameTab1-6 (Backpack I-VI).
local inventoryIndex, icon, name, itemCount, locked, invalid = GetBagItemInfo ( bagIndex )
== Parameters ==
=== 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 - Can the item be Dismantled? (unconfirmed)
:;quality
:: ???
== Notes ==
* Bag indexes used for GetBagItemInfo are not the same as the Inventory Indexes used by UseBagItem, GetBagItemLink, and PickupBagItem
* Bag indexes 1-30 are in Backpack I and run sequentially from left to right, top to bottom.
* Bag indexes 31-60 are in Backpack II and run sequentially from left to right, top to bottom.
* Bag indexes 61-90 are in Backpack III and run sequentially from left to right, top to bottom. (unconfirmed)
* Bag indexes 91-120 are in Backpack IV and run sequentially from left to right, top to bottom. (unconfirmed)
* Bag indexes 121-150 are in Backpack V and run sequentially from left to right, top to bottom. (unconfirmed)
* Bag indexes 151-180 are in Backpack VI and run sequentially from left to right, top to bottom. (unconfirmed)
* Bag indexes 181-257 all seem to point to the first slot in the Item Shop Backpack. (Bug?)
== Example ==
Returns information about the first bag item slot in Backpack I:
local inventoryIndex, icon, name, itemCount, locked, invalid = GetBagItemInfo(1)
== Pictures ==
== Related Functions ==
* UseItemByName
* GetBagCount
* GetBagItemCooldown
* UseBagItem
* GetBagItemLink
* PickupBagItem
* SplitBagItem