API:UseBagItem

Uses an bag item at the inventoryIndex in the GoodsFrame (Item Shop Backpack), the MagicBoxFrame (Arcane Transmutor), or BagFrameTab1-6 (Backpack I-VI).

Arguments

 * inventoryIndex
 * number - The inventoryIndex number of the item to be used.

Returns

 * None

Example
Uses the first bag item slot in Backpack I:

Related Functions

 * UseItemByName
 * GetBagCount
 * GetBagItemCooldown
 * GetBagItemInfo
 * GetBagItemLink
 * PickupBagItem
 * SplitBagItem