mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-29 16:33:46 +00:00
feat(bot): addclass command for non-gm player
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
#include "ObjectAccessor.h"
|
#include "ObjectAccessor.h"
|
||||||
#include "ObjectMgr.h"
|
#include "ObjectMgr.h"
|
||||||
#include "PlayerbotMgr.h"
|
#include "PlayerbotMgr.h"
|
||||||
|
#include "PlayerbotSecurity.h"
|
||||||
#include "Playerbots.h"
|
#include "Playerbots.h"
|
||||||
#include "PlayerbotDbStore.h"
|
#include "PlayerbotDbStore.h"
|
||||||
#include "PlayerbotFactory.h"
|
#include "PlayerbotFactory.h"
|
||||||
@@ -422,7 +423,7 @@ void PlayerbotHolder::OnBotLogin(Player* const bot)
|
|||||||
// set delay on login
|
// set delay on login
|
||||||
botAI->SetNextCheckDelay(urand(2000, 4000));
|
botAI->SetNextCheckDelay(urand(2000, 4000));
|
||||||
|
|
||||||
botAI->TellMaster("Hello!");
|
botAI->TellMaster("Hello!", PLAYERBOT_SECURITY_TALK);
|
||||||
|
|
||||||
if (master && master->GetGroup() && !group) {
|
if (master && master->GetGroup() && !group) {
|
||||||
master->GetGroup()->AddMember(bot);
|
master->GetGroup()->AddMember(bot);
|
||||||
|
|||||||
Reference in New Issue
Block a user