TrinityCore可以设置NpcBot,让雇佣兵排副本和战场,这样可以大大提高整个游戏的可玩性。打开副本支持见:Trinity Bots战场以及游荡佣兵设置相关_wanderingbots 查看在线数量-CSDN博客
TrinityCore打开战场Npcbot的设置
NpcBot.Enable = 1
# NpcBot使能,应该是总开关
NpcBot.Ebable.BG = 1
# 打开战场允许,这样战场也能带佣兵进去了。
NpcBot.WanderingBots.Continents.Count = 100
# 开始设置了100游荡的佣兵数量,发现会大大加重服务器负担
# 准备调到60试试 ,或者20
# 这个应该跟战场人数没有关系,为了机器速度,设为0试试
NpcBot.WanderingBots.Continents.Count = 0
NpcBot.WanderingBots.BG.Enable = 1
# 打开佣兵战场开关,也就是闲置的佣兵可以进战场,这些闲置佣兵从没有被spawn的佣兵中选出。
# Bots are temporarily borrowed from non-spawned bots pool.
NpcBot.WanderingBots.BG.TargetTeamPlayersCount.AV = 30
NpcBot.WanderingBots.BG.TargetTeamPlayersCount.WS = 8
NpcBot.WanderingBots.BG.TargetTeamPlayersCount.AB = 12
NpcBot.WanderingBots.BG.TargetTeamPlayersCount.EY = 0
NpcBot.WanderingBots.BG.TargetTeamPlayersCount.SA = 0
NpcBot.WanderingBots.BG.TargetTeamPlayersCount.IC = 0
# Target BG players count per team to aim for when generating BG bots.
# 每个战场的佣兵人数,AV奥特兰特是30人,战歌8人,阿拉希12人。
# 我的理解就是默认系统会自动把双方设置为上面的人数。但是如果中间有再进入战场的(人),那么两边人数会补到相同,当然最大不会超过系统设置的最大人数。
TrinityCore打开战场后的情况变化
服务器性能方面
在游荡佣兵数量设为100的情况下,服务器能明显感觉到卡、拾取有滞后。所以最后是把它们设为0 ,服务器一下子就恢复正常了。
NpcBot.WanderingBots.Continents.Count = 100
话说野外有NpcBot还是挺好玩的,但是为了服务器的健康,后期只好设置为0:
NpcBot.WanderingBots.Continents.Count = 0
战场的情况
经过测试,三个战场可以正常排进去,可以正常的攻守战斗。
有时候战场会发生没有NpcBot进入,导致过几分钟就关闭的情况,暂时不知道原因。
感觉把游荡佣兵设为0的情况,可以缓解战场有时候没有佣兵进去的情况。个人理解游荡佣兵占用了未spawn的bot名额,去掉后会有更多的未spawn佣兵可以去战场。