From 9e2c2695a8540f31c78f75155a98b8401829d869 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Tue, 14 Jan 2025 23:37:40 +0800 Subject: [PATCH] Remove deletion of add event value --- conf/playerbots.conf.dist | 3 +++ src/RandomPlayerbotMgr.cpp | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/playerbots.conf.dist b/conf/playerbots.conf.dist index a9751b46d..5dff66d05 100644 --- a/conf/playerbots.conf.dist +++ b/conf/playerbots.conf.dist @@ -506,6 +506,7 @@ AiPlayerbot.RandomBotRandomPassword = 0 AiPlayerbot.RandomBotAccountPrefix = "rndbot" # Enable/Disable rotation of bots (randomly select a bot from the bots pool to go online and rotate them periodically) +# Need to reset rndbot after changing the setting (.playerbot rndbot reset) # default: 0 (disable, the online bots are fixed) AiPlayerbot.EnableRotation = 0 @@ -526,10 +527,12 @@ AiPlayerbot.PreQuests = 0 AiPlayerbot.RandomBotJoinLfg = 1 # Percentage ratio of alliance and horde +# Need to reset rndbot after changing the setting (.playerbot rndbot reset) AiPlayerbot.RandomBotAllianceRatio = 50 AiPlayerbot.RandomBotHordeRatio = 50 # Disable death knight for bots login +# Need to reset rndbot after changing the setting (.playerbot rndbot reset) AiPlayerbot.DisableDeathKnightLogin = 0 # diff --git a/src/RandomPlayerbotMgr.cpp b/src/RandomPlayerbotMgr.cpp index b4ef73abf..d8137e9ff 100644 --- a/src/RandomPlayerbotMgr.cpp +++ b/src/RandomPlayerbotMgr.cpp @@ -179,7 +179,6 @@ RandomPlayerbotMgr::RandomPlayerbotMgr() : PlayerbotHolder(), processTicks(0) BattlegroundData[queueType][bracket] = BattlegroundInfo(); } } - PlayerbotsDatabase.Execute("DELETE FROM playerbots_random_bots where event = 'add'"); BgCheckTimer = 0; LfgCheckTimer = 0; PlayersCheckTimer = 0;