From 13ccde1ee0aa9919e48f424c2eb153196b49749e Mon Sep 17 00:00:00 2001 From: Yggdrasil WoW <157967573+YggdrasilWotLK@users.noreply.github.com> Date: Sat, 24 Aug 2024 09:20:25 +0200 Subject: [PATCH 1/2] fix(DB) Disable trash/disabled/old/deprecated/unbalanced items --- .../db-world/filter_disabled_and_trash.sql | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 data/sql/db-world/filter_disabled_and_trash.sql diff --git a/data/sql/db-world/filter_disabled_and_trash.sql b/data/sql/db-world/filter_disabled_and_trash.sql new file mode 100644 index 0000000..b562781 --- /dev/null +++ b/data/sql/db-world/filter_disabled_and_trash.sql @@ -0,0 +1,66 @@ + +INSERT IGNORE INTO mod_auctionhousebot_disabled_items (item) +SELECT entry +FROM item_template +WHERE ( + NAME LIKE '%tablet%' OR + NAME LIKE '%sulfuron%' OR + NAME LIKE '%nightcrawlers%' OR + NAME LIKE '%throwing dagger%' OR + NAME LIKE '%shot pouch%' OR + NAME LIKE '%brimstone%' OR + NAME LIKE '%small pouch%' OR + NAME LIKE '%dye%' OR + NAME LIKE '%ironwood seed%' OR + NAME LIKE '%stranglethorn seed%' OR + NAME LIKE '%simple wood%' OR + NAME LIKE '%bleach%' OR + NAME LIKE '%flour%' OR + NAME LIKE '%brew%' OR + NAME LIKE '%parchment%' OR + NAME LIKE '%light quiver%' OR + NAME LIKE '%honey%' OR + NAME LIKE '%/%' OR + NAME LIKE '%creeping anguish%' OR + NAME LIKE '%felcloth bag%' OR + NAME LIKE '%elementium ore%' OR + NAME LIKE '%unused%' OR + NAME LIKE '%lava core%' OR + NAME LIKE '%fiery core%' OR + NAME LIKE '%sulfuron ingot%' OR + NAME LIKE '%sak%' OR + NAME LIKE '%gigantique%' OR + NAME LIKE '%portable hole%' OR + NAME LIKE '%deptecated%' OR + NAME LIKE '%durability%' OR + NAME LIKE '%big sack%' OR + NAME LIKE '%decoded%' OR + NAME LIKE '%knowledge:%' OR + NAME LIKE '%manual%' OR + NAME LIKE '%gnome head%' OR + NAME LIKE '%critter enlarger%' OR + NAME LIKE '%box of%' OR + NAME LIKE '%summoning%' OR + NAME LIKE '%turtle egg%' OR + NAME LIKE '%heavy crate%' OR + NAME LIKE '%assasin throwing axe%' OR + NAME LIKE '%sack of gems%' OR + NAME LIKE '%plans: darkspear%' OR + NAME LIKE '%of swords%' OR + NAME LIKE '%gnomish alarm%' OR + NAME LIKE '%world enlarger%' OR + NAME LIKE '%tome%' OR + NAME LIKE '%ornate spyglass%' OR + NAME LIKE '%test%' OR + NAME LIKE '%darkmoon prize%' OR + NAME LIKE '%codex%' OR + NAME LIKE '%grimoire%' OR + NAME LIKE '%deprecated%' OR + NAME LIKE '%book%' OR + NAME LIKE '%libram%' OR + NAME LIKE '%guide%' +) +OR UPPER(NAME) LIKE '%OLD%' +OR UPPER(NAME) LIKE '%NPC%' +OR UPPER(NAME) LIKE '%QA%' +OR (CLASS = 0 AND SUBCLASS = 5 AND REQUIREDLEVEL < 40); From 4de8f94836affec15626c120b5f6d15f307a827e Mon Sep 17 00:00:00 2001 From: Yggdrasil WoW <157967573+YggdrasilWotLK@users.noreply.github.com> Date: Sun, 25 Aug 2024 06:44:22 +0200 Subject: [PATCH 2/2] fix(DB) Disable trash/disabled/old/deprecated/unbalanced items, now in correct SQL order --- ...ter_disabled_and_trash.sql => z_filter_disabled_and_trash.sql} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename data/sql/db-world/{filter_disabled_and_trash.sql => z_filter_disabled_and_trash.sql} (100%) diff --git a/data/sql/db-world/filter_disabled_and_trash.sql b/data/sql/db-world/z_filter_disabled_and_trash.sql similarity index 100% rename from data/sql/db-world/filter_disabled_and_trash.sql rename to data/sql/db-world/z_filter_disabled_and_trash.sql