mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-24 14:06:22 +00:00
miscs(log): log level
This commit is contained in:
@@ -562,7 +562,7 @@ AiPlayerbot.MinRandomBotInWorldTime = 3600
|
|||||||
AiPlayerbot.MaxRandomBotInWorldTime = 1209600
|
AiPlayerbot.MaxRandomBotInWorldTime = 1209600
|
||||||
AiPlayerbot.MinRandomBotRandomizeTime = 302400
|
AiPlayerbot.MinRandomBotRandomizeTime = 302400
|
||||||
AiPlayerbot.MaxRandomRandomizeTime = 1209600
|
AiPlayerbot.MaxRandomRandomizeTime = 1209600
|
||||||
AiPlayerbot.RandomBotsPerInterval = 500
|
AiPlayerbot.RandomBotsPerInterval = 50
|
||||||
AiPlayerbot.MinRandomBotsPriceChangeInterval = 7200
|
AiPlayerbot.MinRandomBotsPriceChangeInterval = 7200
|
||||||
AiPlayerbot.MaxRandomBotsPriceChangeInterval = 172800
|
AiPlayerbot.MaxRandomBotsPriceChangeInterval = 172800
|
||||||
AiPlayerbot.MinRandomBotChangeStrategyTime = 180
|
AiPlayerbot.MinRandomBotChangeStrategyTime = 180
|
||||||
|
|||||||
@@ -636,7 +636,7 @@ void PlayerbotFactory::InitPet()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_INFO("playerbots", "Start make spell auto cast for {} spells. {} already auto casted.", pet->m_spells.size(), pet->GetPetAutoSpellSize());
|
// LOG_INFO("playerbots", "Start make spell auto cast for {} spells. {} already auto casted.", pet->m_spells.size(), pet->GetPetAutoSpellSize());
|
||||||
for (PetSpellMap::const_iterator itr = pet->m_spells.begin(); itr != pet->m_spells.end(); ++itr)
|
for (PetSpellMap::const_iterator itr = pet->m_spells.begin(); itr != pet->m_spells.end(); ++itr)
|
||||||
{
|
{
|
||||||
// LOG_INFO("playerbots", "Start. Make spell {} for pet {} auto cast, bot: {}. state: {}", itr->first, pet->GetName(), bot->GetName(),
|
// LOG_INFO("playerbots", "Start. Make spell {} for pet {} auto cast, bot: {}. state: {}", itr->first, pet->GetName(), bot->GetName(),
|
||||||
@@ -653,13 +653,13 @@ void PlayerbotFactory::InitPet()
|
|||||||
// itr->first, pet->GetName(), bot->GetName());
|
// itr->first, pet->GetName(), bot->GetName());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
LOG_INFO("playerbots", "Make spell {} for pet {} auto cast, bot: {}. old_active: {}. old_state: {}.",
|
// LOG_INFO("playerbots", "Make spell {} for pet {} auto cast, bot: {}. old_active: {}. old_state: {}.",
|
||||||
itr->first, pet->GetName(), bot->GetName(), itr->second.active, itr->second.state);
|
// itr->first, pet->GetName(), bot->GetName(), itr->second.active, itr->second.state);
|
||||||
pet->ToggleAutocast(spellInfo, true);
|
pet->ToggleAutocast(spellInfo, true);
|
||||||
LOG_INFO("playerbots", "AFTER - Make spell {} for pet {} auto cast, bot: {}. active: {}. state: {}.",
|
// LOG_INFO("playerbots", "AFTER - Make spell {} for pet {} auto cast, bot: {}. active: {}. state: {}.",
|
||||||
itr->first, pet->GetName(), bot->GetName(), itr->second.active, itr->second.state);
|
// itr->first, pet->GetName(), bot->GetName(), itr->second.active, itr->second.state);
|
||||||
}
|
}
|
||||||
LOG_INFO("playerbots", "AFTER, {} already auto casted.", pet->GetPetAutoSpellSize());
|
// LOG_INFO("playerbots", "AFTER, {} already auto casted.", pet->GetPetAutoSpellSize());
|
||||||
pet->SavePetToDB(PET_SAVE_AS_CURRENT);
|
pet->SavePetToDB(PET_SAVE_AS_CURRENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -67,13 +67,13 @@ bool AutoReleaseSpiritAction::Execute(Event event)
|
|||||||
context->GetValue<uint32>("death count")->Set(dCount + 1);
|
context->GetValue<uint32>("death count")->Set(dCount + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_INFO("playerbots", "Bot {} {}:{} <{}> auto released", bot->GetGUID().ToString().c_str(), bot->GetTeamId() == TEAM_ALLIANCE ? "A" : "H", bot->getLevel(), bot->GetName().c_str());
|
LOG_DEBUG("playerbots", "Bot {} {}:{} <{}> auto released", bot->GetGUID().ToString().c_str(), bot->GetTeamId() == TEAM_ALLIANCE ? "A" : "H", bot->getLevel(), bot->GetName().c_str());
|
||||||
|
|
||||||
WorldPacket packet(CMSG_REPOP_REQUEST);
|
WorldPacket packet(CMSG_REPOP_REQUEST);
|
||||||
packet << uint8(0);
|
packet << uint8(0);
|
||||||
bot->GetSession()->HandleRepopRequestOpcode(packet);
|
bot->GetSession()->HandleRepopRequestOpcode(packet);
|
||||||
|
|
||||||
LOG_INFO("playerbots", "Bot {} {}:{} <{}> releases spirit", bot->GetGUID().ToString().c_str(), bot->GetTeamId() == TEAM_ALLIANCE ? "A" : "H", bot->getLevel(), bot->GetName().c_str());
|
LOG_DEBUG("playerbots", "Bot {} {}:{} <{}> releases spirit", bot->GetGUID().ToString().c_str(), bot->GetTeamId() == TEAM_ALLIANCE ? "A" : "H", bot->getLevel(), bot->GetName().c_str());
|
||||||
|
|
||||||
if (bot->InBattleground() && !botAI->HasAura(2584, bot))
|
if (bot->InBattleground() && !botAI->HasAura(2584, bot))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ bool ReviveFromCorpseAction::Execute(Event event)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_INFO("playerbots", "Bot {} {}:{} <{}> revives at body", bot->GetGUID().ToString().c_str(), bot->GetTeamId() == TEAM_ALLIANCE ? "A" : "H", bot->getLevel(), bot->GetName().c_str());
|
LOG_DEBUG("playerbots", "Bot {} {}:{} <{}> revives at body", bot->GetGUID().ToString().c_str(), bot->GetTeamId() == TEAM_ALLIANCE ? "A" : "H", bot->getLevel(), bot->GetName().c_str());
|
||||||
|
|
||||||
bot->GetMotionMaster()->Clear();
|
bot->GetMotionMaster()->Clear();
|
||||||
bot->StopMoving();
|
bot->StopMoving();
|
||||||
@@ -89,7 +89,7 @@ bool FindCorpseAction::Execute(Event event)
|
|||||||
{
|
{
|
||||||
if (dCount >= 5)
|
if (dCount >= 5)
|
||||||
{
|
{
|
||||||
LOG_INFO("playerbots", "Bot {} {}:{} <{}>: died too many times and was sent to an inn",
|
LOG_DEBUG("playerbots", "Bot {} {}:{} <{}>: died too many times and was sent to an inn",
|
||||||
bot->GetGUID().ToString().c_str(), bot->GetTeamId() == TEAM_ALLIANCE ? "A" : "H", bot->getLevel(), bot->GetName().c_str());
|
bot->GetGUID().ToString().c_str(), bot->GetTeamId() == TEAM_ALLIANCE ? "A" : "H", bot->getLevel(), bot->GetName().c_str());
|
||||||
context->GetValue<uint32>("death count")->Set(0);
|
context->GetValue<uint32>("death count")->Set(0);
|
||||||
sRandomPlayerbotMgr->RandomTeleportForRpg(bot);
|
sRandomPlayerbotMgr->RandomTeleportForRpg(bot);
|
||||||
|
|||||||
Reference in New Issue
Block a user