WoW:API SplitContainerItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 23: Line 23:


:Passing a larger count than is in the requested bag and slot will pick up nothing.
:Passing a larger count than is in the requested bag and slot will pick up nothing.
::--[[User:JuiCe|JuiCe]] 16:36, 19 November 2006 (EST) - I found a bug 11/19/06 that destroyed 2 items without warning or confirmation as a result of trying to split a higher amount than the stack actually contained.

Revision as of 21:36, 19 November 2006

WoW API < SplitContainerItem

Picks up part of a stack of items from a container, placing them on the cursor.

SplitContainerItem(bagID, slot, count);


Arguments
(bagID, slot)
bagID
Integer - id of the bag the slot is located in.
slot
Integer - slot inside the bag (top left slot is 1, slot to the right of it is 2).
count
Integer - Quantity to pick up.

Returns
Nothing.

Details
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.
--JuiCe 16:36, 19 November 2006 (EST) - I found a bug 11/19/06 that destroyed 2 items without warning or confirmation as a result of trying to split a higher amount than the stack actually contained.