Without the singleton, channel boot segfaults in CInputDB::Boot ->
LoadSearchLanguage. Verified on the sbtest cluster.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Implement durable point drop intent journal on disk with fsync before network send
- Fix DB point settlement day by fixing CURDATE() on initial account row lock within transaction
- Implement Gaya market subsystem (port_gaya.cpp/h, 27 slots, 55 items, filesystem persistence, /gem command)
- Add POINT_GEM (248) to CHARACTER and support 39063 / 39064 right-click usage
- Fix treasure key (77921~77923) and box (77918~77920) stack decrement in char_item.cpp
- Verify Dragon Soul recharge items 100001 / 100002 and holly bean 100500 DoRefineStrength
- Add 8 verified products (144, 145, 149, 233, 234, 240, 241, 242) to verified-products.json (count: 57)
- Add comprehensive test suites for durable queue, Gaya market, key stacks, and dragon soul alchemy
Implement configurable kill rewards with account-wide daily limits, transactional deduplication, and game-to-db retries. Add the approved wide rules and tested isolation tooling.
Stage wear40 equipment and persistent extra item metadata with an explicit migration plan and client revision gate. Track all 168 remaining offers; sixteen have staged data/assets, while live acceptance and other systems remain incomplete. This commit is not a production deployment.
A player row with skill_group 50 made CParty::ComputeRolePoint index past
m_aiSkillPowerByLevelFromType and crash the core once the character was in a party.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- questpc.cpp: SendQuestInfoPakcet built the optional fields after sending the
header, so qi.size was short and the client parsed the rest as a new packet.
- battle.cpp: a non-PC victim of rank BOSS or higher allows 800 melee distance.
The ship-defence hydra 6812 sits on the water ~620 from the deck, and the old
300 (AVA2: 600) dropped every hit as VICTIM_FAR.
- docs: snow / ship / party run status.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- L1: level cap 120 with the AVA2 exp curve, 64-bit exp sums, unsigned exp
column; level-difference exp/drop floors kept as before.
- L2/L3/L5: AVA2 maps and their mob drops (data side in the client repo's
tools/server/ava2-maps).
- L4: quest functions the AVA2 snow / ship defence / Meley quests call
(port_ava2_dungeon.cpp), QUEST_ATTACK_EVENT (<vnum>.attack), Meley and
hydra HP helpers. A hit never takes a dragon statue (6230) below 1 HP so
only npc.dead_by_vnum kills it (AVA2 could leave the lair stuck).
- docs/FEATURE-LEVEL-120.md: plan and sbtest test record (Meley full run
passed: 9 floors + chest + exit warp, 837 s).
Only installed on sbtest; not deployed live.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every locale.cfg client build is LOCALE_SERVICE_EUROPE and sends
CG_CLIENT_VERSION2, and 203 compares that timestamp with atoi against
1215955205. The client now sends "1215955205 mt20261016", so the gate
looks for "mt" instead of requiring it at the start. Found on channel5.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AVA2 new_switchbot ported as port_switchbot.{h,cpp}: SWITCHBOT item window (7),
CG/GC 171 and GG 31 with AVA2 subheaders and field order, pack(1) structs pinned
by static_assert, 0.1 s roll, P2P hand-over on warp, boot ALTER of
player.item.window. Switchers come from the inventory; current checks and
ItemLog are kept. Clients sending "mt20261016" or newer as the version
timestamp get the switchbot; older clients are left alone.
The v1 /mt_switchbot chat command, its lock verb and query capability bit 64
are removed (cap mask 1023 -> 959).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts resolved by keeping both sides: AVA2 attribute lock materials
(50348/50349) and battle pass tickets from main alongside the unlock
branch's costume enchants, talismans and new rings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rings are socket accessories with AVA2's jewel per family and the
item_attr_rings pool (port_rings.cpp); the 40250 switchers / adders accept
them, the switchbot and rare attributes skip them. New ProtoReader type,
so the db binary changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ARMOR_PENDANT subtype, WEAR_PENDANT=27, APPLY_ENCHANT_ELEC..DARK (123-128)
and POINT_ENCHANT_* (242-247); battle.cpp adds the enchant % vs element mobs
- port_pendant.cpp: talisman attribute pool (AVA2 item_attr pendant column),
71302/53996 reroll and 71301/53997 add (max 5), MTPENDANT client messages
- switchbot skips talisman scrolls; tests for pendant + applies
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Enchant stones add one fixed attribute to an unequipped body / hair /
mount-skin costume (max 3, no duplicates); gear and the switchbot refuse
them. MTCATTR chat commands report the result.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
COSTUME_MOUNT=2 / COSTUME_MOUNT_SKIN=4, WEAR_COSTUME_MOUNT 25 / _SKIN 26.
port_mount.cpp summons/unsummons the horse on equip, skin overrides the
mount vnum in GetMyHorseVnum; costume subtypes no longer map onto the
armor attribute sets. db ProtoReader learns COSTUME_MOUNT_SKIN.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ports AVA2's sash system into port_sash.cpp: combine and absorb windows,
absorbed bonuses scaled by absorption, and a fifth character equip part.
The character packets grow by one WORD, so old clients break.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
APPLY_ATTBONUS_STONE 139 / APPLY_ATTBONUS_BOSS 140 (AVA2 numbering, 92-138
reserved) in the game and the db proto reader; docs/FEATURE-AVA2-UNLOCK.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
make_drops.py builds 203's mob_drop_item / common_drop_new / special_item_group
from AVA2's (unknown items removed and renumbered, AVA2 boxes replace the same
vnum except 50035). The game loads common_drop_new.txt (level-range common
drops), GetDropPct follows AVA2 (premium/glove rates, fixed precedence bug),
a mob's second drop group no longer uses an uninitialised pointer, special
groups allow 1023 entries, and the wiki lists common_drop_new rows as rule 0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Monthly seasons from share/locale/<locale>/port_battlepass.tsv, up to ten
missions (kills, boss, stone, play time, fishing, refine, level, NPC spend,
NPC sell) with per-mission and final rewards. Progress is counted in memory
and flushed additively on save; claims are idempotent via INSERT IGNORE.
Client protocol: /mt_bp 1 info|claim N|close -> MTBP1 lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Using 38001 (7 days) or 38002 (30 days) moves every account.account
*_expire column to max(now, end) + days, capped at 400 days left, with a
1 s gap per player. The db core only hands out the login-time premium
times (CLoginData), so the game reads the row back after a card and on
every enter-game and updates m_aiPremiumTimes and the 500..506 icons.
/mt_vip 1 status reports the remaining seconds. docs/FEATURE-VIP.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
interpret_command picks the first entry whose name starts with the typed
command. mt_features sat near the top, so /m ran mt_features instead of mob
and /mt instead of mto. The four mt_* entries now sit after the original
commands; test_cmd_prefix.py checks that no original abbreviation changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AVA2 ENABLE_MULTI_CHEST port: /mt_chest 1 open CELL COUNT opens up to 200
gift boxes of one vnum across bag cells through the original UseItem path,
stops at 3 free cells, skips monster/debuff groups and reports the gains
as MTCH1 lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>