mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
Compare commits
No commits in common. "0eb7cdba64271b4cd9f4bb7f5311e4af410433ba" and "92f1dbd3f1cd15018784dee16ab1ffedfd94e551" have entirely different histories.
0eb7cdba64
...
92f1dbd3f1
@ -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,13188,13189,24499,24511,24710,24712"
|
AiPlayerbot.RandomBotQuestIds = "7848,3802,5505,6502,7761,10277,10285,11492,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,10277,10285,11492,13188,13189,24499,24511,24710,24712"),
|
sConfigMgr->GetOption<std::string>("AiPlayerbot.RandomBotQuestIds", "7848,3802,5505,6502,7761"),
|
||||||
randomBotQuestIds);
|
randomBotQuestIds);
|
||||||
|
|
||||||
LoadSet<std::set<uint32>>(
|
LoadSet<std::set<uint32>>(
|
||||||
|
|||||||
@ -217,20 +217,16 @@ public:
|
|||||||
if (!player->GetSession()->IsBot() || !sRandomPlayerbotMgr->IsRandomBot(player))
|
if (!player->GetSession()->IsBot() || !sRandomPlayerbotMgr->IsRandomBot(player))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// no XP multiplier, when bot is in a group with a real player.
|
// no XP multiplier, when bot has group where leader is a real player.
|
||||||
if (Group* group = player->GetGroup())
|
if (Group* group = player->GetGroup())
|
||||||
{
|
{
|
||||||
for (GroupReference* gref = group->GetFirstMember(); gref; gref = gref->next())
|
Player* leader = group->GetLeader();
|
||||||
|
if (leader && leader != player)
|
||||||
{
|
{
|
||||||
Player* member = gref->GetSource();
|
if (PlayerbotAI* leaderBotAI = GET_PLAYERBOT_AI(leader))
|
||||||
if (!member)
|
|
||||||
{
|
{
|
||||||
continue;
|
if (leaderBotAI->HasRealPlayerMaster())
|
||||||
}
|
return;
|
||||||
|
|
||||||
if (!member->GetSession()->IsBot())
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -90,11 +90,7 @@ void GuildInviteAction::SendPacket(WorldPacket packet)
|
|||||||
bot->GetSession()->HandleGuildInviteOpcode(data);
|
bot->GetSession()->HandleGuildInviteOpcode(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GuildInviteAction::PlayerIsValid(Player* member)
|
bool GuildInviteAction::PlayerIsValid(Player* member) { return !member->GetGuildId(); }
|
||||||
{
|
|
||||||
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