mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[11744] Include spell_loot_template in ahbot loot filter
Also skip item=0 cases from loot tables. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
3e0cacbdaf
commit
d1d4973f95
2 changed files with 15 additions and 10 deletions
|
|
@ -912,21 +912,26 @@ bool AuctionBotSeller::Initialize()
|
|||
|
||||
sLog.outString("Loading loot items for filter..");
|
||||
if (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 `skinning_loot_template`"))
|
||||
"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 spell_loot_template"))
|
||||
{
|
||||
BarGoLink bar(result->GetRowCount());
|
||||
do
|
||||
{
|
||||
bar.step();
|
||||
Field* fields = result->Fetch();
|
||||
|
||||
uint32 entry = fields[0].GetUInt32();
|
||||
if (!entry)
|
||||
continue;
|
||||
|
||||
lootItems.push_back(fields[0].GetUInt32());
|
||||
} while (result->NextRow());
|
||||
delete result;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11743"
|
||||
#define REVISION_NR "11744"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue