Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

Places the item on the cursor into the specified bag slot.

PutItemInBag(slotId)

Arguments[]

slotId
number - Inventory slot id containing the bag in which you wish to put the item. Values 20 to 23 correspond to the player's bag slots, right-to-left from the first bag after the backpack.

Details[]

  • 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.

Example[]

The following put the item on the cursor (if it's not a bag) into the first bag (not including backpack) starting from the right.

PutItemInBag(20)
Advertisement