WoW:API UseContainerItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 23: Line 23:
----
----
{{Template:WoW API}}
{{Template:WoW API}}
[[Category:API Functions|UseContainerItem]]
[[Category:API Container Functions|UseContainerItem]]
[[Category:API Inventory Functions|GetContainerItemInfo]]
[[Category:API Inventory Functions|GetContainerItemInfo]]

Revision as of 17:49, 29 August 2005

UseContainerItem -Documentation by The Nerd Wonder-

Arguments
(bag,slot)
bag
number - number of the bag the item is in.
slot
number - slot number of the bag item you want the info for.

Bags are listed from main backback (original 16 slotter) left. Therefore if you were looking at the default bag row the bags would be numbered as such:
4, 3, 2, 1, 0


Slots are listed from left to right, top to bottom.
In the example of your main backback, the top row would be 1, 2, 3, 4. The bottom row would be 13, 14, 15, 16.

Example

UseContainerItem(0,6) would use an item in your main backback, second row down, one space to the right.


Template:WoW API