Added code blocks for non-BOTS build failures

This commit is contained in:
Uleat 2016-03-25 12:29:31 -04:00
parent 817d8ceb64
commit a99befebfe
6 changed files with 24 additions and 1 deletions

View File

@ -32,6 +32,8 @@
*/ */
#ifdef BOTS
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <sstream> #include <sstream>
@ -7311,3 +7313,5 @@ bool helper_spell_list_fail(Client *bot_owner, bcst_list* spell_list, BCEnum::Sp
return false; return false;
} }
#endif // BOTS

View File

@ -20,6 +20,8 @@
#ifndef BOT_COMMAND_H #ifndef BOT_COMMAND_H
#define BOT_COMMAND_H #define BOT_COMMAND_H
#ifdef BOTS
class Client; class Client;
class Seperator; 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_check_fail(STBaseEntry* local_entry);
bool helper_spell_list_fail(Client *bot_owner, bcst_list* spell_list, BCEnum::SpType spell_type); bool helper_spell_list_fail(Client *bot_owner, bcst_list* spell_list, BCEnum::SpType spell_type);
#endif #endif
#endif // BOTS

View File

@ -16,6 +16,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifdef BOTS
#include "../common/global_define.h" #include "../common/global_define.h"
#include "../common/rulesys.h" #include "../common/rulesys.h"
@ -719,7 +720,7 @@ std::list<std::pair<std::string, std::string>> BotDatabase::GetGroupsListByOwner
return groups_list; return groups_list;
std::string query = StringFormat("SELECT `group_name`, `group_leader_name` FROM `vw_bot_groups` WHERE `owner_id` = '%u'", owner_id); 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()) { if (!results.Success()) {
error_message = results.ErrorMessage(); error_message = results.ErrorMessage();
return groups_list; return groups_list;
@ -730,3 +731,5 @@ std::list<std::pair<std::string, std::string>> BotDatabase::GetGroupsListByOwner
return groups_list; return groups_list;
} }
#endif // BOTS

View File

@ -20,6 +20,8 @@
#ifndef BOT_DATABASE_H #ifndef BOT_DATABASE_H
#define BOT_DATABASE_H #define BOT_DATABASE_H
#ifdef BOTS
#include "../common/dbcore.h" #include "../common/dbcore.h"
#include "../common/eq_packet_structs.h" #include "../common/eq_packet_structs.h"
@ -85,3 +87,5 @@ public:
extern BotDatabase botdb; extern BotDatabase botdb;
#endif #endif
#endif // BOTS

View File

@ -16,6 +16,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#ifdef BOTS
#include "bot.h" #include "bot.h"
#define SAFE_HP_RATIO_CLOTH 95.0f #define SAFE_HP_RATIO_CLOTH 95.0f
@ -884,3 +886,5 @@ bool IsHealRotationTargetMobType(Mob* target_mob)
return true; return true;
} }
#endif // BOTS

View File

@ -20,6 +20,8 @@
#ifndef HEAL_ROTATION_H #ifndef HEAL_ROTATION_H
#define HEAL_ROTATION_H #define HEAL_ROTATION_H
#ifdef BOTS
#include "mob.h" #include "mob.h"
#define CASTING_CYCLE_MINIMUM_INTERVAL 1000 #define CASTING_CYCLE_MINIMUM_INTERVAL 1000
@ -146,3 +148,5 @@ bool IsHealRotationMemberClass(uint8 class_id);
bool IsHealRotationTargetMobType(Mob* target_mob); bool IsHealRotationTargetMobType(Mob* target_mob);
#endif #endif
#endif // BOTS