Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dismemberment of
storage_data
from mmo_charstatus
.
Add `storage_data` reception, parsing and sending from the map-server. Remove loading and saving of `storage_data` through char.c Re-declaration of structure storage_data using an item vector. Re-code of portions in the map-server using `storage_data`. A new approach is taken by saving the loaded storage data from sql into memory for the duration of the session, thereby removing the need of querying the database to re-load all items everytime a storage save routine is issued from the map-server. Saving of storage items is done through a new function that significantly reduces the number of queries compared to `char_memitemdata_tosql()`, and therefore run-time speed. This method could potentially reduce the number of delete queries from `MAX_STORAGE` (which could be 600) times to literally `1`.
- Loading branch information