WoW:API UseContainerItem: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Redid page to follow the BoilerPlate, added onSelf, added more slot info) |
||
Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
Use an item from a container. If Merchant window is open, this will sell the item. | |||
UseContainerItem(bagId, slot [, onSelf]) | |||
: | == Parameters == | ||
=== Arguments === | |||
:(bagId, slot [, onSelf]) | |||
:: | :;[[bagId]] : Integer - The bag id, where the item to use is located | ||
:;slot : Integer - The slot in the bag, where the item to use is located | |||
:;onSelf : Boolean - Optional parameter, if the item should be used on yourself (default: false). | |||
== Example == | |||
UseContainerItem(1, 16, 1) | |||
====Result==== | |||
:Uses the item located in the 16th slot in your 1st bag (not backpack) on yourself. | |||
:For instance if it's a bandage, this will bandage yourself. | |||
:Slots are listed from left to right, top to bottom. | ==Details== | ||
:Slots in the bags are listed from left to right, top to bottom. | |||
:A 16 slot bag have the following slot numbers: | |||
::{| ! style="width: 150px; text-align: right; border: 1px solid white" | |||
|- | |||
| 1 || 2 || 3 || 4 | |||
|- | |||
| 5 || 6 || 7 || 8 | |||
|- | |||
| 9 || 10 || 11 || 12 | |||
|- | |||
| 13 || 14 || 15 || 16 | |||
|} | |||
- | :An 18 slot bag have the following slot numbers: | ||
::{| ! style="width: 150px; text-align: right; border: 1px solid white" | |||
|- | |||
| || || 1 || 2 | |||
|- | |||
| 3 || 4 || 5 || 6 | |||
-- | |- | ||
| 7 || 8 || 9 || 10 | |||
|- | |||
| 11 || 12 || 13 || 14 | |||
|- | |||
| 15 || 16 || 17 || 18 | |||
|} |
Revision as of 21:45, 28 September 2006
Use an item from a container. If Merchant window is open, this will sell the item.
UseContainerItem(bagId, slot [, onSelf])
Parameters
Arguments
- (bagId, slot [, onSelf])
- bagId
- Integer - The bag id, where the item to use is located
- slot
- Integer - The slot in the bag, where the item to use is located
- onSelf
- Boolean - Optional parameter, if the item should be used on yourself (default: false).
Example
UseContainerItem(1, 16, 1)
Result
- Uses the item located in the 16th slot in your 1st bag (not backpack) on yourself.
- For instance if it's a bandage, this will bandage yourself.
Details
- Slots in the bags are listed from left to right, top to bottom.
- A 16 slot bag have the following slot numbers:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
- An 18 slot bag have the following slot numbers:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18