API:GetBagItemLink

Returns an itemlink of what's in your bag at the inventoryIndex.

Arguments

 * inventoryIndex
 * number - The inventoryIndex number of the item to be used.
 * simple
 * boolean - if true the itemlink will contain the base item only (no stats,dura,...)

Returns

 * itemlink
 * string - A string formatted with color and a link that causes the item to pop-up when clicked.

Example
Links the first bag item slot in Backpack I:

This will result in a simple link:

Related Functions

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