diff --git a/conf/playerbots.conf.dist b/conf/playerbots.conf.dist index 9b159290..fb98c77c 100644 --- a/conf/playerbots.conf.dist +++ b/conf/playerbots.conf.dist @@ -588,9 +588,6 @@ AiPlayerbot.LimitTalentsExpansion = 0 # Default: 1 (enabled) AiPlayerbot.EnableRandomBotTrading = 1 -# Configure message prefixes which will be excluded in analysis in trade action to open trade window -AiPlayerbot.TradeActionExcludedPrefixes = "RPLL_H_,DBMv4,{звезда} Questie,{rt1} Questie" - # # # diff --git a/src/PlayerbotAIConfig.cpp b/src/PlayerbotAIConfig.cpp index 237b75a9..326e2f5c 100644 --- a/src/PlayerbotAIConfig.cpp +++ b/src/PlayerbotAIConfig.cpp @@ -484,8 +484,6 @@ bool PlayerbotAIConfig::Initialize() } randomBotAccountPrefix = sConfigMgr->GetOption("AiPlayerbot.RandomBotAccountPrefix", "rndbot"); - tradeActionExcludedPrefixes = sConfigMgr->GetOption("AiPlayerbot.TradeActionExcludedPrefixes", - "RPLL_H_,DBMv4,{звезда} Questie,{rt1} Questie"); randomBotAccountCount = sConfigMgr->GetOption("AiPlayerbot.RandomBotAccountCount", 0); deleteRandomBotAccounts = sConfigMgr->GetOption("AiPlayerbot.DeleteRandomBotAccounts", false); randomBotGuildCount = sConfigMgr->GetOption("AiPlayerbot.RandomBotGuildCount", 20); diff --git a/src/PlayerbotAIConfig.h b/src/PlayerbotAIConfig.h index b29c6af2..0045d69e 100644 --- a/src/PlayerbotAIConfig.h +++ b/src/PlayerbotAIConfig.h @@ -223,7 +223,6 @@ public: std::string commandPrefix, commandSeparator; std::string randomBotAccountPrefix; - std::string tradeActionExcludedPrefixes; uint32 randomBotAccountCount; bool randomBotRandomPassword; bool deleteRandomBotAccounts; diff --git a/src/strategy/actions/TradeAction.cpp b/src/strategy/actions/TradeAction.cpp index b8adb444..c1388b66 100644 --- a/src/strategy/actions/TradeAction.cpp +++ b/src/strategy/actions/TradeAction.cpp @@ -10,14 +10,13 @@ #include "ItemCountValue.h" #include "ItemVisitors.h" #include "Playerbots.h" -#include bool TradeAction::Execute(Event event) { std::string const text = event.getParam(); - std::vector excludedPrefixes; - LoadListString>(sPlayerbotAIConfig->tradeActionExcludedPrefixes, excludedPrefixes); + // Table with prefixes to be excluded from analysis + static const std::vector excludedPrefixes = {"RPLL_H_"}; // If text starts with any excluded prefix, don't process it further. for (const auto& prefix : excludedPrefixes)