From 17eb8e0d23729e5e67eb574e5728171ad111c4c6 Mon Sep 17 00:00:00 2001 From: Devn00b Date: Wed, 20 Jul 2022 23:14:22 -0700 Subject: [PATCH] Added ability to search broker for Sales Displays --- EQ2/source/WorldServer/Items/Items.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/EQ2/source/WorldServer/Items/Items.cpp b/EQ2/source/WorldServer/Items/Items.cpp index 5f5767f09..4a94a4fad 100644 --- a/EQ2/source/WorldServer/Items/Items.cpp +++ b/EQ2/source/WorldServer/Items/Items.cpp @@ -305,8 +305,6 @@ vector* MasterItemList::GetItems(string name, int64 itype, int64 ltype, i break; } case ITEM_BROKER_TYPE_TINKERED:{ - //this is handled by item->tinkered - //if(item->IsTinkered()) if(item->tinkered == 1) should_add = true; break; @@ -1421,8 +1419,7 @@ bool Item::IsRecipeBook(){ } bool Item::IsSalesDisplay(){ - LogWrite(MISC__TODO, 1, "TODO", "Item Sales Displays\n\t(%s, function: %s, line #: %i)", __FILE__, __FUNCTION__, __LINE__); - return false; + return generic_info.item_type == ITEM_TYPE_HOUSE_CONTAINER; } bool Item::IsSlashWeapon(){ @@ -1432,11 +1429,13 @@ bool Item::IsSlashWeapon(){ bool Item::IsSpellScroll(){ return IsSkill(); } - +//item->tinkered. +/* bool Item::IsTinkered(){ LogWrite(MISC__TODO, 1, "TODO", "Item Is Tinkered\n\t(%s, function: %s, line #: %i)", __FILE__, __FUNCTION__, __LINE__); return false; } +*/ bool Item::IsThrown(){ return generic_info.item_type == ITEM_TYPE_THROWN; @@ -1449,7 +1448,7 @@ bool Item::IsHarvest() { bool Item::IsBodyDrop() { return generic_info.body_drop == 1; } -//devn00b: temp: this is now covered with item->crafted. +//item->crafted /*bool Item::IsTradeskill(){ LogWrite(MISC__TODO, 1, "TODO", "Item Is Crafted\n\t(%s, function: %s, line #: %i)", __FILE__, __FUNCTION__, __LINE__); return false;