For years, trading in Legend of Mir has relied heavily on in-memory item transfers. While this works, it can create edge cases around disconnects, crashes, rollbacks, duplication bugs and item ownership disputes.

Today we completed a major redesign of the trading system.

Items are no longer simply moved between inventories when a trade completes. Instead, they are now placed into a dedicated SQL-backed trade custody system. The moment an item enters a trade window it is moved into trade custody and is no longer considered part of the player’s inventory.

This provides several important benefits:

  • Improved protection against item duplication.
  • Improved protection against item loss during disconnects.
  • Recovery of abandoned or stale trades.
  • Full trade audit logging.
  • Permanent ownership history for traded items.
  • Better support for future website-based item tracking.

Gold offered in trades is now escrowed separately and managed through the same transaction-based process, ensuring that both item and gold transfers complete together.

This work forms part of the wider project to move all valuable game assets into fully auditable SQL-backed systems. Mail, storage, exchange and item history systems are also being reviewed and upgraded as part of this process.

While players may not notice any immediate changes when trading, this update significantly improves the reliability and security of the game’s economy behind the scenes.

As always, thank you to everyone helping us test the server and report issues as we continue modernising the codebase.