mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-04 19:53:52 +00:00
Added code blocks for non-BOTS build failures
This commit is contained in:
parent
817d8ceb64
commit
a99befebfe
@ -32,6 +32,8 @@
|
||||
|
||||
*/
|
||||
|
||||
#ifdef BOTS
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <sstream>
|
||||
@ -7311,3 +7313,5 @@ bool helper_spell_list_fail(Client *bot_owner, bcst_list* spell_list, BCEnum::Sp
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif // BOTS
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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<std::pair<std::string, std::string>> 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<std::pair<std::string, std::string>> BotDatabase::GetGroupsListByOwner
|
||||
|
||||
return groups_list;
|
||||
}
|
||||
|
||||
#endif // BOTS
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user