From 14f10bdf605f36a339db6a97fa6da566d749440d Mon Sep 17 00:00:00 2001 From: temperrr Date: Mon, 25 Apr 2022 14:25:26 +0200 Subject: [PATCH] fix(DB/Conditions): Unfired Plate Gauntlets should only require blacksmithing 225 to loot. (#11510) * Fix(DB/Loot): Unfired Plate Gauntlets does not require a quest to be obtained * Update rev_1650790172951548882.sql * Update rev_1650790172951548882.sql --- .../updates/pending_db_world/rev_1650790172951548882.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1650790172951548882.sql diff --git a/data/sql/updates/pending_db_world/rev_1650790172951548882.sql b/data/sql/updates/pending_db_world/rev_1650790172951548882.sql new file mode 100644 index 000000000..1457adc0c --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1650790172951548882.sql @@ -0,0 +1,9 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1650790172951548882'); + +DELETE FROM `gameobject_loot_template` WHERE (`Entry` = 13574) AND (`Item` IN (12812)); +INSERT INTO `gameobject_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES +(13574, 12812, 0, 100, 0, 1, 0, 1, 1, 'Unfired Plate Gauntlets - Unfired Plate Gauntlets'); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=4 AND `SourceGroup`=13574; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(4, 13574, 12812, 0, 0, 7, 0, 164, 225, 0, 0, 0, 0, '', 'Unfired Plate Gauntlets while having Blacksmithing skill 225');