diff --git a/conf/playerbots.conf.dist b/conf/playerbots.conf.dist index 34058e93..78dacd74 100644 --- a/conf/playerbots.conf.dist +++ b/conf/playerbots.conf.dist @@ -674,7 +674,7 @@ AiPlayerbot.HunterWolfPet = 0 # # # Specify percent of active bots -# The Default is 100% but will be automatically adjusted if botActiveAloneSmartScale +# The default is 100% but will be automatically adjusted if botActiveAloneSmartScale # is enabled. Regardless, this value is only applied to inactive areas where no real players # are detected. When real players are nearby, the value is always enforced to 100% AiPlayerbot.BotActiveAlone = 100 @@ -687,7 +687,7 @@ AiPlayerbot.BotActiveAloneForceWhenIsFriend = 1 AiPlayerbot.BotActiveAloneForceWhenInGuild = 1 # SmartScale (automatic scaling of percentage of active bots based on latency) -# The Default is 1. When enabled (smart) scales the 'BotActiveAlone' value. +# The default is 1. When enabled (smart) scales the 'BotActiveAlone' value. # (The scaling will be overruled by the BotActiveAloneForceWhen...rules) # # Limitfloor - when DIFF (latency) above floor, activity scaling is applied starting with 90% @@ -765,7 +765,7 @@ AiPlayerbot.RandomBotSpellIds = "54197" # # -# Random bot Default strategies (applied after Defaults) +# Random bot default strategies (applied after defaults) AiPlayerbot.RandomBotCombatStrategies = "+dps,+dps assist,-threat" # AiPlayerbot.RandomBotNonCombatStrategies = "+grind,+loot,+rpg,+custom::say" AiPlayerbot.RandomBotNonCombatStrategies = "" @@ -792,15 +792,15 @@ AiPlayerbot.ProbTeleToBankers = 0.25 # How far randombots are teleported after death AiPlayerbot.RandomBotTeleportDistance = 100 -# Randombots will leave any zone in which their level is lower than the lowest-level creature in the zone by the below number +# How many levels below the lowest-level creature in a zone, can a bot be # This will have no effect if AiPlayerbot.EnableNewRpgStrategy is enabled -# Default: 3 (randombot will leave if they are more than 3 levels lower) -AiPlayerbot.RandomBotTeleLowerLevel = 3 +# Default: 1 (randombot will leave if they are more than 1 level lower) +AiPlayerbot.RandomBotTeleLowerLevel = 1 -# Randombots will leave any zone in which their level is higher than the highest-level creature in the zone by the below number +# How many levels above the highest-level creature in a zone, can a bot be # This will have no effect if AiPlayerbot.EnableNewRpgStrategy is enabled -# Default: 1 (randombot will leave if they are more than 1 level higher) -AiPlayerbot.RandomBotTeleHigherLevel = 1 +# Default: 3 (randombot will leave if they are more than 3 levels higher) +AiPlayerbot.RandomBotTeleHigherLevel = 3 # Bots automatically teleport to another place for leveling on levelup # Default: 1 (enabled) @@ -841,7 +841,7 @@ AiPlayerbot.RandomBotAutoJoinBG = 0 # - Ensure there are enough eligible bots to meet the specified counts. # # Arena Considerations: -# - Rated arena brackets Default to level 80-84 (bracket 14). +# - Rated arena brackets default to level 80-84 (bracket 14). # - Custom code changes are required for lower-level arena brackets to function properly. # # Battleground bracket range possibilities: diff --git a/src/PlayerbotAIConfig.cpp b/src/PlayerbotAIConfig.cpp index fbcd59c9..b034c66f 100644 --- a/src/PlayerbotAIConfig.cpp +++ b/src/PlayerbotAIConfig.cpp @@ -308,8 +308,8 @@ bool PlayerbotAIConfig::Initialize() randomBotMinLevel = sConfigMgr->GetOption("AiPlayerbot.RandomBotMinLevel", 1); randomBotMaxLevel = sConfigMgr->GetOption("AiPlayerbot.RandomBotMaxLevel", 80); randomBotLoginAtStartup = sConfigMgr->GetOption("AiPlayerbot.RandomBotLoginAtStartup", true); - randomBotTeleLowerLevel = sConfigMgr->GetOption("AiPlayerbot.RandomBotTeleLowerLevel", 3); - randomBotTeleHigherLevel = sConfigMgr->GetOption("AiPlayerbot.RandomBotTeleHigherLevel", 1); + randomBotTeleLowerLevel = sConfigMgr->GetOption("AiPlayerbot.RandomBotTeleLowerLevel", 1); + randomBotTeleHigherLevel = sConfigMgr->GetOption("AiPlayerbot.RandomBotTeleHigherLevel", 3); openGoSpell = sConfigMgr->GetOption("AiPlayerbot.OpenGoSpell", 6477); randomChangeMultiplier = sConfigMgr->GetOption("AiPlayerbot.RandomChangeMultiplier", 1.0); diff --git a/src/RandomPlayerbotMgr.cpp b/src/RandomPlayerbotMgr.cpp index a4d973dc..a899995e 100644 --- a/src/RandomPlayerbotMgr.cpp +++ b/src/RandomPlayerbotMgr.cpp @@ -1627,8 +1627,8 @@ void RandomPlayerbotMgr::PrepareTeleportCache() uint32 level = (min_level + max_level + 1) / 2; WorldLocation loc(mapId, x, y, z, 0); collected_locs++; - for (int32 l = (int32)level - (int32)sPlayerbotAIConfig->randomBotTeleHigherLevel; - l <= (int32)level + (int32)sPlayerbotAIConfig->randomBotTeleLowerLevel; l++) + for (int32 l = (int32)level - (int32)sPlayerbotAIConfig->randomBotTeleLowerLevel; + l <= (int32)level + (int32)sPlayerbotAIConfig->randomBotTeleHigherLevel; l++) { if (l < 1 || l > maxLevel) {