It would be great to have a clean LuaAPI way to give a stackable item and have it merge into the player's existing stack instead of creating separate items.
Right now, when granting jewels (which are Overlap="50" in ItemList.xml), Inventory.Insert delivers each one as its own 1-count item rather than stacking them into a bundle, and the OVERLAPITEM_INVENTORY_INSERT create path doesn't seem to insert from Lua. So there's no straightforward way to add, say, 5 Jewels of Soul as one bundle of 5.
Idea: a helper like Inventory.AddItem(playerIdx, itemType, level, count) that respects the item's Overlap value — merging into an existing stack and spilling into a new one at the max. This would make jewel/currency rewards from custom Lua systems behave exactly like normal drops.

Recommended Comments
There are no comments to display.