Suprcode / Crystal

Legend of Mir 2 - Official Public Crystal Source
1.15k stars 690 forks source link

Goods System - Incorrectly coded #667

Open EliteMir opened 1 year ago

EliteMir commented 1 year ago

Was speaking to Far about this and the code seems incorrect.

'Max Goods Stored' if this is set to 10.. it is not 10 items..

It is 10 items... of THAT item.. of THAT item type. Meaning if you have 100 weapons.. 10 x 100 per person

It should be 10 TOTAL items combined for all.

This will cause your server to lag massively if the goods file excesses a certain size as it reloads in the process every hour.

EliteMir commented 1 year ago

@Suprcode - Are you able to correct this? We spoke about it in the past as it causes server lag when it processes every hour.

You also cannot use BuySell with large goods files as it crashes the client due to excessively large data packets.