WoW:API PickupContainerItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 30: Line 30:


:If you have nothing else active, calling this will "pick up" the item, causing the cursor to change to the item's icon.  Once this has happened, calling this a second time will swap the two items.  Likewise, calling this when an ability that targets an item is active (for example, enchanting), then this function will "cast" that ability on the targetted item.
:If you have nothing else active, calling this will "pick up" the item, causing the cursor to change to the item's icon.  Once this has happened, calling this a second time will swap the two items.  Likewise, calling this when an ability that targets an item is active (for example, enchanting), then this function will "cast" that ability on the targetted item.


----
----
{{Template:WoW API}} :
{{WoW API}}
<!-- Update the category to the appropriate subsection, and be sure to put the function name as the label for the category link. Multiple subcategories are okay if appropriate, please dont link functions to the API Functions category directly. -->
[[World of Warcraft API#Inventory_Functions|Inventory Functions]]
[[Category:API Functions|PickupContainerItem]]
[[Category:API Cursor Functions|PickupContainerItem]]
[[Category:API Container Functions|PickupContainerItem]]
[[Category:API Inventory Functions|PickupContainerItem]]

Revision as of 04:58, 4 January 2006

PickupContainerItem -Documentation by Xenoveritas-


PickupContainerItem(bag, slot);


"Picks up" an item in one of the backpacks. This appears to be a kind of catch-all "pick up/activate" function.


Arguments
(bag, slot)
bag
Integer - the integer ID bag the item is being taken from
slot
Integer - the slot number (1-based) of the item

Returns
Nothing.

Details
"Picks up" an item in one of the backpacks. This appears to be a kind of catch-all "pick up/activate" function.
If you have nothing else active, calling this will "pick up" the item, causing the cursor to change to the item's icon. Once this has happened, calling this a second time will swap the two items. Likewise, calling this when an ability that targets an item is active (for example, enchanting), then this function will "cast" that ability on the targetted item.



Template:WoW API