CHARACTER_POINT_INSTANT carried the inventory/equipment, dragon soul and
special storage cells (~13 KB) in every CHARACTER, mobs and NPCs included.
They now live in CHARACTER_ITEM_CELLS, allocated in Create(isPC) and freed
in Destroy(); non-PCs read a shared empty set. On channel1/game2's maps a
core drops from 522/442 MB VSZ/RSS to 177/159 MB (live 275c7e52: 341/301).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PLAYER_PER_ACCOUNT 5: player_index.pid5 in the login/empire/monarch
queries, char_change_empire sized by PLAYER_PER_ACCOUNT, slot check
relaxed; client gate mt20261029. tools/player-slots5 adds pid5.
tools/player-deleted-sync: PLAYER_DELETE copies with SELECT *, so
player_deleted must match player column for column; the conqueror
schema now adds its columns to player_deleted too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Conqueror level/exp/step/points and the four sungma stats on the player
(db load/save, simple player, actor add/update packets), POINT_CONQUEROR_*.
- Conqueror maps 129-132 give conqueror exp instead of exp; per-map sungma
requirements from map/<name>/sungma_attr.txt, sent as GC_SUNGMA_ATTR_UPDATE,
with the AVA2 damage/defence penalties when below them.
- /conqueror_stat, pc.set_conqueror_level / pc.get_conqueror_level, 9th skills
176-183 (+ Cheonun affects); DAMAGE_BLOCK is spelled (1 << 3) in char_battle.
- tools/conqueror: schema, skill_proto rows, sungma_attr maps, the
conqueror_unlock quest (lv 120 login/levelup) and install.sh.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Race 8 / JOB_WOLFMAN with claw weapons, skills 170-175 (split slash,
wind death, reef attack, wreckage, red/blue possession), bleeding affect,
ANTI_WOLFMAN item flag and the wolfman apply types. Mob bleeding maps to
poison and claw resist to dagger (USE_MOB_BLEEDING_AS_POISON /
USE_MOB_CLAW_AS_DAGGER) so mob_proto keeps its layout. No packet layout
change. Tested on sbtest channel5 (game.wolfman-20261024).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Won point (quest flag cheque.points, max 999), /won_exchange sell|buy N at
100,000,000 Yang per Won, Won in trades and private shop prices (int32
cheque[] after the CG_MYSHOP items for clients >= mt20261027). The Won
point is sent again at Entergame because the quest-load update arrives
before PHASE_GAME.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CHARACTER::IsValidItemPosition had no case for windows 8-12, so GetItem
returned NULL for every special storage cell. ClearItem never freed those
items on logout; the next login of the same character failed with
ITEM_ID_DUP and the items went missing (dangling owner pointer). The
MoveItem routing for these windows was unreachable for the same reason.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cube_open hands mt>=20261026 clients the AVA2 cuberenewal window: the
recipes of the clicked NPC from the loaded cube.txt, sent as GC 221
CLEAR/DATES/LOADING/OPEN; CG 216 MAKE_ITEM/CLOSE does the craft.
Unlike AVA2 the reward scales with successes, count is bounded to one
stack (<=200), the free cell is checked before anything is consumed,
materials are taken from inventory + special storages (never equipped,
locked, traded or shop items) and gold is int64. Older clients keep the
classic "cube open" window; the DB-transactional cube stays disabled.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>