- ARMOR_PENDANT / APPLY_ENCHANT_* 123-128 / c_Equipment_Pendant (server WEAR_PENDANT 27) constants - mt_pendant: equipment slot under the earring, drop targets for 71302/53996 (reroll) and 71301/53997 (add, max 5), MTPENDANT messages; enchant apply texts in mt_applies - switchbot ignores talismans and talisman rerolls - make_items keeps the six +0..+200 chains (1206 items) and the four attribute items - tools/server/pendant: refine sets 440-499 (AVA2 rows) + install.sh Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
641 B
Bash
Executable File
13 lines
641 B
Bash
Executable File
#!/bin/sh
|
|
# Installs the talisman refine sets (README.md) into player.refine_proto; the db reads them at boot, so restart the db.
|
|
set -eu
|
|
HERE=$(cd "$(dirname "$0")" && pwd)
|
|
MYSQL=${MYSQL:-mysql -umetin2 -ppassword}
|
|
BACKUP=/root/backup-pendant/$(date +%Y%m%d-%H%M%S)
|
|
mkdir -p "$BACKUP"
|
|
$MYSQL player -e 'SELECT * FROM refine_proto WHERE id BETWEEN 440 AND 499' > "$BACKUP/refine_440_499.tsv"
|
|
echo "backup: $BACKUP"
|
|
$MYSQL player < "$HERE/refine.sql"
|
|
[ "$($MYSQL -N player -e 'SELECT COUNT(*) FROM refine_proto WHERE id BETWEEN 440 AND 499 AND cost=50000')" -eq 60 ] || { echo "refine rows missing" >&2; exit 1; }
|
|
echo "done; restart the db"
|