mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-19 11:42:25 +00:00
Migrate factions [skip ci]
This commit is contained in:
parent
c98d2743c5
commit
ec5be4985e
@ -4015,7 +4015,7 @@ void command_faction(Client *c, const Seperator *sep)
|
||||
else {
|
||||
query = fmt::format("SELECT `id`,`name` FROM `faction_list` WHERE `name` LIKE '%{}%'", faction_filter.c_str());
|
||||
}
|
||||
auto results = database.QueryDatabase(query);
|
||||
auto results = content_db.QueryDatabase(query);
|
||||
if (!results.Success())
|
||||
return;
|
||||
if (results.RowCount() == 0) {
|
||||
@ -4048,7 +4048,7 @@ void command_faction(Client *c, const Seperator *sep)
|
||||
revquery = fmt::format(
|
||||
"SELECT id,`name`, current_value FROM faction_list INNER JOIN faction_values ON faction_list.id = faction_values.faction_id WHERE `name` like '%{}%' and char_id = {}", faction_filter.c_str(), charid);
|
||||
}
|
||||
auto revresults = database.QueryDatabase(revquery);
|
||||
auto revresults = content_db.QueryDatabase(revquery);
|
||||
if (!revresults.Success())
|
||||
return;
|
||||
if (revresults.RowCount() == 0) {
|
||||
|
||||
@ -353,7 +353,7 @@ int main(int argc, char** argv) {
|
||||
guild_mgr.LoadGuilds();
|
||||
|
||||
LogInfo("Loading factions");
|
||||
database.LoadFactionData();
|
||||
content_db.LoadFactionData();
|
||||
|
||||
LogInfo("Loading titles");
|
||||
title_manager.LoadTitles();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user