Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API SplitContainerItem

Last wiki revision 2022-07-22

Places part of a stack of items from a container onto the cursor. SplitContainerItem(bagID, slot, count)

  • bagID: (bagID) - id of the bag the slot is located in.
  • slot: - slot inside the bag (top left slot is 1, slot to the right of it is 2).
  • count: - Quantity to pick up.
  • This function always puts the requested item(s) on the cursor (unlike PickupContainerItem which can pick up items, place items, or cast spells on items based on what's already on the cursor).
  • Passing a larger count than is in the requested bag and slot will pick up nothing.

Source

https://warcraft.wiki.gg/wiki/API_SplitContainerItem · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.