WoW:API UseContainerItem: Difference between revisions
Jump to navigation
Jump to search
UseContainerItem -Documentation by The Nerd Wonder-
mNo edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
---- | ---- | ||
*Using container items is basicaly the same as clicking on them. This means that if you are at a vendor, your scripts can sell unintended items | *Using container items is basicaly the same as clicking on them with the mouse right-button. This means that if you are at a vendor, your scripts can sell unintended items or if a bank window is open the item may be put into the bank. | ||
Revision as of 22:12, 27 September 2006
- Arguments
-
- (bagID,slot)
-
- bagID
- number - number of the bag the item is in.
- slot
- number - slot number of the bag item you want the info for.
- Using container items is basicaly the same as clicking on them with the mouse right-button. This means that if you are at a vendor, your scripts can sell unintended items or if a bank window is open the item may be put into the bank.
- Bags are listed from main backpack (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
- Moreover when the bank is opened, bank content and bank bag can be accessed with -1 and 5 to 10 as bagID.
- 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.
- In the example of a 6, 10, 14, or 18-slot bag (or any other bag with slots not divisible by 4), the top row is 1, 2 and the next row is 3, 4, 5, 6. -Kris on 4/8/2006
- Example
UseContainerItem(0,6) would use an item in your main backback, second row down, one space to the right.