Today we completed a comprehensive audit of the NPC trading system.
The review followed the entire process from a player clicking an NPC, through the server packet handlers, script processing, goods generation, price calculations and the final item list presented to the player.
The purpose of this audit was to ensure that shop inventories, buy/sell pricing and item handling behave consistently across all NPCs. As the server continues to move towards a fully SQL-backed architecture, understanding and documenting these systems is becoming increasingly important.
During the review we mapped the full trade call chain, documented the flow of goods from NPC scripts to player packets, and identified several areas where future improvements can be made to increase reliability and maintainability.
While this work does not introduce any new gameplay features, it provides a much stronger foundation for future economic balancing, custom NPCs and advanced trading systems.
These audits may not be the most visible part of development, but they play a huge role in ensuring the server remains stable and predictable as new features are added.

