Purchased goods is lost in transacion about 9999 units

1
Hello!

I have player report from my server about problem with tradeposts mod. He tried to purchase 80000 units of granite, the transaction was "successful" in term the money was subtracted from his inventory, but the granite was lost. As i know, the maximum stack size of granite is 9999 units, so we try do two tests:
  • purchase 10k units of granite and it was all lost
  • purchase 9999 units of granite and it was given to the player
Each type of item has it own maximum stack size, if it is possible to read this stack size for each item, it will be nice to implement some spliting. So, for the case of 80000 units of granite the spliting will give 8x9999 units + 8 units (9 stacks of granite). Otherwise, it will be nice to add some purchase limits in the server market database applicable to each transaction, where player will not be able to purchase more units that is set by GM in single transaction. The default may be set to 10, for example, and GM can change this for each item in the market manualy. I believe this can resolve the problem as well as the automatic spliting.

Dragoo
cron