From 93fbd47079824956eb10b0d6530a46e7ef2d9111 Mon Sep 17 00:00:00 2001 From: Antz Date: Fri, 5 Feb 2016 08:58:57 +0000 Subject: [PATCH] [PlayerBot] Fix invalid table reference for playerbots --- contrib/convertConditions/ConvertConditions.py | 2 +- src/modules/Bots/ahbot/PricingStrategy.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/convertConditions/ConvertConditions.py b/contrib/convertConditions/ConvertConditions.py index 29e50ad5..056a661e 100644 --- a/contrib/convertConditions/ConvertConditions.py +++ b/contrib/convertConditions/ConvertConditions.py @@ -284,7 +284,7 @@ def doTables(db): if (db[1] >= 1): progressTable("prospecting_loot_template", "entry", "item", "lootcondition, condition_value1, condition_value2", 1) if (db[1] >= 2): - progressTable("spell_loot_template", "entry", "item", "lootcondition, condition_value1, condition_value2", 1) + #progressTable("spell_loot_template", "entry", "item", "lootcondition, condition_value1, condition_value2", 1) progressTable("milling_loot_template", "entry", "item", "lootcondition, condition_value1, condition_value2", 1) if (processNumConditions < 3): diff --git a/src/modules/Bots/ahbot/PricingStrategy.cpp b/src/modules/Bots/ahbot/PricingStrategy.cpp index f9bd7490..fddb64a0 100644 --- a/src/modules/Bots/ahbot/PricingStrategy.cpp +++ b/src/modules/Bots/ahbot/PricingStrategy.cpp @@ -96,7 +96,7 @@ double PricingStrategy::GetRarityPriceMultiplier(uint32 itemId) QueryResult* results = WorldDatabase.PQuery( "select max(ChanceOrQuestChance) from ( " "select ChanceOrQuestChance from gameobject_loot_template where item = '%u' " - "union select ChanceOrQuestChance from spell_loot_template where item = '%u' " + //"union select ChanceOrQuestChance from spell_loot_template where item = '%u' " "union select ChanceOrQuestChance from disenchant_loot_template where item = '%u' " "union select ChanceOrQuestChance from fishing_loot_template where item = '%u' " "union select ChanceOrQuestChance from item_loot_template where item = '%u' "