Picks up only part of a stack of items from one of the player's bags or other containers. Has no effect if the given amount is greater than the number of items stacked in the slot.


See also Container functions, Cursor functions.

Signature:

SplitContainerItem(container, slot, amount)

Arguments:

  • container - Index of one of the player's bags or other containers (number, containerID)
  • slot - Index of an item slot within the container (number, containerSlotID)
  • amount - Number of items from the stack to pick up (number)