Revert "Fixed opening trade window while using DBM or Questie addon (#1363)"

This reverts commit dfa87faf5e.
This commit is contained in:
bash
2025-06-09 00:27:17 +02:00
committed by GitHub
parent 499a80db14
commit 3a756f5840
4 changed files with 2 additions and 9 deletions

View File

@@ -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"
#
#
#

View File

@@ -484,8 +484,6 @@ bool PlayerbotAIConfig::Initialize()
}
randomBotAccountPrefix = sConfigMgr->GetOption<std::string>("AiPlayerbot.RandomBotAccountPrefix", "rndbot");
tradeActionExcludedPrefixes = sConfigMgr->GetOption<std::string>("AiPlayerbot.TradeActionExcludedPrefixes",
"RPLL_H_,DBMv4,{звезда} Questie,{rt1} Questie");
randomBotAccountCount = sConfigMgr->GetOption<int32>("AiPlayerbot.RandomBotAccountCount", 0);
deleteRandomBotAccounts = sConfigMgr->GetOption<bool>("AiPlayerbot.DeleteRandomBotAccounts", false);
randomBotGuildCount = sConfigMgr->GetOption<int32>("AiPlayerbot.RandomBotGuildCount", 20);

View File

@@ -223,7 +223,6 @@ public:
std::string commandPrefix, commandSeparator;
std::string randomBotAccountPrefix;
std::string tradeActionExcludedPrefixes;
uint32 randomBotAccountCount;
bool randomBotRandomPassword;
bool deleteRandomBotAccounts;

View File

@@ -10,14 +10,13 @@
#include "ItemCountValue.h"
#include "ItemVisitors.h"
#include "Playerbots.h"
#include <PlayerbotAIConfig.cpp>
bool TradeAction::Execute(Event event)
{
std::string const text = event.getParam();
std::vector<std::string> excludedPrefixes;
LoadListString<std::vector<std::string>>(sPlayerbotAIConfig->tradeActionExcludedPrefixes, excludedPrefixes);
// Table with prefixes to be excluded from analysis
static const std::vector<std::string> excludedPrefixes = {"RPLL_H_"};
// If text starts with any excluded prefix, don't process it further.
for (const auto& prefix : excludedPrefixes)