WoW:API PutItemInBag: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API PutItemInBag to API PutItemInBag without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
this command take for arguments 20 to 23 which are bags from right to left after your backpack  
{{wowapi}}
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]].


exemple: PutItemInBag(20) will put your cursor item into the secound bag starting on your right
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.


----
 
{{WoW API}}
== 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.

Latest revision as of 04:47, 15 August 2023

WoW API < PutItemInBag

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[edit]

Arguments[edit]

(n)
n
Numeric - A value from 20 to 23 where 20 is the rightmost bag (not including backpack) and 23 is the leftmost.


Example[edit]

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.