[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:
Alex King
2023-01-20 13:35:33 -05:00
committed by GitHub
parent 1f0b2a8991
commit 3335cacac1
91 changed files with 263 additions and 1150 deletions
-10
View File
@@ -9,9 +9,7 @@ struct Lua_HateList;
class Lua_Item;
class Lua_ItemInst;
class Lua_StatBonuses;
#ifdef BOTS
class Lua_Bot;
#endif
class Lua_NPC;
class Lua_Client;
@@ -213,10 +211,8 @@ public:
uint16 GetOwnerID();
Lua_Mob GetUltimateOwner();
Lua_HateList GetHateList();
#ifdef BOTS
Lua_HateList GetHateListBots();
Lua_HateList GetHateListBots(uint32 distance);
#endif
Lua_HateList GetHateListClients();
Lua_HateList GetHateListClients(uint32 distance);
Lua_HateList GetHateListNPCs();
@@ -227,9 +223,7 @@ public:
Lua_Mob GetHateTop();
Lua_Mob GetHateDamageTop(Lua_Mob other);
Lua_Mob GetHateRandom();
#ifdef BOTS
Lua_Bot GetHateRandomBot();
#endif
Lua_Client GetHateRandomClient();
Lua_NPC GetHateRandomNPC();
Lua_Mob GetHateClosest();
@@ -488,12 +482,10 @@ public:
void DamageArea(int64 damage, uint32 distance);
void DamageAreaPercentage(int64 damage);
void DamageAreaPercentage(int64 damage, uint32 distance);
#ifdef BOTS
void DamageAreaBots(int64 damage);
void DamageAreaBots(int64 damage, uint32 distance);
void DamageAreaBotsPercentage(int64 damage);
void DamageAreaBotsPercentage(int64 damage, uint32 distance);
#endif
void DamageAreaClients(int64 damage);
void DamageAreaClients(int64 damage, uint32 distance);
void DamageAreaClientsPercentage(int64 damage);
@@ -506,12 +498,10 @@ public:
void DamageHateList(int64 damage, uint32 distance);
void DamageHateListPercentage(int64 damage);
void DamageHateListPercentage(int64 damage, uint32 distance);
#ifdef BOTS
void DamageHateListBots(int64 damage);
void DamageHateListBots(int64 damage, uint32 distance);
void DamageHateListBotsPercentage(int64 damage);
void DamageHateListBotsPercentage(int64 damage, uint32 distance);
#endif
void DamageHateListClients(int64 damage);
void DamageHateListClients(int64 damage, uint32 distance);
void DamageHateListClientsPercentage(int64 damage);