mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
[Bug Fix] Fix Tradeskill Queries (#4661)
This commit is contained in:
parent
4658e7f60d
commit
4fe229c475
@ -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
|
||||
|
||||
@ -10,7 +10,7 @@ void FindRecipe(Client *c, const Seperator *sep)
|
||||
const auto recipe_id = static_cast<uint16>(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
|
||||
|
||||
@ -13,12 +13,12 @@ void ShowRecipe(Client *c, const Seperator *sep)
|
||||
const uint16 recipe_id = static_cast<uint16>(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)
|
||||
);
|
||||
|
||||
|
||||
@ -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)
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user