38 Commits
Author SHA1 Message Date
shenandshen abda2c1cda feat: serve native AVA2 battle pass, drop finder and event calendar 2026-10-18 23:35:29 -07:00
shenandshen 2016f20d58 Synchronize owner attribute locks for links and active switchbot 2026-10-18 22:08:48 -07:00
shenandshen ec60c38492 docs: record isolated attr lock view validation and cleanup 2026-10-18 21:37:48 -07:00
shenandshen bce34954d9 feat: add AVA2 native channel warp with peer map routes 2026-10-18 17:05:17 -07:00
shenandshen 71c299c98f Record verified switchbot handover between isolated cores 2026-10-18 16:43:51 -07:00
shenandshen 2048808c75 Add safe AVA2 lock material selection and tooltip query 2026-10-18 16:28:16 -07:00
shenandshen ff6163a685 Add AVA2 boss scheduler, dungeon tracking and ticket shop 2026-10-18 10:41:51 -07:00
shenandshen 0b9c2bb6b0 feat: port AVA2 batch chests and CG235 pickup to test server 2026-10-18 04:04:38 -07:00
shenandshen ac4a05a0c3 fix: align spirit stone insertion and stack consumption with AVA2 2026-10-17 23:32:59 -07:00
shenleiandClaude Opus 5.5 e097b927de Skill power: bounds-check skill group/level (party crash), level 120 test results
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>
2026-10-17 12:17:59 +09:00
shenleiandClaude Opus 5.5 c9268424ab Level 120: QUEST_INFO size fix, boss melee range 800 (hydra)
- 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>
2026-10-17 11:09:32 +09:00
shenleiandClaude Opus 5.5 3c0141d639 Level 120 (L1-L5): exp curve, AVA2 maps/drops, AVA2 dungeon quest support
- 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>
2026-10-17 08:13:32 +09:00
shenleiandClaude Opus 5.5 3222614dd2 Switchbot docs: record live test results on channel5 and sbtest
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 23:03:07 +09:00
shenleiandClaude Opus 5.5 972c200cd0 Switchbot gate: find the mt<date> mark anywhere in the client timestamp
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>
2026-10-16 20:35:08 +09:00
shenleiandClaude Opus 5.5 a28393b16b Port the AVA2 switchbot (自动洗练) 1:1
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>
2026-10-16 20:26:06 +09:00
shenleiandClaude Opus 5.5 e313d9ea85 AVA2 unlock P8: new rings (ITEM_NEW_RINGS, WEAR_RINGS_1/2)
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>
2026-10-16 14:40:26 +09:00
shenleiandClaude Opus 5.5 f09ffd8a35 AVA2 unlock P7: talismans (ARMOR_PENDANT / WEAR_PENDANT, element enchants)
- 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>
2026-10-16 14:28:35 +09:00
shenleiandClaude Opus 5.5 6199b2cbff AVA2 unlock P6: costume enchants (USE_CHANGE_ATTRIBUTE 54001-54267)
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>
2026-10-16 14:12:30 +09:00
shenleiandClaude Opus 5.5 fb066e7046 AVA2 unlock P5: mount costume and mount skin
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>
2026-10-16 14:00:24 +09:00
shenleiandClaude Opus 5.5 c30258ef5e AVA2 unlock P4: sash (COSTUME_SASH, WEAR 24, PART_SASH, CG 211/GC 215, pc.open_sash)
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>
2026-10-16 13:44:49 +09:00
shenleiandClaude Opus 5.5 14c4491469 AVA2 unlock P3: document dragon armor
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 11:13:41 +09:00
shenleiandClaude Opus 5.5 5ad07886ea AVA2 unlock P1/P2: stone and Boss bonus apply types
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>
2026-10-16 11:05:16 +09:00
shenleiandClaude Opus 5.5 38b62cfdbd Port AVA2 drop tables and drop code
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>
2026-10-16 10:31:07 +09:00
shenleiandClaude Opus 5.5 cd395c73b7 Battle pass: add 2027 seasons (202701-202712)
Same 8 missions and final reward as 202612, monthly Berlin starts through 2028-01-01.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 09:39:52 +09:00
shenleiandClaude Opus 5.5 7f4e8b3f76 Add the battle pass (port of AVA2 ENABLE_BATTLE_PASS)
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>
2026-10-16 09:11:36 +09:00
shenleiandClaude Opus 5.5 1bdaae8807 Record the VIP card production deploy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 03:48:38 +09:00
shenleiandClaude Opus 5.5 69e335ba9c Add VIP cards extending the seven premium services
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>
2026-10-16 02:13:17 +09:00
shenleiandClaude Opus 5.5 06b96c62d1 Record the batch chest production deploy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:47:49 +09:00
shenleiandClaude Opus 5.5 bc32475742 Record the batch chest channel5 live test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:31:03 +09:00
shenleiandClaude Opus 5.5 4b4f32ed58 Add batch gift box opening (mt_chest)
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>
2026-10-15 23:24:11 +09:00
shenleiandClaude Opus 5.5 bcd318791e Record the attribute lock production deploy
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:11:29 +09:00
shenleiandClaude Opus 5.5 dc7159338e Add attribute lock (AVA2 ENABLE_LOCK_ATTR port)
Up to two normal attribute slots (addon pair = one group) keep their
type and value through CItem::ChangeAttribute, so scroll rerolls, the
switchbot and GM rerolls all respect it. The mask lives in the new
player.mt_item_attr_lock table (created at boot), cached per CItem and
written synchronously; CopyAttributeTo carries it to refined items.
No item struct, db cache or client packet change. Toggled with
/mt_switchbot 1 lock CELL SLOT; MTSB1 lock line follows attrs_end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 23:06:00 +09:00
shenleiandClaude Opus 5.5 400e44fae4 Add read-only world boss tracking (AVA2 uitrack port)
Each game core snapshots its timed boss regens once a second and shares
them over the original HEADER_GG_RELAY addressed to "#mt_boss", so old
cores just miss the player lookup instead of dropping the P2P link.
New /mt_features query kind "bosses" (capability bit 256, mask 511)
lists the player's channel plus the shared channel 99.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 22:36:04 +09:00
shenleiandClaude Opus 5.5 a5293945b7 Record 203 production deployment of switchbot and pickup
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 21:58:53 +09:00
shenleiandClaude Opus 5.5 3b7e158ba6 Add batch pickup command mt_pickup (AVA2 do_pickup_all)
/mt_pickup 1 MASK picks up every own or ownerless ground item within the
original pickup distance whose category matches the 8-bit mask, nearest
first, capped at 48. Each item goes through the original PickupItem, so
distance, stacking, inventory space, ItemLog GET and quest triggers are
unchanged; only the first failure INFO line is resent. 500 ms throttle,
MTPU1 done/error replies, MTF1 cap mask 127 -> 255.

Live tested on the channel-5 test core (isolated binary) with the macOS
native client.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 20:45:37 +09:00
shenleiandClaude Opus 5.5 a1c6917e1f Record live switchbot busy/no_scroll/rejected results
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 19:49:21 +09:00
shenleiandClaude Opus 5.5 afb3dfb1db Add server-authoritative switchbot (automatic attribute change) v1
/mt_switchbot 1 attrs|start|stop|status runs one bot per character that
calls the original UseItem path every 250 ms, so checks, probabilities,
ItemLog CHANGE_ATTRIBUTE and scroll use are the manual path's. Up to two
alternatives of 1-5 targets; stops on matched/limit/no_scroll/item_gone/
rejected/busy/stopped, erased on logout or warp. Per-roll INFO lines are
held back via a quiet flag on ChatPacket. MTF1 cap mask advertises 64.

Verified live on 203 with an extra channel-5 core (port 13040) running the
isolated build: limit, matched, already-matched, move during run, stop and
logout during run; 72 ItemLog rows for 72 rolls. No attribute lock yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 19:45:10 +09:00
shenandshen 1a367197f5 Add feature query protocol and scheduled event drop gates 2026-10-15 02:28:03 -07:00