Add parameters to allow bot to talk in guild + fix multi guild same message + bot in group wont ask for dungeon

This commit is contained in:
Atidot3
2024-07-28 20:43:17 +02:00
parent 1128e0280a
commit cf9dca6b16
7 changed files with 14 additions and 10 deletions

View File

@@ -674,7 +674,7 @@ void ChatReplyAction::ChatReplyDo(Player* bot, uint32 type, uint32 guid1, uint32
else if (type == CHAT_MSG_GUILD)
{
if (!bot->GetGuildId())
if (!bot->GetGuildId() || !sPlayerbotAIConfig->randomBotGuildTalk)
return;
Guild* guild = sGuildMgr->GetGuildById(bot->GetGuildId());