diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp index 4032522e5..571e74288 100644 --- a/zone/client_packet.cpp +++ b/zone/client_packet.cpp @@ -15661,7 +15661,7 @@ void Client::Handle_OP_TradeSkillRecipeInspect(const EQApplicationPacket* app) auto s = (TradeSkillRecipeInspect_Struct*) app->pBuffer; const auto& v = TradeskillRecipeEntriesRepository::GetWhere( - database, + content_db, fmt::format( "`recipe_id` = {} AND `componentcount` = 0 AND `successcount` > 0 LIMIT 1", s->recipe_id diff --git a/zone/gm_commands/find/recipe.cpp b/zone/gm_commands/find/recipe.cpp index 41e58ab4a..5aefe1044 100644 --- a/zone/gm_commands/find/recipe.cpp +++ b/zone/gm_commands/find/recipe.cpp @@ -10,7 +10,7 @@ void FindRecipe(Client *c, const Seperator *sep) const auto recipe_id = static_cast(Strings::ToUnsignedInt(sep->arg[2])); const auto& l = TradeskillRecipeRepository::GetWhere( - database, + content_db, fmt::format("id = {}", recipe_id) ); @@ -56,7 +56,7 @@ void FindRecipe(Client *c, const Seperator *sep) auto found_count = 0; const auto& l = TradeskillRecipeRepository::GetWhere( - database, + content_db, fmt::format( "LOWER(`name`) LIKE '%%{}%%' ORDER BY `id` ASC", search_criteria diff --git a/zone/gm_commands/show/recipe.cpp b/zone/gm_commands/show/recipe.cpp index acbe08d82..e4bd45ad1 100644 --- a/zone/gm_commands/show/recipe.cpp +++ b/zone/gm_commands/show/recipe.cpp @@ -13,12 +13,12 @@ void ShowRecipe(Client *c, const Seperator *sep) const uint16 recipe_id = static_cast(Strings::ToUnsignedInt(sep->arg[2])); const auto& re = TradeskillRecipeEntriesRepository::GetWhere( - database, + content_db, fmt::format("recipe_id = {} ORDER BY id ASC", recipe_id) ); const auto& r = TradeskillRecipeRepository::GetWhere( - database, + content_db, fmt::format("id = {}", recipe_id) ); diff --git a/zone/questmgr.cpp b/zone/questmgr.cpp index d74e85a10..05cbdf4f2 100644 --- a/zone/questmgr.cpp +++ b/zone/questmgr.cpp @@ -4430,7 +4430,7 @@ int QuestManager::GetRecipeMadeCount(uint32 recipe_id) { std::string QuestManager::GetRecipeName(uint32 recipe_id) { auto r = TradeskillRecipeRepository::GetWhere( - database, + content_db, fmt::format("id = {}", recipe_id) );