StackItem

StackItem
bool StackItem ( int x, int y, int Window )

code contained in Inventory/script/INV_Funcs.dh

Properties:

 * x/y - integer coordinates on the array
 * Window - integer pointer to Window Array

Description:
Attempts to stack the cursor item with the chosen inventory at x/y. There are three outcomes:
 * Will return success if stacked, and clear the cursor properties.
 * Will return success if stacked with overflow, and retain the remainder on cursor.
 * Will return fail if item cannot stack.