mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
Core/AHBot: Filter out from AHBot items that can't be looted
This commit is contained in:
@@ -76,17 +76,17 @@ bool AuctionBotSeller::Initialize()
|
||||
|
||||
TC_LOG_DEBUG("ahbot", "Loading loot items for filter..");
|
||||
QueryResult result = WorldDatabase.PQuery(
|
||||
"SELECT `item` FROM `creature_loot_template` UNION "
|
||||
"SELECT `item` FROM `disenchant_loot_template` UNION "
|
||||
"SELECT `item` FROM `fishing_loot_template` UNION "
|
||||
"SELECT `item` FROM `gameobject_loot_template` UNION "
|
||||
"SELECT `item` FROM `item_loot_template` UNION "
|
||||
"SELECT `item` FROM `milling_loot_template` UNION "
|
||||
"SELECT `item` FROM `pickpocketing_loot_template` UNION "
|
||||
"SELECT `item` FROM `prospecting_loot_template` UNION "
|
||||
"SELECT `item` FROM `reference_loot_template` UNION "
|
||||
"SELECT `item` FROM `skinning_loot_template` UNION "
|
||||
"SELECT `item` FROM `spell_loot_template`");
|
||||
"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");
|
||||
|
||||
if (result)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user