убарны ненужные логи в чат
This commit is contained in:
@@ -235,6 +235,15 @@ import_aoe_loot_sql() {
|
|||||||
import_sql_file "acore_world" "$aoe_loot_sql_file"
|
import_sql_file "acore_world" "$aoe_loot_sql_file"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configure_server_motd() {
|
||||||
|
log "configuring MoonWell login message"
|
||||||
|
mysql_exec "acore_auth" "
|
||||||
|
REPLACE INTO motd (realmid, text)
|
||||||
|
VALUES (-1, 'Добро пожаловать на сервер MoonWell! Приятной игры!');
|
||||||
|
DELETE FROM motd_localized WHERE realmid = -1;
|
||||||
|
"
|
||||||
|
}
|
||||||
|
|
||||||
import_encounter_journal_sql() {
|
import_encounter_journal_sql() {
|
||||||
local schema_file="$ROOT_DIR/modules/mod-encounter-journal/data/sql/db-world/base/01_encounter_journal_schema.sql"
|
local schema_file="$ROOT_DIR/modules/mod-encounter-journal/data/sql/db-world/base/01_encounter_journal_schema.sql"
|
||||||
local sample_file="$ROOT_DIR/modules/mod-encounter-journal/data/sql/db-world/base/02_encounter_journal_sample.sql"
|
local sample_file="$ROOT_DIR/modules/mod-encounter-journal/data/sql/db-world/base/02_encounter_journal_sample.sql"
|
||||||
@@ -307,5 +316,6 @@ import_mythicplus_sql
|
|||||||
import_aoe_loot_sql
|
import_aoe_loot_sql
|
||||||
import_encounter_journal_sql
|
import_encounter_journal_sql
|
||||||
import_store_sql
|
import_store_sql
|
||||||
|
configure_server_motd
|
||||||
|
|
||||||
log "custom SQL bootstrap completed"
|
log "custom SQL bootstrap completed"
|
||||||
|
|||||||
@@ -1,7 +1,2 @@
|
|||||||
local PLAYER_EVENT_ON_LOGIN = 3
|
-- Login greeting is managed by the native AzerothCore MOTD in
|
||||||
|
-- import-custom-sql.sh. Keep this file as a harmless Eluna loading example.
|
||||||
local function OnLogin(event, player)
|
|
||||||
player:SendBroadcastMessage("Eluna greetings you")
|
|
||||||
end
|
|
||||||
|
|
||||||
RegisterPlayerEvent(PLAYER_EVENT_ON_LOGIN, OnLogin)
|
|
||||||
|
|||||||
@@ -47,10 +47,6 @@ public:
|
|||||||
|
|
||||||
sIndividualProgression->CheckAdjustments(player);
|
sIndividualProgression->CheckAdjustments(player);
|
||||||
|
|
||||||
if (sIndividualProgression->enabled)
|
|
||||||
{
|
|
||||||
ChatHandler(player->GetSession()).SendSysMessage("|cff00ff00Individual Progression: |cffccccccenabled|r");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnPlayerSetMaxLevel(Player* player, uint32& maxPlayerLevel) override
|
void OnPlayerSetMaxLevel(Player* player, uint32& maxPlayerLevel) override
|
||||||
|
|||||||
@@ -98,27 +98,6 @@ public:
|
|||||||
PlayerbotsMgr::instance().AddPlayerbotData(player, false);
|
PlayerbotsMgr::instance().AddPlayerbotData(player, false);
|
||||||
sRandomPlayerbotMgr.OnPlayerLogin(player);
|
sRandomPlayerbotMgr.OnPlayerLogin(player);
|
||||||
|
|
||||||
// Before modifying the following messages, please make sure it does not violate the AGPLv3.0 license
|
|
||||||
// especially if you are distributing a repack or hosting a public server
|
|
||||||
// e.g. you can replace the URL with your own repository,
|
|
||||||
// but it should be publicly accessible and include all modifications you've made
|
|
||||||
if (sPlayerbotAIConfig.enabled)
|
|
||||||
{
|
|
||||||
ChatHandler(player->GetSession()).SendSysMessage(
|
|
||||||
"|cff00ff00This server runs with |cff00ccffmod-playerbots|r "
|
|
||||||
"|cffcccccchttps://github.com/mod-playerbots/mod-playerbots|r");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sPlayerbotAIConfig.enabled || sPlayerbotAIConfig.randomBotAutologin)
|
|
||||||
{
|
|
||||||
std::string roundedTime =
|
|
||||||
std::to_string(std::ceil((sPlayerbotAIConfig.maxRandomBots * 0.11 / 60) * 10) / 10.0);
|
|
||||||
roundedTime = roundedTime.substr(0, roundedTime.find('.') + 2);
|
|
||||||
|
|
||||||
ChatHandler(player->GetSession()).SendSysMessage(
|
|
||||||
"|cff00ff00Playerbots:|r bot initialization at server startup takes about '"
|
|
||||||
+ roundedTime + "' minutes.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -372,6 +372,7 @@ write_autobalance_conf() {
|
|||||||
|
|
||||||
# Managed by ./setup-modules.sh
|
# Managed by ./setup-modules.sh
|
||||||
# Solo + small-group profile for dungeons and raids.
|
# Solo + small-group profile for dungeons and raids.
|
||||||
|
AutoBalanceAnnounce.enable = 0
|
||||||
AutoBalance.MinPlayers = ${ACORE_AUTOBALANCE_MIN_PLAYERS}
|
AutoBalance.MinPlayers = ${ACORE_AUTOBALANCE_MIN_PLAYERS}
|
||||||
AutoBalance.MinPlayers.Heroic = ${ACORE_AUTOBALANCE_MIN_PLAYERS_HEROIC}
|
AutoBalance.MinPlayers.Heroic = ${ACORE_AUTOBALANCE_MIN_PLAYERS_HEROIC}
|
||||||
AutoBalance.MinPlayers.Raid = ${ACORE_AUTOBALANCE_MIN_PLAYERS_RAID}
|
AutoBalance.MinPlayers.Raid = ${ACORE_AUTOBALANCE_MIN_PLAYERS_RAID}
|
||||||
|
|||||||
Reference in New Issue
Block a user