WoW:API PutItemInBag: Difference between revisions
Jump to navigation
Jump to search
(Formatting, spelling, grammar) |
(link to PutItemInBackpack) |
||
Line 1: | Line 1: | ||
Puts the item on the cursor into the specified bag. | Puts the item on the cursor into the specified bag slot on the main bar, if it's a bag. Otherwise, attempts to place the item inside the bag in that slot. Note that to place an item in the backpack, you must use [[API_PutItemInBackpack|PutItemInBackpack]]. | ||
PutItemInBag(n) | PutItemInBag(n) | ||
Line 6: | Line 6: | ||
:(n) | :(n) | ||
:;n : Numeric - A value from 20 to 23 where 20 is the | :;n : Numeric - A value from 20 to 23 where 20 is the rightmost bag (not including backpack) and 23 is the leftmost. | ||
== Example == | == Example == | ||
: PutItemInBag(20) will put the item on the cursor into the | : PutItemInBag(20) will put the item (if it's not a bag) on the cursor into the first bag (not including backpack) starting from the right. | ||
---- | ---- | ||
__NOTOC__ | __NOTOC__ | ||
{{Template:WoW API}} | {{Template:WoW API}} |
Revision as of 14:58, 7 October 2006
Puts the item on the cursor into the specified bag slot on the main bar, if it's a bag. Otherwise, attempts to place the item inside the bag in that slot. Note that to place an item in the backpack, you must use PutItemInBackpack.
PutItemInBag(n)
Parameters
Arguments
- (n)
- n
- Numeric - A value from 20 to 23 where 20 is the rightmost bag (not including backpack) and 23 is the leftmost.
Example
- PutItemInBag(20) will put the item (if it's not a bag) on the cursor into the first bag (not including backpack) starting from the right.