random bot teleport

This commit is contained in:
Yunfan Li
2023-07-31 16:53:48 +08:00
parent dce11e8781
commit 6b7bf8ade7
4 changed files with 5 additions and 5 deletions

View File

@@ -2192,7 +2192,7 @@ void RandomPlayerbotMgr::ChangeStrategy(Player* player)
{
LOG_INFO("playerbots", "Changing strategy for bot #{} <{}> to RPG", bot, player->GetName().c_str());
LOG_INFO("playerbots", "Bot #{} <{}>: sent to inn", bot, player->GetName().c_str());
RandomTeleportForRpg(player);
RandomTeleportForLevel(player);
SetEventValue(bot, "teleport", 1, sPlayerbotAIConfig->maxRandomBotInWorldTime);
}
@@ -2212,7 +2212,7 @@ void RandomPlayerbotMgr::ChangeStrategyOnce(Player* player)
else
{
LOG_INFO("playerbots", "Bot #{} <{}>: sent to inn", bot, player->GetName().c_str());
RandomTeleportForRpg(player);
RandomTeleportForLevel(player);
}
}