server: AVA2 conqueror level (ENABLE_CONQUEROR_LEVEL)
- 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>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
794ac41a41
commit
31ebae050b
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
# Conqueror (Yohara) level install: player columns, skill_proto rows, per-map sungma_attr.txt, unlock quest.
|
||||
# sh install.sh <player db> <locale dir> e.g. sh install.sh player_sb /usr/metin2/server/sbtest/share/locale/newcibn
|
||||
# Restart db + game afterwards (skill_proto and map files are read at boot).
|
||||
set -e
|
||||
DB=${1:?player db}
|
||||
LOC=${2:?locale dir}
|
||||
HERE=$(cd "$(dirname "$0")" && pwd)
|
||||
mysql -uroot "$DB" < "$HERE/schema.sql"
|
||||
mysql -uroot "$DB" < "$HERE/skill_proto.sql"
|
||||
for d in "$HERE"/map/*; do
|
||||
m=$(basename "$d")
|
||||
[ -d "$LOC/map/$m" ] || { echo "missing map dir $LOC/map/$m" >&2; exit 1; }
|
||||
cp "$d/sungma_attr.txt" "$LOC/map/$m/sungma_attr.txt"
|
||||
done
|
||||
# Unlock quest: qc rejects functions missing from quest_functions; the quest text is GB2312 like the locale.
|
||||
Q="$LOC/quest"
|
||||
for f in quest_functions locale_list; do
|
||||
[ -z "$(tail -c 1 "$Q/$f")" ] || echo >> "$Q/$f"
|
||||
done
|
||||
for f in pc.set_conqueror_level pc.get_conqueror_level; do
|
||||
grep -qx "$f" "$Q/quest_functions" || echo "$f" >> "$Q/quest_functions"
|
||||
done
|
||||
iconv -f UTF-8 -t GB18030 "$HERE/conqueror_unlock.quest" > "$Q/conqueror_unlock.quest"
|
||||
grep -qx conqueror_unlock.quest "$Q/locale_list" || echo conqueror_unlock.quest >> "$Q/locale_list"
|
||||
(cd "$Q" && ./qc conqueror_unlock.quest)
|
||||
mysql -uroot "$DB" -e "SELECT COUNT(*) AS conqueror_cols FROM information_schema.COLUMNS WHERE TABLE_SCHEMA='$DB' AND TABLE_NAME='player' AND COLUMN_NAME IN ('conquerorlevel','conqueror_level_step','sungma_str','sungma_hp','sungma_move','sungma_inmune','conqueror_exp','conqueror_point'); SELECT dwVnum, szName, setAffectFlag FROM skill_proto WHERE dwVnum IN (133,134) OR dwVnum BETWEEN 176 AND 183;"
|
||||
Reference in New Issue
Block a user