diff --git a/zone/bot_command.cpp b/zone/bot_command.cpp index bd155421e..89462cbc4 100644 --- a/zone/bot_command.cpp +++ b/zone/bot_command.cpp @@ -32,6 +32,8 @@ */ +#ifdef BOTS + #include #include #include @@ -7311,3 +7313,5 @@ bool helper_spell_list_fail(Client *bot_owner, bcst_list* spell_list, BCEnum::Sp return false; } + +#endif // BOTS diff --git a/zone/bot_command.h b/zone/bot_command.h index 5d4be85fd..bc8558ff1 100644 --- a/zone/bot_command.h +++ b/zone/bot_command.h @@ -20,6 +20,8 @@ #ifndef BOT_COMMAND_H #define BOT_COMMAND_H +#ifdef BOTS + class Client; class Seperator; @@ -665,3 +667,5 @@ void helper_send_usage_required_bots(Client *bot_owner, BCEnum::SpType spell_typ bool helper_spell_check_fail(STBaseEntry* local_entry); bool helper_spell_list_fail(Client *bot_owner, bcst_list* spell_list, BCEnum::SpType spell_type); #endif + +#endif // BOTS diff --git a/zone/bot_database.cpp b/zone/bot_database.cpp index c15d583ae..3e7e18c1e 100644 --- a/zone/bot_database.cpp +++ b/zone/bot_database.cpp @@ -16,6 +16,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#ifdef BOTS #include "../common/global_define.h" #include "../common/rulesys.h" @@ -719,7 +720,7 @@ std::list> BotDatabase::GetGroupsListByOwner return groups_list; std::string query = StringFormat("SELECT `group_name`, `group_leader_name` FROM `vw_bot_groups` WHERE `owner_id` = '%u'", owner_id); - auto results = database.QueryDatabase(query); + auto results = QueryDatabase(query); if (!results.Success()) { error_message = results.ErrorMessage(); return groups_list; @@ -730,3 +731,5 @@ std::list> BotDatabase::GetGroupsListByOwner return groups_list; } + +#endif // BOTS diff --git a/zone/bot_database.h b/zone/bot_database.h index e98388716..5e9d02880 100644 --- a/zone/bot_database.h +++ b/zone/bot_database.h @@ -20,6 +20,8 @@ #ifndef BOT_DATABASE_H #define BOT_DATABASE_H +#ifdef BOTS + #include "../common/dbcore.h" #include "../common/eq_packet_structs.h" @@ -85,3 +87,5 @@ public: extern BotDatabase botdb; #endif + +#endif // BOTS diff --git a/zone/heal_rotation.cpp b/zone/heal_rotation.cpp index a88cdd1ed..4e22e5188 100644 --- a/zone/heal_rotation.cpp +++ b/zone/heal_rotation.cpp @@ -16,6 +16,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#ifdef BOTS + #include "bot.h" #define SAFE_HP_RATIO_CLOTH 95.0f @@ -884,3 +886,5 @@ bool IsHealRotationTargetMobType(Mob* target_mob) return true; } + +#endif // BOTS diff --git a/zone/heal_rotation.h b/zone/heal_rotation.h index 3c3006c87..4b7426623 100644 --- a/zone/heal_rotation.h +++ b/zone/heal_rotation.h @@ -20,6 +20,8 @@ #ifndef HEAL_ROTATION_H #define HEAL_ROTATION_H +#ifdef BOTS + #include "mob.h" #define CASTING_CYCLE_MINIMUM_INTERVAL 1000 @@ -146,3 +148,5 @@ bool IsHealRotationMemberClass(uint8 class_id); bool IsHealRotationTargetMobType(Mob* target_mob); #endif + +#endif // BOTS