Reset added rndbots on server restart to automatically apply configuration changes (#913)

* Refactor RandomPlayerbotMgr and delete add value on restart server

* Remove reset tips in conf file
This commit is contained in:
Yunfan Li
2025-01-26 19:06:29 +08:00
committed by GitHub
parent 05db6f67b4
commit e571694a88
6 changed files with 28 additions and 13 deletions

View File

@@ -507,7 +507,6 @@ 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
@@ -528,12 +527,10 @@ 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
#