mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Auto teleport check; Miscs
This commit is contained in:
@@ -190,29 +190,36 @@ AiPlayerbot.SyncLevelWithPlayers = 0
|
|||||||
AiPlayerbot.FreeFood = 1
|
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)
|
# 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
|
AiPlayerbot.AutoTrainSpells = yes
|
||||||
|
|
||||||
# Bots automatically learn classquest reward spells on levelup
|
# Bots automatically learn classquest reward spells on levelup
|
||||||
|
# Only for random bots
|
||||||
# Default: 0 (disabled)
|
# Default: 0 (disabled)
|
||||||
AiPlayerbot.AutoLearnQuestSpells = 0
|
AiPlayerbot.AutoLearnQuestSpells = 0
|
||||||
|
|
||||||
# Bots automatically learn trainable spells on levelup
|
# Bots automatically learn trainable spells on levelup
|
||||||
|
# Only for random bots
|
||||||
# Default: 1 (enabled)
|
# Default: 1 (enabled)
|
||||||
AiPlayerbot.AutoLearnTrainerSpells = 1
|
AiPlayerbot.AutoLearnTrainerSpells = 1
|
||||||
|
|
||||||
# Bots automatically teleport to another place for leveling on levelup
|
# Bots automatically teleport to another place for leveling on levelup
|
||||||
|
# Only for random bots
|
||||||
# Default: 1 (enabled)
|
# Default: 1 (enabled)
|
||||||
AiPlayerbot.AutoTeleportForLevel = 1
|
AiPlayerbot.AutoTeleportForLevel = 1
|
||||||
|
|
||||||
# Bot automatically picks talent points on levelup
|
# Bot automatically picks talent points on levelup
|
||||||
|
# Only for random bots
|
||||||
# Default: 1 (enabled)
|
# Default: 1 (enabled)
|
||||||
AiPlayerbot.AutoPickTalents = 1
|
AiPlayerbot.AutoPickTalents = 1
|
||||||
|
|
||||||
# Bot automatically upgrade equipments on levelup
|
# Bot automatically upgrade equipments on levelup
|
||||||
|
# Only for random bots
|
||||||
# Default: 1 (enabled)
|
# Default: 1 (enabled)
|
||||||
AiPlayerbot.AutoUpgradeEquip = 1
|
AiPlayerbot.AutoUpgradeEquip = 1
|
||||||
|
|
||||||
# Random Bots will pick quests on their own and try to complete
|
# Random Bots will pick quests on their own and try to complete
|
||||||
|
# Only for random bots
|
||||||
# Default: 1 (enabled)
|
# Default: 1 (enabled)
|
||||||
AiPlayerbot.AutoDoQuests = 1
|
AiPlayerbot.AutoDoQuests = 1
|
||||||
|
|
||||||
@@ -437,24 +444,12 @@ PlayerbotsDatabase.SynchThreads = 1
|
|||||||
# 0 - (Disabled)
|
# 0 - (Disabled)
|
||||||
|
|
||||||
Playerbots.Updates.EnableDatabases = 1
|
Playerbots.Updates.EnableDatabases = 1
|
||||||
#
|
|
||||||
|
|
||||||
##################################################################################
|
|
||||||
# #
|
|
||||||
# Logging Stuff #
|
|
||||||
# #
|
|
||||||
##################################################################################
|
|
||||||
|
|
||||||
Appender.Playerbots=2,5,0,Playerbots.log,w
|
|
||||||
Logger.playerbots=5,Console Playerbots
|
|
||||||
|
|
||||||
|
|
||||||
##############################################
|
##############################################
|
||||||
# TalentSpec #
|
# TalentSpec #
|
||||||
##############################################
|
##############################################
|
||||||
|
|
||||||
# DefaultTalentsOrder: tab - row - col - lvl
|
|
||||||
|
|
||||||
# Warrior
|
# Warrior
|
||||||
AiPlayerbot.RandomClassSpecProbability.1.0 = 20
|
AiPlayerbot.RandomClassSpecProbability.1.0 = 20
|
||||||
AiPlayerbot.DefaultTalentsOrderLowLevel.1.0 =
|
AiPlayerbot.DefaultTalentsOrderLowLevel.1.0 =
|
||||||
@@ -576,3 +571,11 @@ AiPlayerbot.RandomClassSpecProbability.10.2 = 33
|
|||||||
AiPlayerbot.DefaultTalentsOrderLowLevel.10.2 =
|
AiPlayerbot.DefaultTalentsOrderLowLevel.10.2 =
|
||||||
AiPlayerbot.DefaultTalentsOrder.10.2 =
|
AiPlayerbot.DefaultTalentsOrder.10.2 =
|
||||||
|
|
||||||
|
##################################################################################
|
||||||
|
# #
|
||||||
|
# Logging Stuff #
|
||||||
|
# #
|
||||||
|
##################################################################################
|
||||||
|
|
||||||
|
Appender.Playerbots=2,5,0,Playerbots.log,w
|
||||||
|
Logger.playerbots=5,Console Playerbots
|
||||||
@@ -11,6 +11,9 @@ bool AutoTeleportForLevelAction::Execute(Event event) {
|
|||||||
if (!sPlayerbotAIConfig->autoTeleportForLevel || !sRandomPlayerbotMgr->IsRandomBot(bot)) {
|
if (!sPlayerbotAIConfig->autoTeleportForLevel || !sRandomPlayerbotMgr->IsRandomBot(bot)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (botAI->HasRealPlayerMaster()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
sRandomPlayerbotMgr->RandomTeleportForLevel(bot);
|
sRandomPlayerbotMgr->RandomTeleportForLevel(bot);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1055,7 +1055,8 @@ float MovementAction::MoveDelay(float distance)
|
|||||||
|
|
||||||
void MovementAction::WaitForReach(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)
|
if (delay > sPlayerbotAIConfig->maxWaitForMove)
|
||||||
delay = sPlayerbotAIConfig->maxWaitForMove;
|
delay = sPlayerbotAIConfig->maxWaitForMove;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user