diff --git a/src/game/World.cpp b/src/game/World.cpp index 921b6d0..e785d3f 100644 --- a/src/game/World.cpp +++ b/src/game/World.cpp @@ -67,7 +67,7 @@ #include #include #include - +#include INSTANTIATE_SINGLETON_1(World); extern void LoadGameObjectModelList(); @@ -343,7 +343,6 @@ void World::LoadConfigSettings(bool reload) return; } } - ///- Read the version of the configuration file and warn the user in case of emptiness or mismatch uint32 confVersion = sConfig.GetIntDefault("ConfVersion", 0); if (!confVersion) @@ -369,7 +368,7 @@ void World::LoadConfigSettings(bool reload) ///- Read the player limit and the Message of the day from the config file SetPlayerLimit(sConfig.GetIntDefault("PlayerLimit", DEFAULT_PLAYER_LIMIT), true); - SetMotd(sConfig.GetStringDefault("Motd", "Welcome to the everwar.cn Server.")); + SetMotd(s); ///- Read all rates from the config file setConfigPos(CONFIG_FLOAT_RATE_HEALTH, "Rate.Health", 1.0f); diff --git a/src/game/playerbot/PlayerbotMgr.cpp b/src/game/playerbot/PlayerbotMgr.cpp index ff8df8a..5c54297 100644 --- a/src/game/playerbot/PlayerbotMgr.cpp +++ b/src/game/playerbot/PlayerbotMgr.cpp @@ -1016,6 +1016,11 @@ uint32 Player::GetSpec() return spec; } +/** + * add AI player start here + * @param args + * @return + */ bool ChatHandler::HandlePlayerbotCommand(char* args) { if (!(m_session->GetSecurity() > SEC_PLAYER))