From 8cbfed401ff5a969c62f5cf9cd0f7fbd3ca00ed5 Mon Sep 17 00:00:00 2001 From: Georg Zoeller Date: Sun, 14 Aug 2022 23:38:34 +0800 Subject: [PATCH 1/3] Add any deprecated item to the disabled item table Will add[deprecated](https://www.azerothcore.org/wiki/item_template#flags) items to the disabled table if they don't exist already. --- sql/world/base/mod_auctionhousebot.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sql/world/base/mod_auctionhousebot.sql b/sql/world/base/mod_auctionhousebot.sql index 12aaa00..208ea29 100644 --- a/sql/world/base/mod_auctionhousebot.sql +++ b/sql/world/base/mod_auctionhousebot.sql @@ -366,3 +366,7 @@ VALUES (53890), (54069), (54860), (50840), (53891), (53924), (51997), (51998), (54847), (54857), (56806), (54212), (54452), (54810), (50093), (54822), (50289), (50301), (50307), (52189), (52202), (52272), (52275), (52276), (52345), (52562), (52563), (52565), (52729), (53510), (54218), (54455), (54467), (50248), (50431), (52011), (52062), (54291), (54470); + +-- This adds any item with the deprecated flag (0x10) to the disabled item table as long as it isn't already in there. +insert INTO acore_world.mod_auctionhousebot_disabled_items (item) SELECT t.entry FROM acore_world.mod_auctionhousebot_disabled_items AS d right JOIN acore_world.item_template t ON (d.item = t.entry) WHERE (Flags & 16) = 16 AND d.item IS NULL + From 36ee926a898c8e6423d447c816e5cf07b72449cd Mon Sep 17 00:00:00 2001 From: Georg Zoeller Date: Mon, 15 Aug 2022 00:41:32 +0800 Subject: [PATCH 2/3] Update mod_auctionhousebot.sql --- sql/world/base/mod_auctionhousebot.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/world/base/mod_auctionhousebot.sql b/sql/world/base/mod_auctionhousebot.sql index 208ea29..1a56393 100644 --- a/sql/world/base/mod_auctionhousebot.sql +++ b/sql/world/base/mod_auctionhousebot.sql @@ -368,5 +368,5 @@ VALUES (54467), (50248), (50431), (52011), (52062), (54291), (54470); -- This adds any item with the deprecated flag (0x10) to the disabled item table as long as it isn't already in there. -insert INTO acore_world.mod_auctionhousebot_disabled_items (item) SELECT t.entry FROM acore_world.mod_auctionhousebot_disabled_items AS d right JOIN acore_world.item_template t ON (d.item = t.entry) WHERE (Flags & 16) = 16 AND d.item IS NULL +insert INTO acore_world.mod_auctionhousebot_disabled_items (item) SELECT t.entry FROM acore_world.mod_auctionhousebot_disabled_items AS d right JOIN acore_world.item_template t ON (d.item = t.entry) WHERE (Flags & 16) = 16 AND d.item IS NULL; From 68f561eed868d296b7d062e0b90165fa54687b54 Mon Sep 17 00:00:00 2001 From: Georg Zoeller Date: Fri, 28 Oct 2022 20:20:21 +0800 Subject: [PATCH 3/3] formatting --- sql/world/base/mod_auctionhousebot.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sql/world/base/mod_auctionhousebot.sql b/sql/world/base/mod_auctionhousebot.sql index 1a56393..18381af 100644 --- a/sql/world/base/mod_auctionhousebot.sql +++ b/sql/world/base/mod_auctionhousebot.sql @@ -367,6 +367,7 @@ VALUES (50289), (50301), (50307), (52189), (52202), (52272), (52275), (52276), (52345), (52562), (52563), (52565), (52729), (53510), (54218), (54455), (54467), (50248), (50431), (52011), (52062), (54291), (54470); --- This adds any item with the deprecated flag (0x10) to the disabled item table as long as it isn't already in there. -insert INTO acore_world.mod_auctionhousebot_disabled_items (item) SELECT t.entry FROM acore_world.mod_auctionhousebot_disabled_items AS d right JOIN acore_world.item_template t ON (d.item = t.entry) WHERE (Flags & 16) = 16 AND d.item IS NULL; +-- This adds any item with the deprecated flag (0x10 / 16 ITEM_FLAG_DEPRECATED) to the disabled item table as long as it isn't already in there. +INSERT INTO `mod_auctionhousebot_disabled_items` (item) +SELECT t.entry FROM `mod_auctionhousebot_disabled_items` AS d right JOIN `item_template` t ON (d.item = t.entry) WHERE (Flags & 16) = 16 AND d.item IS NULL;