ItemShortcut _ItemShortcut = new ItemShortcut((int)Items[i].Item, Items[i].Quantity);
_ItemShortcut.Variables.Set("Variation", Items[i].VariationID);
_Player.Group.Inventory.AddAccess(_ItemShortcut, true, true, true);
if(items[i].IsEqual(shortcut))
It looks like you're new here. If you want to get involved, click one of these buttons!
An item stack is just an ItemShortcut with a quantity higher than 1, i.e. stacking just increases the quantity of an existing item and you'd lose any other information making it different, so you can only stack items with the same variables.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!