Core/AHBot: Fix loot query

This commit is contained in:
Shauren
2024-08-26 16:09:55 +02:00
parent 43987f0cff
commit fbadeeae39

View File

@@ -75,17 +75,17 @@ bool AuctionBotSeller::Initialize()
TC_LOG_DEBUG("ahbot", "Loading loot items for filter..");
QueryResult result = WorldDatabase.PQuery(
"SELECT `item` FROM `creature_loot_template` WHERE `Reference` = 0 UNION "
"SELECT `item` FROM `disenchant_loot_template` WHERE `Reference` = 0 UNION "
"SELECT `item` FROM `fishing_loot_template` WHERE `Reference` = 0 UNION "
"SELECT `item` FROM `gameobject_loot_template` WHERE `Reference` = 0 UNION "
"SELECT `item` FROM `item_loot_template` WHERE `Reference` = 0 UNION "
"SELECT `item` FROM `milling_loot_template` WHERE `Reference` = 0 UNION "
"SELECT `item` FROM `pickpocketing_loot_template` WHERE `Reference` = 0 UNION "
"SELECT `item` FROM `prospecting_loot_template` WHERE `Reference` = 0 UNION "
"SELECT `item` FROM `reference_loot_template` WHERE `Reference` = 0 UNION "
"SELECT `item` FROM `skinning_loot_template` WHERE `Reference` = 0 UNION "
"SELECT `item` FROM `spell_loot_template` WHERE `Reference` = 0");
"SELECT `item` FROM `creature_loot_template` WHERE `ItemType` = 0 UNION "
"SELECT `item` FROM `disenchant_loot_template` WHERE `ItemType` = 0 UNION "
"SELECT `item` FROM `fishing_loot_template` WHERE `ItemType` = 0 UNION "
"SELECT `item` FROM `gameobject_loot_template` WHERE `ItemType` = 0 UNION "
"SELECT `item` FROM `item_loot_template` WHERE `ItemType` = 0 UNION "
"SELECT `item` FROM `milling_loot_template` WHERE `ItemType` = 0 UNION "
"SELECT `item` FROM `pickpocketing_loot_template` WHERE `ItemType` = 0 UNION "
"SELECT `item` FROM `prospecting_loot_template` WHERE `ItemType` = 0 UNION "
"SELECT `item` FROM `reference_loot_template` WHERE `ItemType` = 0 UNION "
"SELECT `item` FROM `skinning_loot_template` WHERE `ItemType` = 0 UNION "
"SELECT `item` FROM `spell_loot_template` WHERE `ItemType` = 0");
if (result)
{