From accaec8f8e2e29f374848fa699aeade1b921df83 Mon Sep 17 00:00:00 2001 From: Maelthyr <100411212+Maelthyrr@users.noreply.github.com> Date: Sun, 14 Aug 2022 21:51:31 +0200 Subject: [PATCH] fix(DB/Loot): Drop condition for Silithid Carapace (#12682) * fix(DB/Loot): Drop condition for Silithid Carapace Now Silithid Carapace depend to the Agent of Nozdormu item and not of the quest give it. * codestyle * . --- .../rev_1659994222187513600.sql | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1659994222187513600.sql diff --git a/data/sql/updates/pending_db_world/rev_1659994222187513600.sql b/data/sql/updates/pending_db_world/rev_1659994222187513600.sql new file mode 100644 index 000000000..ebc094f3c --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1659994222187513600.sql @@ -0,0 +1,23 @@ +-- Fix Silithid Carapace to depend only to Agent of Nozdormu item +UPDATE `creature_loot_template` SET `QuestRequired` = 0 WHERE `Item` = 20384; + +DELETE FROM `conditions` WHERE `SourceEntry` = 20384 AND `ConditionValue1` = 20402; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(1, 11698, 20384, 0, 0, 2, 0, 20402, 1, 0, 0, 0, 0, '', ''), +(1, 11721, 20384, 0, 0, 2, 0, 20402, 1, 0, 0, 0, 0, '', ''), +(1, 11722, 20384, 0, 0, 2, 0, 20402, 1, 0, 0, 0, 0, '', ''), +(1, 11723, 20384, 0, 0, 2, 0, 20402, 1, 0, 0, 0, 0, '', ''), +(1, 11724, 20384, 0, 0, 2, 0, 20402, 1, 0, 0, 0, 0, '', ''), +(1, 11725, 20384, 0, 0, 2, 0, 20402, 1, 0, 0, 0, 0, '', ''), +(1, 11726, 20384, 0, 0, 2, 0, 20402, 1, 0, 0, 0, 0, '', ''), +(1, 11727, 20384, 0, 0, 2, 0, 20402, 1, 0, 0, 0, 0, '', ''), +(1, 11728, 20384, 0, 0, 2, 0, 20402, 1, 0, 0, 0, 0, '', ''), +(1, 11729, 20384, 0, 0, 2, 0, 20402, 1, 0, 0, 0, 0, '', ''), +(1, 11730, 20384, 0, 0, 2, 0, 20402, 1, 0, 0, 0, 0, '', ''), +(1, 11731, 20384, 0, 0, 2, 0, 20402, 1, 0, 0, 0, 0, '', ''), +(1, 11732, 20384, 0, 0, 2, 0, 20402, 1, 0, 0, 0, 0, '', ''), +(1, 11733, 20384, 0, 0, 2, 0, 20402, 1, 0, 0, 0, 0, '', ''), +(1, 11734, 20384, 0, 0, 2, 0, 20402, 1, 0, 0, 0, 0, '', ''), +(1, 13136, 20384, 0, 0, 2, 0, 20402, 1, 0, 0, 0, 0, '', ''), +(1, 13301, 20384, 0, 0, 2, 0, 20402, 1, 0, 0, 0, 0, '', ''), +(1, 15759, 20384, 0, 0, 2, 0, 20402, 1, 0, 0, 0, 0, '', '');