mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-26 23:57:17 +00:00
Bot databse change to not use view
This commit is contained in:
@@ -2634,18 +2634,17 @@ bool BotDatabase::LoadGroupedBotsByGroupID(const uint32 owner_id, const uint32 g
|
|||||||
return false;
|
return false;
|
||||||
//modified query for usecase of a BOTID sharing a CHARACTERID.
|
//modified query for usecase of a BOTID sharing a CHARACTERID.
|
||||||
//in this usecase, when the BOTID=CHARACTERID of BOT OWNER, this BOTID would be added to the GROUP
|
//in this usecase, when the BOTID=CHARACTERID of BOT OWNER, this BOTID would be added to the GROUP
|
||||||
query = StringFormat(
|
/*query = StringFormat(
|
||||||
"SELECT `mob_id` FROM `vw_groups` "
|
"SELECT `mob_id` FROM `vw_groups` "
|
||||||
"WHERE `group_id` = '%u' "
|
"WHERE `group_id` = '%u' "
|
||||||
"AND `mob_type`='B' "
|
"AND `mob_type`='B' "
|
||||||
"AND `mob_id` IN (SELECT `bot_id` FROM `bot_data` WHERE `owner_id` = '%u');"
|
"AND `mob_id` IN (SELECT `bot_id` FROM `bot_data` WHERE `owner_id` = '%u');"
|
||||||
, group_id, owner_id);
|
, group_id, owner_id);*/
|
||||||
/*query = StringFormat(
|
query = StringFormat(
|
||||||
"SELECT `charid` FROM `group_id` WHERE `groupid` = '%u'"
|
"SELECT `charid` FROM `group_id` WHERE `groupid` = '%u'"
|
||||||
" AND `charid` IN (SELECT `bot_id` FROM `bot_data` WHERE `owner_id` = '%u')"
|
" AND `name` IN (SELECT `name` FROM `bot_data` WHERE `owner_id` = '%u')",
|
||||||
" AND `group_id.name` NOT IN (SELECT `name` FROM `character_data`)",
|
|
||||||
group_id,
|
group_id,
|
||||||
owner_id);*/
|
owner_id);
|
||||||
|
|
||||||
auto results = database.QueryDatabase(query);
|
auto results = database.QueryDatabase(query);
|
||||||
if (!results.Success())
|
if (!results.Success())
|
||||||
|
|||||||
Reference in New Issue
Block a user