36 lines
2.0 KiB
Markdown
36 lines
2.0 KiB
Markdown
# Native AVA2 item shop
|
|
|
|
Active UI is `uiitemshopnew.py`. GC93 retains the native catalogue/log layouts;
|
|
GD/DG76 transports authenticated account/character requests to the DB coordinator.
|
|
Purchase requests add a durable random token and the confirmed item/total quote.
|
|
|
|
`data/ava2-itemshop/original-products.tsv` contains all 217 original offers recovered
|
|
from the supplied MySQL56 archive. `source.json` records hashes. No prices are invented.
|
|
`compatibility.json` records 55 absent prototypes, 55 ITEM_NONE placeholders and 107
|
|
actual types needing item-system verification. `verified-products.json` selects 49
|
|
existing implemented mount, mount-skin, fixed-enchant and third-hand products.
|
|
|
|
Generate migration SQL with explicit configured schema names, review it and back up
|
|
account/award data before executing it:
|
|
|
|
```
|
|
python3 tools/ava2-itemshop/migrate.py --player player_sb --account account_sb --output /tmp/itemshop.sql
|
|
python3 tools/ava2-itemshop/enable_verified.py --player player_sb --output /tmp/itemshop-enable.sql
|
|
```
|
|
|
|
The migration uses InnoDB for account, catalogue, orders and awards. Account/player SQL
|
|
configurations must target the same MySQL host and port. Purchase failures leave all
|
|
four unchanged. A transaction temporarily disables reconnect and caps lock waits at
|
|
three seconds, restoring the original connection options afterwards. Unknown COMMIT
|
|
outcomes retry the same order. Unique `(account_id,token)` orders survive process restarts.
|
|
|
|
The old prototype loader indexed vector pointers before sorting; it now sorts before building the index so lookup keys always match their templates.
|
|
|
|
Awards use the existing mall redemption path; non-stackable purchases create separate
|
|
award rows. New clients use revision mt20261020. Legacy clients cannot request GC93.
|
|
No web recharge service or wheel reward service is enabled.
|
|
|
|
Acceptance evidence: `metin2-client/docs/AVA2-ITEMSHOP.md` and
|
|
`metin2-client/audit/evidence/itemshop/`. Only sbtest was changed; production binaries,
|
|
prices, balances and catalogue activation were not deployed by this task.
|