mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
add config for another player's character as bot
This commit is contained in:
parent
39eb6a0087
commit
429bce3080
@ -17,6 +17,9 @@ AiPlayerbot.DeleteRandomBotAccounts = 0
|
|||||||
# auto-login all player alts as bots on player login
|
# auto-login all player alts as bots on player login
|
||||||
AiPlayerbot.BotAutologin = 0
|
AiPlayerbot.BotAutologin = 0
|
||||||
|
|
||||||
|
# Allow login other players' characters as bots
|
||||||
|
AiPlayerbot.allowPlayerBots = 0
|
||||||
|
|
||||||
# Guild Task system
|
# Guild Task system
|
||||||
AiPlayerbot.EnableGuildTasks = 0
|
AiPlayerbot.EnableGuildTasks = 0
|
||||||
|
|
||||||
|
|||||||
@ -527,6 +527,9 @@ std::string const PlayerbotHolder::ProcessBotCommand(std::string const cmd, Obje
|
|||||||
if (ObjectAccessor::FindPlayer(guid))
|
if (ObjectAccessor::FindPlayer(guid))
|
||||||
return "player already logged in";
|
return "player already logged in";
|
||||||
|
|
||||||
|
if (!sPlayerbotAIConfig->allowPlayerBots && !isRandomAccount && !isMasterAccount)
|
||||||
|
return "You cannot login another player's character as bot.";
|
||||||
|
|
||||||
AddPlayerBot(guid, masterAccountId);
|
AddPlayerBot(guid, masterAccountId);
|
||||||
return "ok";
|
return "ok";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user