mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Compare commits
3 Commits
92f1dbd3f1
...
0eb7cdba64
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0eb7cdba64 | ||
|
|
21de08baab | ||
|
|
20025b7dfa |
@ -760,7 +760,7 @@ AiPlayerbot.botActiveAloneSmartScaleWhenMaxLevel = 80
|
|||||||
#
|
#
|
||||||
|
|
||||||
# Quest that will be completed and rewarded for all randombots
|
# Quest that will be completed and rewarded for all randombots
|
||||||
AiPlayerbot.RandomBotQuestIds = "7848,3802,5505,6502,7761,10277,10285,11492,24499,24511,24710,24712"
|
AiPlayerbot.RandomBotQuestIds = "7848,3802,5505,6502,7761,10277,10285,11492,13188,13189,24499,24511,24710,24712"
|
||||||
|
|
||||||
# Randombots will group with nearby randombots to do shared quests
|
# Randombots will group with nearby randombots to do shared quests
|
||||||
AiPlayerbot.RandomBotGroupNearby = 0
|
AiPlayerbot.RandomBotGroupNearby = 0
|
||||||
|
|||||||
@ -167,7 +167,7 @@ bool PlayerbotAIConfig::Initialize()
|
|||||||
pvpProhibitedAreaIds);
|
pvpProhibitedAreaIds);
|
||||||
fastReactInBG = sConfigMgr->GetOption<bool>("AiPlayerbot.FastReactInBG", true);
|
fastReactInBG = sConfigMgr->GetOption<bool>("AiPlayerbot.FastReactInBG", true);
|
||||||
LoadList<std::vector<uint32>>(
|
LoadList<std::vector<uint32>>(
|
||||||
sConfigMgr->GetOption<std::string>("AiPlayerbot.RandomBotQuestIds", "7848,3802,5505,6502,7761"),
|
sConfigMgr->GetOption<std::string>("AiPlayerbot.RandomBotQuestIds", "7848,3802,5505,6502,7761,10277,10285,11492,13188,13189,24499,24511,24710,24712"),
|
||||||
randomBotQuestIds);
|
randomBotQuestIds);
|
||||||
|
|
||||||
LoadSet<std::set<uint32>>(
|
LoadSet<std::set<uint32>>(
|
||||||
|
|||||||
@ -217,15 +217,19 @@ public:
|
|||||||
if (!player->GetSession()->IsBot() || !sRandomPlayerbotMgr->IsRandomBot(player))
|
if (!player->GetSession()->IsBot() || !sRandomPlayerbotMgr->IsRandomBot(player))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// no XP multiplier, when bot has group where leader is a real player.
|
// no XP multiplier, when bot is in a group with a real player.
|
||||||
if (Group* group = player->GetGroup())
|
if (Group* group = player->GetGroup())
|
||||||
{
|
{
|
||||||
Player* leader = group->GetLeader();
|
for (GroupReference* gref = group->GetFirstMember(); gref; gref = gref->next())
|
||||||
if (leader && leader != player)
|
|
||||||
{
|
{
|
||||||
if (PlayerbotAI* leaderBotAI = GET_PLAYERBOT_AI(leader))
|
Player* member = gref->GetSource();
|
||||||
|
if (!member)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!member->GetSession()->IsBot())
|
||||||
{
|
{
|
||||||
if (leaderBotAI->HasRealPlayerMaster())
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -90,7 +90,11 @@ void GuildInviteAction::SendPacket(WorldPacket packet)
|
|||||||
bot->GetSession()->HandleGuildInviteOpcode(data);
|
bot->GetSession()->HandleGuildInviteOpcode(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GuildInviteAction::PlayerIsValid(Player* member) { return !member->GetGuildId(); }
|
bool GuildInviteAction::PlayerIsValid(Player* member)
|
||||||
|
{
|
||||||
|
return !member->GetGuildId() && (sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD) ||
|
||||||
|
(bot->GetTeamId() == member->GetTeamId()));
|
||||||
|
}
|
||||||
|
|
||||||
bool GuildPromoteAction::isUseful()
|
bool GuildPromoteAction::isUseful()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user