From c420603a5238c630399d245b408f92065f7c52fc Mon Sep 17 00:00:00 2001 From: Poszer <41213210+poszer@users.noreply.github.com> Date: Tue, 14 May 2019 02:39:55 +0200 Subject: [PATCH] fix(DB/Quest): Healthy Dragon Scale (#1807) * fix(DB/Quest): Healthy Dragon Scale - Added conditions. Item will be drop, just if the quest 5529 is completed. - Loot updated to 100 drop chance. * fix(DB/Quest): Healthy Dragon Scale - Updated drop chance to 6 (Source: wowhead and some other DB's for patch 3.3.5) --- .../updates/pending_db_world/rev_1557180801797784400.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1557180801797784400.sql diff --git a/data/sql/updates/pending_db_world/rev_1557180801797784400.sql b/data/sql/updates/pending_db_world/rev_1557180801797784400.sql new file mode 100644 index 000000000..bdf30c593 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1557180801797784400.sql @@ -0,0 +1,8 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1557180801797784400'); + +-- Healthy Dragon Scale https://www.wowdb.com/items/13920-healthy-dragon-scale +DELETE FROM `conditions` WHERE `SourceGroup`=10678 AND `SourceEntry` IN (13920,5582) AND `ConditionValue1`=5529; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(1, 10678, 13920, 0, 0, 8, 0, 5529, 0, 0, 0, 0, 0, '', 'Healthy Dragon Scale drop if Quest 5529 rewarded'); + +UPDATE `creature_loot_template` SET `Chance`='6' WHERE `Entry`=10678 AND `Item`=13920;