mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
feat(bot): addclass command for non-gm player
This commit is contained in:
parent
51490666ae
commit
d5f0553b53
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user