Client Crash When Buying Stackable Items with Ctrl+Right Click

07/31/2025 14:51 jayjay232#1
Issue Description:
When using Ctrl + Right Click to purchase HP/MP Grains from the NPC, the client crashes immediately. Upon relogging, the items are delivered, but they appear as five individual stacks of 1 piece each, instead of a single stack of 5.

Example Outcome:
Buying 5 HP/MP Grains results in:

5 separate stacks with 1 Grain each

Instead of: 1 stack containing 25000 Grains

Additional Info:

The maximum stack size for HP/MP Grains is correctly set to 25,000 on both the client and database.

This issue only occurs when using Ctrl + Right Click to bulk buy. Regular right-click purchasing works without crashing or splitting stacks.

Expected Behavior:

No client crash when bulk-buying using Ctrl + Right Click

All items should be stacked properly according to their stack limit (e.g., a stack of 5, not 5 separate ones)

Looking for a Solution:
How can we fix this so the client doesn’t crash and items stack properly when bulk-buying?
07/31/2025 18:32 Judgelemental#2
Set them to a lower value, e.g. 5000 or 10000 and try again.

Post your itemdata & RefObjItem
07/31/2025 18:52 romio100#3
put the code that was tested to check and see if it is the cause or something else
08/01/2025 05:20 Worshiper#4
Quote:
Originally Posted by jayjay232 View Post
Issue Description:
When using Ctrl + Right Click to purchase HP/MP Grains from the NPC, the client crashes immediately. Upon relogging, the items are delivered, but they appear as five individual stacks of 1 piece each, instead of a single stack of 5.

Example Outcome:
Buying 5 HP/MP Grains results in:

5 separate stacks with 1 Grain each

Instead of: 1 stack containing 25000 Grains

Additional Info:

The maximum stack size for HP/MP Grains is correctly set to 25,000 on both the client and database.

This issue only occurs when using Ctrl + Right Click to bulk buy. Regular right-click purchasing works without crashing or splitting stacks.

Expected Behavior:

No client crash when bulk-buying using Ctrl + Right Click

All items should be stacked properly according to their stack limit (e.g., a stack of 5, not 5 separate ones)

Looking for a Solution:
How can we fix this so the client doesn’t crash and items stack properly when bulk-buying?
Look at _RefScrapOfPackageItem > Data set it to 0 and give it a try