From 8ab818d95f8ca56e064e097bb1d7b15b599839e0 Mon Sep 17 00:00:00 2001 From: Knindza Date: Fri, 12 Jun 2020 21:28:51 +0200 Subject: [PATCH] fix(DB/Quest): Mastery of the Crystals (#2988) Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com> --- .../rev_1588339146103973500.sql | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1588339146103973500.sql diff --git a/data/sql/updates/pending_db_world/rev_1588339146103973500.sql b/data/sql/updates/pending_db_world/rev_1588339146103973500.sql new file mode 100644 index 000000000..9175d400b --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1588339146103973500.sql @@ -0,0 +1,30 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1588339146103973500'); + +/* + * Zone: Sholazar Basin + * Update by Knindza | + * Copyright (C) & +*/ + +/* FLAGS */ +UPDATE `creature_template` SET `unit_flags` = `unit_flags`|4 WHERE `entry` IN (29125, 29126, 29127); + +/* DROPCHANCE */ +UPDATE `creature_loot_template` SET `Chance` = 30 WHERE `Item` = 39265; +UPDATE `creature_loot_template` SET `Chance` = 30 WHERE `Item` = 39266; + + +/* SMARTSCRIPTS */ +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` IN (29126, 29125, 29127); + +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 29126); +INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(29126, 0, 0, 0, 0, 0, 100, 0, 1000, 1000, 15000, 15000, 11, 53229, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Crystal of the Violent Storm - In Combat - Cast \'53229\''); + +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 29125); +INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(29125, 0, 0, 0, 0, 0, 100, 0, 1000, 1000, 5000, 5000, 11, 53218, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Crystal of the Frozen Grip - In Combat - Cast \'53218\''); + +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 29127); +INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(29127, 0, 0, 0, 0, 0, 100, 0, 1000, 1000, 10000, 10000, 11, 53235, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Crystal of Unstable Energy - In Combat - Cast \'53235\'');