API:PickupBagItem

__NOTOC__
Places an item from the bag slot referenced by by inventoryIndex into the cursor, and places the current cursor item into the same bag slot.
PickupBagItem(inventoryIndex);
== Parameters ==
=== Arguments ===
:;inventoryIndex
::number - The inventoryIndex number of the item to be used.
=== Returns ===
:;none
== Example ==
Swaps the first and second bag slots in Backpack I:
PickupBagItem(GetBagItemInfo(1))
PickupBagItem(GetBagItemInfo(2))
== Notes ==
* Trying to use PickupBagItem to try to place an item into a backpack slot that is not rented will cause the client to exit to the login screen. 
* Bag indexes used for GetBagItemInfo are not the same as the Inventory Indexes used by UseBagItem, GetBagItemLink, and PickupBagItem
* Inventory Indexes 1-50 are in the Item Shop Backpack and run sequentially from left to right, top to bottom. It is possible these could move like the backpacks, but has not been observed.
* Inventory Indexes 51-55 are in the Arcane Transmutor and start with 51 in the middle, and from there run sequentially from left to right, top to bottom. It is possible these could move like the backpacks, but has not been observed.
* Inventory Indexes 56-60 are invisible slots in the Arcane Transmutor. You can put stuff in here, but if you do an arcane combine, it will all disappear!
* Inventory Indexes 61-90 are in Backpack I, but seem to move around every session.
* Inventory Indexes 91-120 are in Backpack II, but seem to move around every session.
* Inventory Indexes 121-150 are in Backpack III, but seem to move around every session.(unconfirmed)
* Inventory Indexes 151-180 are in Backpack IV, but seem to move around every session.(unconfirmed)
* Inventory Indexes 181-210 are in Backpack V, but seem to move around every session.(unconfirmed)
* Inventory Indexes 211-240 are in Backpack VI, but seem to move around every session.(unconfirmed)
== Pictures ==
== Related Functions ==
* GetBagCount
* GetBagItemCooldown
* GetBagItemLink
* GetBagItemInfo
* SplitBagItem
* UseBagItem
* UseItemByName
Category:Functions