боты русифицированы
This commit is contained in:
+22
-1
@@ -15,6 +15,7 @@ fi
|
||||
IMPORT_MYTHICPLUS_SQL="${ACORE_IMPORT_MYTHICPLUS_SQL:-1}"
|
||||
IMPORT_STORE_SQL="${ACORE_IMPORT_STORE_SQL:-1}"
|
||||
IMPORT_ENCOUNTER_JOURNAL_SQL="${ACORE_IMPORT_ENCOUNTER_JOURNAL_SQL:-1}"
|
||||
PLAYERBOTS_RUSSIAN_NAMES="${ACORE_PLAYERBOTS_RUSSIAN_NAMES:-1}"
|
||||
|
||||
usage() {
|
||||
cat <<EOF
|
||||
@@ -22,7 +23,8 @@ Usage: $(basename "$0")
|
||||
|
||||
Imports required custom SQL that lives outside the normal AzerothCore module paths.
|
||||
Currently this bootstraps the MythicPlus and Store Lua packages, plus module strings
|
||||
that are not covered by the normal module SQL import path in this deployment.
|
||||
and playerbot localization data not covered by the normal module SQL import path
|
||||
in this deployment.
|
||||
EOF
|
||||
}
|
||||
|
||||
@@ -257,6 +259,23 @@ import_aoe_loot_sql() {
|
||||
import_sql_file "acore_world" "$aoe_loot_sql_file"
|
||||
}
|
||||
|
||||
import_playerbots_ru_sql() {
|
||||
local names_sql_file="$ROOT_DIR/modules/mod-playerbots/data/sql/characters/updates/2026_07_30_00_playerbots_russian_names.sql"
|
||||
|
||||
if [[ "$PLAYERBOTS_RUSSIAN_NAMES" == "0" ]]; then
|
||||
log "Russian playerbot localization disabled, skipping name pools"
|
||||
return 0
|
||||
fi
|
||||
|
||||
if table_exists "acore_characters" "playerbots_names_ru" && \
|
||||
table_exists "acore_characters" "playerbots_guild_names_ru"; then
|
||||
log "Russian playerbot name pools already exist, skipping"
|
||||
return 0
|
||||
fi
|
||||
|
||||
import_sql_file "acore_characters" "$names_sql_file"
|
||||
}
|
||||
|
||||
configure_server_motd() {
|
||||
log "configuring MoonWell login message"
|
||||
mysql_exec "acore_auth" "
|
||||
@@ -326,6 +345,7 @@ fi
|
||||
require_integer_flag "ACORE_IMPORT_MYTHICPLUS_SQL" "$IMPORT_MYTHICPLUS_SQL"
|
||||
require_integer_flag "ACORE_IMPORT_STORE_SQL" "$IMPORT_STORE_SQL"
|
||||
require_integer_flag "ACORE_IMPORT_ENCOUNTER_JOURNAL_SQL" "$IMPORT_ENCOUNTER_JOURNAL_SQL"
|
||||
require_integer_flag "ACORE_PLAYERBOTS_RUSSIAN_NAMES" "$PLAYERBOTS_RUSSIAN_NAMES"
|
||||
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
@@ -336,6 +356,7 @@ fi
|
||||
|
||||
import_mythicplus_sql
|
||||
import_aoe_loot_sql
|
||||
import_playerbots_ru_sql
|
||||
import_encounter_journal_sql
|
||||
import_store_sql
|
||||
configure_server_motd
|
||||
|
||||
Reference in New Issue
Block a user