mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Item Info
Make the messages the bots send regarding items they loot etc configurable
This commit is contained in:
@@ -141,6 +141,9 @@ AiPlayerbot.RandomBotGroupNearby = 0
|
|||||||
# Bots without a master will say their lines
|
# Bots without a master will say their lines
|
||||||
AiPlayerbot.RandomBotSayWithoutMaster = 0
|
AiPlayerbot.RandomBotSayWithoutMaster = 0
|
||||||
|
|
||||||
|
# Bots will say information about items when collecting them
|
||||||
|
AiPlayerbot.SayWhenCollectingItems = 1
|
||||||
|
|
||||||
# Set RandomBotMaxLevel bots to RandomBotMinLevel or not
|
# Set RandomBotMaxLevel bots to RandomBotMinLevel or not
|
||||||
AiPlayerbot.DowngradeMaxLevelBot = 0
|
AiPlayerbot.DowngradeMaxLevelBot = 0
|
||||||
|
|
||||||
|
|||||||
@@ -317,6 +317,7 @@ bool PlayerbotAIConfig::Initialize()
|
|||||||
syncLevelWithPlayers = sConfigMgr->GetOption<bool>("AiPlayerbot.SyncLevelWithPlayers", false);
|
syncLevelWithPlayers = sConfigMgr->GetOption<bool>("AiPlayerbot.SyncLevelWithPlayers", false);
|
||||||
freeFood = sConfigMgr->GetOption<bool>("AiPlayerbot.FreeFood", true);
|
freeFood = sConfigMgr->GetOption<bool>("AiPlayerbot.FreeFood", true);
|
||||||
randomBotSayWithoutMaster = sConfigMgr->GetOption<bool>("AiPlayerbot.RandomBotSayWithoutMaster", false);
|
randomBotSayWithoutMaster = sConfigMgr->GetOption<bool>("AiPlayerbot.RandomBotSayWithoutMaster", false);
|
||||||
|
sayWhenCollectingItems = sConfigMgr->GetOption<bool>("AiPlayerbot.SayWhenCollectingItems", true);
|
||||||
randomBotGroupNearby = sConfigMgr->GetOption<bool>("AiPlayerbot.RandomBotGroupNearby", true);
|
randomBotGroupNearby = sConfigMgr->GetOption<bool>("AiPlayerbot.RandomBotGroupNearby", true);
|
||||||
|
|
||||||
// arena
|
// arena
|
||||||
|
|||||||
@@ -201,6 +201,7 @@ class PlayerbotAIConfig
|
|||||||
bool autoLearnQuestSpells;
|
bool autoLearnQuestSpells;
|
||||||
bool autoTeleportForLevel;
|
bool autoTeleportForLevel;
|
||||||
bool randomBotSayWithoutMaster;
|
bool randomBotSayWithoutMaster;
|
||||||
|
bool sayWhenCollectingItems;
|
||||||
bool randomBotGroupNearby;
|
bool randomBotGroupNearby;
|
||||||
uint32 tweakValue; //Debugging config
|
uint32 tweakValue; //Debugging config
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,9 @@ bool QueryItemUsageAction::Execute(Event event)
|
|||||||
if (!GetMaster() && !sPlayerbotAIConfig->randomBotSayWithoutMaster)
|
if (!GetMaster() && !sPlayerbotAIConfig->randomBotSayWithoutMaster)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (!sPlayerbotAIConfig->sayWhenCollectingItems)
|
||||||
|
return false;
|
||||||
|
|
||||||
WorldPacket& data = event.getPacket();
|
WorldPacket& data = event.getPacket();
|
||||||
if (!data.empty())
|
if (!data.empty())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user