Files
metin2-client/tools/server/level-120/install_sbtest.sh
T
shenleiandClaude Opus 5.5 a1e7da68a4 Level 120 (L1-L5): AVA2 maps, drops, dungeons, dungeon timer UI
- tools/server/level-120: sbtest install of the 120 exp table and the
  unsigned exp column.
- tools/server/ava2-maps: the 10 AVA2 maps (pack, map data, regen, designed
  drops) for sbtest; Ava2MapsScript.inc, gr2 texture and mob_proto tests.
- tools/server/ava2-dungeons: snow / ship defence / Meley quests ported from
  AVA2 (make_quests.py + install.sh).
- mt_dungeon_timer (DungeonTimerScript.inc): AVA2 dungeon timer in place of
  the minimap (RefreshDungeonTimer) and the hydra mast HP bar (gethydrahp).
- Autohunt skips a target that is hit but takes no damage for 4 s (blocked
  Meley statues) and keeps it skipped for 60 s; FindCloseTarget now honours
  the skip list.

Meley full run passed on sbtest with the Mac client. Not deployed live.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 08:13:32 +09:00

14 lines
823 B
Bash

#!/bin/sh
# Level cap 120 on the sbtest cluster (../sbtest/README.md): unsigned exp columns in player_sb and
# MAX_LEVEL 120 in channel5's CONFIG (CONFIG.livedb stays at 105, so rollback.sh brings back 105).
# The game binary must already carry the new exp table (constants.cpp).
# Usage (on the server): sh install_sbtest.sh <dir holding exp_unsigned.sql>
set -eu
STAGE=$(cd "$1" && pwd)
C5=/usr/metin2/server/channel5/first
grep -q '^DB_PORT: 15040' $C5/CONFIG || { echo "channel5 is not on the sbtest db" >&2; exit 1; }
mysql -uroot player_sb < $STAGE/exp_unsigned.sql
mysql -uroot -N -e "select table_name,column_type from information_schema.columns where table_schema='player_sb' and column_name='exp' and table_name like 'player%'"
sed -i '' 's/^MAX_LEVEL: .*/MAX_LEVEL: 120/' $C5/CONFIG
grep '^MAX_LEVEL' $C5/CONFIG