mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 09:06:46 +00:00
Bot functionality removed
This commit is contained in:
@@ -584,11 +584,7 @@ bool Database::DeleteCharacter(char *name)
|
||||
#if DEBUG >= 5
|
||||
printf(" guild_members");
|
||||
#endif
|
||||
#ifdef BOTS
|
||||
RunQuery(query, MakeAnyLenString(&query, "DELETE FROM guild_members WHERE char_id='%d' AND GetMobTypeById(%i) = 'C'", charid), errbuf, nullptr, &affected_rows);
|
||||
#else
|
||||
RunQuery(query, MakeAnyLenString(&query, "DELETE FROM guild_members WHERE char_id='%d'", charid), errbuf, nullptr, &affected_rows);
|
||||
#endif
|
||||
if(query)
|
||||
{
|
||||
safe_delete_array(query);
|
||||
|
||||
+6
-20
@@ -938,20 +938,12 @@ bool BaseGuildManager::_RunQuery(char *&query, int len, const char *errmsg) {
|
||||
return(true);
|
||||
}
|
||||
|
||||
//factored out so I dont have to copy this crap.
|
||||
#ifdef BOTS
|
||||
#define GuildMemberBaseQuery \
|
||||
"SELECT c.id,c.name,c.class,c.level,c.timelaston,c.zoneid," \
|
||||
" g.guild_id,g.rank,g.tribute_enable,g.total_tribute,g.last_tribute," \
|
||||
" g.banker,g.public_note,g.alt" \
|
||||
" FROM vwBotCharacterMobs AS c LEFT JOIN vwGuildMembers AS g ON c.id=g.char_id AND c.mobtype = g.mobtype "
|
||||
#else
|
||||
#define GuildMemberBaseQuery \
|
||||
"SELECT c.id,c.name,c.class,c.level,c.timelaston,c.zoneid," \
|
||||
" g.guild_id,g.rank,g.tribute_enable,g.total_tribute,g.last_tribute," \
|
||||
" g.banker,g.public_note,g.alt " \
|
||||
" FROM character_ AS c LEFT JOIN guild_members AS g ON c.id=g.char_id "
|
||||
#endif
|
||||
"SELECT c.id,c.name,c.class,c.level,c.timelaston,c.zoneid," \
|
||||
" g.guild_id,g.rank,g.tribute_enable,g.total_tribute,g.last_tribute," \
|
||||
" g.banker,g.public_note,g.alt " \
|
||||
" FROM character_ AS c LEFT JOIN guild_members AS g ON c.id=g.char_id "
|
||||
|
||||
static void ProcessGuildMember(MYSQL_ROW &row, CharGuildInfo &into) {
|
||||
//fields from `characer_`
|
||||
into.char_id = atoi(row[0]);
|
||||
@@ -1066,13 +1058,7 @@ bool BaseGuildManager::GetCharInfo(uint32 char_id, CharGuildInfo &into) {
|
||||
MYSQL_ROW row;
|
||||
|
||||
//load up the rank info for each guild.
|
||||
if (!m_db->RunQuery(query, MakeAnyLenString(&query,
|
||||
#ifdef BOTS
|
||||
GuildMemberBaseQuery " WHERE c.id=%d AND c.mobtype = 'C'", char_id
|
||||
#else
|
||||
GuildMemberBaseQuery " WHERE c.id=%d", char_id
|
||||
#endif
|
||||
), errbuf, &result)) {
|
||||
if (!m_db->RunQuery(query, MakeAnyLenString(&query, GuildMemberBaseQuery " WHERE c.id=%d", char_id), errbuf, &result)) {
|
||||
_log(GUILDS__ERROR, "Error loading guild member '%s': %s", query, errbuf);
|
||||
safe_delete_array(query);
|
||||
return(false);
|
||||
|
||||
@@ -443,22 +443,6 @@ RULE_BOOL ( TaskSystem, KeepOneRecordPerCompletedTask, true)
|
||||
RULE_BOOL ( TaskSystem, EnableTaskProximity, true)
|
||||
RULE_CATEGORY_END()
|
||||
|
||||
#ifdef BOTS
|
||||
RULE_CATEGORY ( Bots )
|
||||
RULE_REAL ( Bots, BotManaRegen, 2.0 ) // Adjust mana regen for bots, 1 is fast and higher numbers slow it down 3 is about the same as players.
|
||||
RULE_BOOL ( Bots, BotFinishBuffing, false ) // Allow for buffs to complete even if the bot caster is out of mana. Only affects buffing out of combat.
|
||||
RULE_INT ( Bots, CreateBotCount, 150 ) // Number of bots that each account can create
|
||||
RULE_INT ( Bots, SpawnBotCount, 71 ) // Number of bots a character can have spawned at one time, You + 71 bots is a 12 group raid
|
||||
RULE_BOOL ( Bots, BotQuest, false ) // Optional quest method to manage bot spawn limits using the quest_globals name bot_spawn_limit, see: /bazaar/Aediles_Thrall.pl
|
||||
RULE_BOOL ( Bots, BotGroupBuffing, false ) // Bots will cast single target buffs as group buffs, default is false for single. Does not make single target buffs work for MGB.
|
||||
RULE_BOOL ( Bots, BotSpellQuest, false ) // Anita Thrall's (Anita_Thrall.pl) Bot Spell Scriber quests.
|
||||
RULE_INT ( Bots, BotAAExpansion, 8 ) // Bots get AAs through this expansion
|
||||
RULE_BOOL ( Bots, BotGroupXP, false ) // Determines whether client gets xp for bots outside their group.
|
||||
RULE_BOOL ( Bots, BotBardUseOutOfCombatSongs, true) // Determines whether bard bots use additional out of combat songs.
|
||||
RULE_BOOL ( Bots, BotLevelsWithOwner, false) // Auto-updates spawned bots as owner levels/de-levels (false is original behavior)
|
||||
RULE_CATEGORY_END()
|
||||
#endif
|
||||
|
||||
RULE_CATEGORY ( Chat )
|
||||
RULE_BOOL ( Chat, ServerWideOOC, true)
|
||||
RULE_BOOL ( Chat, ServerWideAuction, true)
|
||||
|
||||
Reference in New Issue
Block a user