боты, русификация, подключение ИИ
This commit is contained in:
@@ -115,7 +115,7 @@ public:
|
||||
{
|
||||
if (!args || !*args)
|
||||
{
|
||||
handler->PSendSysMessage("Usage: .playerbots account setKey <securityKey>");
|
||||
handler->PSendSysMessage("Использование: .playerbots account setKey <ключ безопасности>");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
handler->PSendSysMessage("PlayerbotMgr instance not found.");
|
||||
handler->PSendSysMessage("Экземпляр PlayerbotMgr не найден.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -145,7 +145,7 @@ public:
|
||||
|
||||
if (!accountName || !key)
|
||||
{
|
||||
handler->PSendSysMessage("Usage: .playerbots account link <accountName> <securityKey>");
|
||||
handler->PSendSysMessage("Использование: .playerbots account link <имя учётной записи> <ключ безопасности>");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
handler->PSendSysMessage("PlayerbotMgr instance not found.");
|
||||
handler->PSendSysMessage("Экземпляр PlayerbotMgr не найден.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -176,7 +176,7 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
handler->PSendSysMessage("PlayerbotMgr instance not found.");
|
||||
handler->PSendSysMessage("Экземпляр PlayerbotMgr не найден.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -189,7 +189,7 @@ public:
|
||||
char* accountName = strtok((char*)args, " ");
|
||||
if (!accountName)
|
||||
{
|
||||
handler->PSendSysMessage("Usage: .playerbots account unlink <accountName>");
|
||||
handler->PSendSysMessage("Использование: .playerbots account unlink <имя учётной записи>");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
handler->PSendSysMessage("PlayerbotMgr instance not found.");
|
||||
handler->PSendSysMessage("Экземпляр PlayerbotMgr не найден.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -235,6 +235,13 @@ public:
|
||||
|
||||
bool OnPlayerCanUseChat(Player* player, uint32 type, uint32 /*lang*/, std::string& msg, Channel* channel) override
|
||||
{
|
||||
// mod-playerbots-ai owns public-channel messages while enabled. Running
|
||||
// the legacy parser too creates an unrelated RandomBotTalk response for
|
||||
// the same natural-language message. Whisper, party, raid, and guild
|
||||
// command handling use separate hooks and remain unchanged.
|
||||
if (sConfigMgr->GetOption<bool>("PlayerbotsAI.Enabled", false))
|
||||
return true;
|
||||
|
||||
PlayerbotMgr* const playerbotMgr = PlayerbotsMgr::instance().GetPlayerbotMgr(player);
|
||||
|
||||
if (playerbotMgr != nullptr && channel->GetFlags() & 0x18)
|
||||
|
||||
Reference in New Issue
Block a user