diff --git a/conf/playerbots.conf.dist b/conf/playerbots.conf.dist index b118d816..51510ee2 100644 --- a/conf/playerbots.conf.dist +++ b/conf/playerbots.conf.dist @@ -190,29 +190,36 @@ AiPlayerbot.SyncLevelWithPlayers = 0 AiPlayerbot.FreeFood = 1 # Bot automatically trains spells when talking to trainer (yes = train all available spells as long as the bot has the money, free = auto trains with no money cost, no = only list spells) +# Only for random bots AiPlayerbot.AutoTrainSpells = yes # Bots automatically learn classquest reward spells on levelup +# Only for random bots # Default: 0 (disabled) AiPlayerbot.AutoLearnQuestSpells = 0 # Bots automatically learn trainable spells on levelup +# Only for random bots # Default: 1 (enabled) AiPlayerbot.AutoLearnTrainerSpells = 1 # Bots automatically teleport to another place for leveling on levelup +# Only for random bots # Default: 1 (enabled) AiPlayerbot.AutoTeleportForLevel = 1 # Bot automatically picks talent points on levelup +# Only for random bots # Default: 1 (enabled) AiPlayerbot.AutoPickTalents = 1 # Bot automatically upgrade equipments on levelup +# Only for random bots # Default: 1 (enabled) AiPlayerbot.AutoUpgradeEquip = 1 # Random Bots will pick quests on their own and try to complete +# Only for random bots # Default: 1 (enabled) AiPlayerbot.AutoDoQuests = 1 @@ -437,24 +444,12 @@ PlayerbotsDatabase.SynchThreads = 1 # 0 - (Disabled) Playerbots.Updates.EnableDatabases = 1 -# - -################################################################################## -# # -# Logging Stuff # -# # -################################################################################## - -Appender.Playerbots=2,5,0,Playerbots.log,w -Logger.playerbots=5,Console Playerbots ############################################## # TalentSpec # ############################################## -# DefaultTalentsOrder: tab - row - col - lvl - # Warrior AiPlayerbot.RandomClassSpecProbability.1.0 = 20 AiPlayerbot.DefaultTalentsOrderLowLevel.1.0 = @@ -576,3 +571,11 @@ AiPlayerbot.RandomClassSpecProbability.10.2 = 33 AiPlayerbot.DefaultTalentsOrderLowLevel.10.2 = AiPlayerbot.DefaultTalentsOrder.10.2 = +################################################################################## +# # +# Logging Stuff # +# # +################################################################################## + +Appender.Playerbots=2,5,0,Playerbots.log,w +Logger.playerbots=5,Console Playerbots \ No newline at end of file diff --git a/src/strategy/actions/AutoTeleportForLevelAction.cpp b/src/strategy/actions/AutoTeleportForLevelAction.cpp index 7ed7a832..1ad4e0c4 100644 --- a/src/strategy/actions/AutoTeleportForLevelAction.cpp +++ b/src/strategy/actions/AutoTeleportForLevelAction.cpp @@ -11,6 +11,9 @@ bool AutoTeleportForLevelAction::Execute(Event event) { if (!sPlayerbotAIConfig->autoTeleportForLevel || !sRandomPlayerbotMgr->IsRandomBot(bot)) { return false; } + if (botAI->HasRealPlayerMaster()) { + return false; + } sRandomPlayerbotMgr->RandomTeleportForLevel(bot); return true; } diff --git a/src/strategy/actions/MovementActions.cpp b/src/strategy/actions/MovementActions.cpp index 09c0dddb..a4f88c74 100644 --- a/src/strategy/actions/MovementActions.cpp +++ b/src/strategy/actions/MovementActions.cpp @@ -1055,7 +1055,8 @@ float MovementAction::MoveDelay(float distance) void MovementAction::WaitForReach(float distance) { - float delay = 1000.0f * MoveDelay(distance) + sPlayerbotAIConfig->reactDelay; + float delay = 1000.0f * MoveDelay(distance); + if (delay > sPlayerbotAIConfig->maxWaitForMove) delay = sPlayerbotAIConfig->maxWaitForMove;