mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
Hunter wolf pet config and modify config file layout for activities
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
# LEVELS
|
# LEVELS
|
||||||
# GEAR
|
# GEAR
|
||||||
# QUESTS
|
# QUESTS
|
||||||
|
# ACTIVITIES
|
||||||
# SPELLS
|
# SPELLS
|
||||||
# STRATEGIES
|
# STRATEGIES
|
||||||
# TELEPORTS
|
# TELEPORTS
|
||||||
@@ -612,6 +613,50 @@ AiPlayerbot.EquipmentPersistenceLevel = 80
|
|||||||
# Default: 1 (enabled)
|
# Default: 1 (enabled)
|
||||||
AiPlayerbot.AutoUpgradeEquip = 1
|
AiPlayerbot.AutoUpgradeEquip = 1
|
||||||
|
|
||||||
|
# Only set wolf pets for hunters to have higher damage (0 = disabled, 1 = enabled for max-level, 2 = enabled)
|
||||||
|
# Default: 0 (disabled)
|
||||||
|
AiPlayerbot.HunterWolfPet = 0
|
||||||
|
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
####################################################################################################
|
||||||
|
|
||||||
|
|
||||||
|
####################################################################################################
|
||||||
|
# ACTIVITIES
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Specify percent of active bots
|
||||||
|
# The default is 10. With 10% of all bots going active or inactive each minute. Regardless
|
||||||
|
# This value is only applied to inactive areas where no real-players are detected, when
|
||||||
|
# real-players are nearby, friend, group, guild, bg, instances etc the value is always
|
||||||
|
# enforced to 100%
|
||||||
|
AiPlayerbot.BotActiveAlone = 100
|
||||||
|
|
||||||
|
# Force botActiveAlone when bot is ... of real player
|
||||||
|
AiPlayerbot.BotActiveAloneForceWhenInRadius = 150
|
||||||
|
AiPlayerbot.BotActiveAloneForceWhenInZone = 1
|
||||||
|
AiPlayerbot.BotActiveAloneForceWhenInMap = 0
|
||||||
|
AiPlayerbot.BotActiveAloneForceWhenIsFriend = 1
|
||||||
|
AiPlayerbot.BotActiveAloneForceWhenInGuild = 1
|
||||||
|
|
||||||
|
# SmartScale is enabled or not.
|
||||||
|
# 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%
|
||||||
|
# LimitCeiling - when DIFF (latency) above ceiling, activity is 0%;
|
||||||
|
#
|
||||||
|
# MinLevel - only apply scaling when level is above or equal to min(bot)Level
|
||||||
|
# MaxLevel - only apply scaling when level is lower or equal of max(bot)Level
|
||||||
|
#
|
||||||
|
AiPlayerbot.botActiveAloneSmartScale = 1
|
||||||
|
AiPlayerbot.botActiveAloneSmartScaleDiffLimitfloor = 50
|
||||||
|
AiPlayerbot.botActiveAloneSmartScaleDiffLimitCeiling = 200
|
||||||
|
AiPlayerbot.botActiveAloneSmartScaleWhenMinLevel = 1
|
||||||
|
AiPlayerbot.botActiveAloneSmartScaleWhenMaxLevel = 80
|
||||||
|
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
@@ -1551,36 +1596,6 @@ AiPlayerbot.RandombotsWalkingRPG = 0
|
|||||||
# Set randombots movement speed to walking only inside buildings
|
# Set randombots movement speed to walking only inside buildings
|
||||||
AiPlayerbot.RandombotsWalkingRPG.InDoors = 0
|
AiPlayerbot.RandombotsWalkingRPG.InDoors = 0
|
||||||
|
|
||||||
# Specify percent of active bots
|
|
||||||
# The default is 10. With 10% of all bots going active or inactive each minute. Regardless
|
|
||||||
# This value is only applied to inactive areas where no real-players are detected, when
|
|
||||||
# real-players are nearby, friend, group, guild, bg, instances etc the value is always
|
|
||||||
# enforced to 100%
|
|
||||||
AiPlayerbot.BotActiveAlone = 100
|
|
||||||
|
|
||||||
# Force botActiveAlone when bot is ... of real player
|
|
||||||
AiPlayerbot.BotActiveAloneForceWhenInRadius = 150
|
|
||||||
AiPlayerbot.BotActiveAloneForceWhenInZone = 1
|
|
||||||
AiPlayerbot.BotActiveAloneForceWhenInMap = 0
|
|
||||||
AiPlayerbot.BotActiveAloneForceWhenIsFriend = 1
|
|
||||||
AiPlayerbot.BotActiveAloneForceWhenInGuild = 1
|
|
||||||
|
|
||||||
# SmartScale is enabled or not.
|
|
||||||
# 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%
|
|
||||||
# LimitCeiling - when DIFF (latency) above ceiling, activity is 0%;
|
|
||||||
#
|
|
||||||
# MinLevel - only apply scaling when level is above or equal to min(bot)Level
|
|
||||||
# MaxLevel - only apply scaling when level is lower or equal of max(bot)Level
|
|
||||||
#
|
|
||||||
AiPlayerbot.botActiveAloneSmartScale = 1
|
|
||||||
AiPlayerbot.botActiveAloneSmartScaleDiffLimitfloor = 50
|
|
||||||
AiPlayerbot.botActiveAloneSmartScaleDiffLimitCeiling = 200
|
|
||||||
AiPlayerbot.botActiveAloneSmartScaleWhenMinLevel = 1
|
|
||||||
AiPlayerbot.botActiveAloneSmartScaleWhenMaxLevel = 80
|
|
||||||
|
|
||||||
# Premade spell to avoid (undetected spells)
|
# Premade spell to avoid (undetected spells)
|
||||||
# spellid-radius, ...
|
# spellid-radius, ...
|
||||||
AiPlayerbot.PremadeAvoidAoe = 62234-4
|
AiPlayerbot.PremadeAvoidAoe = 62234-4
|
||||||
|
|||||||
@@ -511,6 +511,7 @@ bool PlayerbotAIConfig::Initialize()
|
|||||||
autoTrainSpells = sConfigMgr->GetOption<std::string>("AiPlayerbot.AutoTrainSpells", "yes");
|
autoTrainSpells = sConfigMgr->GetOption<std::string>("AiPlayerbot.AutoTrainSpells", "yes");
|
||||||
autoPickTalents = sConfigMgr->GetOption<bool>("AiPlayerbot.AutoPickTalents", true);
|
autoPickTalents = sConfigMgr->GetOption<bool>("AiPlayerbot.AutoPickTalents", true);
|
||||||
autoUpgradeEquip = sConfigMgr->GetOption<bool>("AiPlayerbot.AutoUpgradeEquip", false);
|
autoUpgradeEquip = sConfigMgr->GetOption<bool>("AiPlayerbot.AutoUpgradeEquip", false);
|
||||||
|
hunterWolfPet = sConfigMgr->GetOption<int32>("AiPlayerbot.HunterWolfPet", 0);
|
||||||
autoLearnTrainerSpells = sConfigMgr->GetOption<bool>("AiPlayerbot.AutoLearnTrainerSpells", true);
|
autoLearnTrainerSpells = sConfigMgr->GetOption<bool>("AiPlayerbot.AutoLearnTrainerSpells", true);
|
||||||
autoLearnQuestSpells = sConfigMgr->GetOption<bool>("AiPlayerbot.AutoLearnQuestSpells", false);
|
autoLearnQuestSpells = sConfigMgr->GetOption<bool>("AiPlayerbot.AutoLearnQuestSpells", false);
|
||||||
autoTeleportForLevel = sConfigMgr->GetOption<bool>("AiPlayerbot.AutoTeleportForLevel", false);
|
autoTeleportForLevel = sConfigMgr->GetOption<bool>("AiPlayerbot.AutoTeleportForLevel", false);
|
||||||
|
|||||||
@@ -289,6 +289,7 @@ public:
|
|||||||
std::string autoTrainSpells;
|
std::string autoTrainSpells;
|
||||||
bool autoPickTalents;
|
bool autoPickTalents;
|
||||||
bool autoUpgradeEquip;
|
bool autoUpgradeEquip;
|
||||||
|
int32 hunterWolfPet;
|
||||||
bool autoLearnTrainerSpells;
|
bool autoLearnTrainerSpells;
|
||||||
bool autoDoQuests;
|
bool autoDoQuests;
|
||||||
bool enableNewRpgStrategy;
|
bool enableNewRpgStrategy;
|
||||||
|
|||||||
@@ -36,6 +36,7 @@
|
|||||||
#include "SharedDefines.h"
|
#include "SharedDefines.h"
|
||||||
#include "SpellAuraDefines.h"
|
#include "SpellAuraDefines.h"
|
||||||
#include "StatsWeightCalculator.h"
|
#include "StatsWeightCalculator.h"
|
||||||
|
#include "World.h"
|
||||||
|
|
||||||
#define PLAYER_SKILL_INDEX(x) (PLAYER_SKILL_INFO_1_1 + ((x)*3))
|
#define PLAYER_SKILL_INDEX(x) (PLAYER_SKILL_INFO_1_1 + ((x)*3))
|
||||||
|
|
||||||
@@ -786,6 +787,13 @@ void PlayerbotFactory::InitPet()
|
|||||||
if (itr->second.minlevel > bot->GetLevel())
|
if (itr->second.minlevel > bot->GetLevel())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
bool onlyWolf = sPlayerbotAIConfig->hunterWolfPet == 2 ||
|
||||||
|
(sPlayerbotAIConfig->hunterWolfPet == 1 &&
|
||||||
|
bot->GetLevel() >= sWorld->getIntConfig(CONFIG_MAX_PLAYER_LEVEL));
|
||||||
|
// Wolf only (for higher dps)
|
||||||
|
if (onlyWolf && itr->second.family != CREATURE_FAMILY_WOLF)
|
||||||
|
continue;
|
||||||
|
|
||||||
ids.push_back(itr->first);
|
ids.push_back(itr->first);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user