mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Compare commits
1 Commits
xprate-not
...
revert-136
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a756f5840 |
@@ -588,9 +588,6 @@ AiPlayerbot.LimitTalentsExpansion = 0
|
|||||||
# Default: 1 (enabled)
|
# Default: 1 (enabled)
|
||||||
AiPlayerbot.EnableRandomBotTrading = 1
|
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"
|
|
||||||
|
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -484,8 +484,6 @@ bool PlayerbotAIConfig::Initialize()
|
|||||||
}
|
}
|
||||||
|
|
||||||
randomBotAccountPrefix = sConfigMgr->GetOption<std::string>("AiPlayerbot.RandomBotAccountPrefix", "rndbot");
|
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);
|
randomBotAccountCount = sConfigMgr->GetOption<int32>("AiPlayerbot.RandomBotAccountCount", 0);
|
||||||
deleteRandomBotAccounts = sConfigMgr->GetOption<bool>("AiPlayerbot.DeleteRandomBotAccounts", false);
|
deleteRandomBotAccounts = sConfigMgr->GetOption<bool>("AiPlayerbot.DeleteRandomBotAccounts", false);
|
||||||
randomBotGuildCount = sConfigMgr->GetOption<int32>("AiPlayerbot.RandomBotGuildCount", 20);
|
randomBotGuildCount = sConfigMgr->GetOption<int32>("AiPlayerbot.RandomBotGuildCount", 20);
|
||||||
|
|||||||
@@ -223,7 +223,6 @@ public:
|
|||||||
|
|
||||||
std::string commandPrefix, commandSeparator;
|
std::string commandPrefix, commandSeparator;
|
||||||
std::string randomBotAccountPrefix;
|
std::string randomBotAccountPrefix;
|
||||||
std::string tradeActionExcludedPrefixes;
|
|
||||||
uint32 randomBotAccountCount;
|
uint32 randomBotAccountCount;
|
||||||
bool randomBotRandomPassword;
|
bool randomBotRandomPassword;
|
||||||
bool deleteRandomBotAccounts;
|
bool deleteRandomBotAccounts;
|
||||||
|
|||||||
@@ -10,14 +10,13 @@
|
|||||||
#include "ItemCountValue.h"
|
#include "ItemCountValue.h"
|
||||||
#include "ItemVisitors.h"
|
#include "ItemVisitors.h"
|
||||||
#include "Playerbots.h"
|
#include "Playerbots.h"
|
||||||
#include <PlayerbotAIConfig.cpp>
|
|
||||||
|
|
||||||
bool TradeAction::Execute(Event event)
|
bool TradeAction::Execute(Event event)
|
||||||
{
|
{
|
||||||
std::string const text = event.getParam();
|
std::string const text = event.getParam();
|
||||||
|
|
||||||
std::vector<std::string> excludedPrefixes;
|
// Table with prefixes to be excluded from analysis
|
||||||
LoadListString<std::vector<std::string>>(sPlayerbotAIConfig->tradeActionExcludedPrefixes, excludedPrefixes);
|
static const std::vector<std::string> excludedPrefixes = {"RPLL_H_"};
|
||||||
|
|
||||||
// If text starts with any excluded prefix, don't process it further.
|
// If text starts with any excluded prefix, don't process it further.
|
||||||
for (const auto& prefix : excludedPrefixes)
|
for (const auto& prefix : excludedPrefixes)
|
||||||
|
|||||||
Reference in New Issue
Block a user