mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 12:18:27 +00:00
[Bots] Cleanup and remove preprocessors. (#2757)
* [Bots] Cleanup and remove preprocessors. - Removes every `#ifdef BOTS` we have and locks bots behind `Bots:AllowBots` rule. - Bot updates are now done by default similar to regular database updates. - Modify `CMakeLists.txt`, `.drone.yml`, and `BUILD.md` to match the removal of `EQEMU_ENABLE_BOTS`. * Cleanup - Add SQL for enabling bots for servers with bots. - Add message that tells players/operators bots are disabled. * Suggested changes. * Bot injection stuff * Change SQL to bot SQL. * Tweaks * Remove `is_bot` * Update version.h * Update main.cpp * Update database.cpp * Fix name availability crash * Remove bots from update script Co-authored-by: Akkadius <akkadius1@gmail.com>
This commit is contained in:
+1
-7
@@ -45,9 +45,7 @@
|
||||
#include "zone.h"
|
||||
#include "queryserv.h"
|
||||
#include "command.h"
|
||||
#ifdef BOTS
|
||||
#include "bot_command.h"
|
||||
#endif
|
||||
#include "zonedb.h"
|
||||
#include "../common/zone_store.h"
|
||||
#include "titles.h"
|
||||
@@ -394,10 +392,9 @@ int main(int argc, char** argv) {
|
||||
|
||||
EQ::SayLinkEngine::LoadCachedSaylinks();
|
||||
|
||||
#ifdef BOTS
|
||||
LogInfo("Loading bot commands");
|
||||
int botretval = bot_command_init();
|
||||
if (botretval<0)
|
||||
if (botretval < 0)
|
||||
LogError("Bot command loading failed");
|
||||
else
|
||||
LogInfo("[{}] bot commands loaded", botretval);
|
||||
@@ -405,7 +402,6 @@ int main(int argc, char** argv) {
|
||||
LogInfo("Loading bot spell casting chances");
|
||||
if (!database.botdb.LoadBotSpellCastingChances())
|
||||
LogError("Bot spell casting chances loading failed");
|
||||
#endif
|
||||
|
||||
/**
|
||||
* NPC Scale Manager
|
||||
@@ -604,9 +600,7 @@ int main(int argc, char** argv) {
|
||||
safe_delete(task_manager);
|
||||
safe_delete(npc_scale_manager);
|
||||
command_deinit();
|
||||
#ifdef BOTS
|
||||
bot_command_deinit();
|
||||
#endif
|
||||
safe_delete(parse);
|
||||
LogInfo("Proper zone shutdown complete.");
|
||||
LogSys.CloseFileLogs();
|
||||
|
||||
Reference in New Issue
Block a user