Skip to content

fix(items): block trading, storing and selling the Wizard's Ring - #643

Merged
Mosch0512 merged 1 commit into
sven-n:mainfrom
Mosch0512:fix/wizards-ring-rules
Sep 26, 2026
Merged

Mosch0512 merged 1 commit into
sven-n:mainfrom
Mosch0512:fix/wizards-ring-rules

Conversation

@Mosch0512

Copy link
Copy Markdown
Collaborator

Aligns the client item data with OpenMU (MUnique/OpenMU#983, the server part of data-driven items phase 3).

OpenMU binds the Wizard's Ring (13,20) to the character (IsBoundToCharacter), so the server refuses to trade it, to move it to the vault or a personal store, and to sell it to an NPC while it has durability left. The client allowed all of that at +0, so it sent requests the server refused, and with #983 the server logs them as a client data mismatch.

Changes

  • Group13_Helper.json: the Wizards Ring gets tradable, storable, sellable and personalShopSellable set to false. repairable: false was already set. Dropping stays allowed, as on the server, where only the owner can pick it up again.
  • test_item_rules.cpp: expects it blocked for trade, vault, personal store and NPC sale at +0, +1 and +2, and droppable.
  • docs/item-data.md: notes that the ring's flags already block everything at every level.

The level exceptions for the ring in the rule code stay. They are redundant now, but still describe the level variants, which a later phase turns into items of their own.

One difference remains: the server still allows selling a ring with zero durability. The item data can't express that, so the client doesn't offer the sale.

Tests

Windows editor build (Release): test_item_database (39) and test_item_database_files (20) pass. The latter includes the check that the shipped item files match the writer's output exactly.

OpenMU binds the Wizard's Ring to the character: it can't be traded,
moved to the vault or a personal store, or sold to an NPC while it has
durability left. The client allowed all of that at +0, so the server
refused requests the client sent. The ring's data now blocks trading,
storing, selling to NPCs and selling in a personal store; dropping stays
allowed, as on the server.

The server still allows selling a ring with zero durability; the item
data can't express that, so the client doesn't offer it.
@Mosch0512
Mosch0512 merged commit 2a89249 into sven-n:main Sep 26, 2026
3 checks passed
@Mosch0512
Mosch0512 deleted the fix/wizards-ring-rules branch September 27, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant