From cb860e8edef760b554e479213dbeb5abe6d62686 Mon Sep 17 00:00:00 2001 From: Knindza Date: Fri, 28 Aug 2020 18:26:13 +0200 Subject: [PATCH] [Zone] Tanaris (#3252) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [Zone] Tanaris * update sql rev version Co-authored-by: Francesco Borzì Co-authored-by: Stefano Borzì --- .../rev_1598628846309696158.sql | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1598628846309696158.sql diff --git a/data/sql/updates/pending_db_world/rev_1598628846309696158.sql b/data/sql/updates/pending_db_world/rev_1598628846309696158.sql new file mode 100644 index 000000000..362a79ccc --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1598628846309696158.sql @@ -0,0 +1,85 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1598628846309696158'); +/* + * Zone: Tanaris + * Update by Knindza | + * Copyright (C) & +*/ + +/* SMARTSCRIPT */ +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 9396; +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 9396); +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 +(9396, 0, 0, 0, 2, 0, 100, 1, 30, 60, 0, 0, 11, 6524, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Ground Pounder - Between 30-60% Health - Cast \'6524\' (No Repeat)'); + +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 5428; +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 5428); +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 +(5428, 0, 0, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 5708, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Roc - Between 20-80% Health - Cast \'5708\' (No Repeat)'); + +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 5422; +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 5422); +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 +(5422, 0, 0, 0, 0, 0, 100, 0, 2100, 2700, 25300, 28000, 11, 7992, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Scorpid Hunter - In Combat - Cast \'7992\''); + +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 5425; +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 5425); +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 +(5425, 0, 0, 0, 0, 0, 100, 0, 1700, 2400, 9800, 12600, 11, 3604, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Starving Blisterpaw - In Combat - Cast \'3604\''); + +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 14123; +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 14123); +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 +(14123, 0, 0, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 26064, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Steeljaw Snapper - Between 20-80% Health - Cast \'26064\' (No Repeat)'); + +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 7883; +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 7883); +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 +(7883, 0, 0, 0, 0, 0, 100, 0, 1700, 2300, 8600, 9400, 11, 5679, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Andre Firebeard - In Combat - Cast \'5679\''); + +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 8196; +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 8196); +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 +(8196, 0, 0, 0, 0, 0, 100, 0, 2700, 3200, 10500, 11600, 11, 10833, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Occulus - In Combat - Cast \'10833\''), +(8196, 0, 1, 0, 2, 0, 100, 1, 40, 80, 0, 0, 11, 20717, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Occulus - Between 40-80% Health - Cast \'20717\' (No Repeat)'), +(8196, 0, 2, 0, 2, 0, 100, 1, 10, 30, 0, 0, 11, 18144, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Occulus - Between 10-30% Health - Cast \'18144\' (No Repeat)'); + +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 8197; +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 8197); +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 +(8197, 0, 0, 0, 0, 0, 100, 0, 1700, 2600, 9600, 12800, 11, 13748, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Chronalis - In Combat - Cast \'13748\''), +(8197, 0, 1, 0, 12, 0, 100, 1, 40, 60, 0, 0, 11, 40504, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Chronalis - Target Between 40-60% Health - Cast \'40504\' (No Repeat)'), +(8197, 0, 2, 0, 2, 0, 100, 1, 40, 80, 0, 0, 11, 20717, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Chronalis - Between 40-80% Health - Cast \'20717\' (No Repeat)'), +(8197, 0, 3, 0, 2, 0, 100, 1, 10, 30, 0, 0, 11, 18144, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Chronalis - Between 10-30% Health - Cast \'18144\' (No Repeat)'); + +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 8198; +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 8198); +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 +(8198, 0, 0, 0, 0, 0, 100, 0, 2100, 3200, 9700, 11300, 11, 21073, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Tick - In Combat - Cast \'21073\''), +(8198, 0, 1, 0, 2, 0, 100, 1, 40, 80, 0, 0, 11, 20717, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Tick - Between 40-80% Health - Cast \'20717\' (No Repeat)'), +(8198, 0, 2, 0, 2, 0, 100, 1, 10, 30, 0, 0, 11, 18144, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Tick - Between 10-30% Health - Cast \'18144\' (No Repeat)'); + +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 5431; +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 5431); +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 +(5431, 0, 0, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 26064, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Surf Glider - Between 20-80% Health - Cast \'26064\' (No Repeat)'); + +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 5426; +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 5426); +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 +(5426, 0, 0, 0, 0, 0, 100, 0, 2700, 3200, 8900, 12100, 11, 3604, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Blisterpaw Hyena - In Combat - Cast \'3604\''); + +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 5469; +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 5469); +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 +(5469, 0, 0, 0, 0, 0, 100, 0, 2500, 3000, 22500, 23000, 11, 9791, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Dune Smasher - In Combat - Cast \'9791\''); + +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 5430; +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 5430); +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 +(5430, 0, 0, 0, 4, 0, 100, 0, 0, 0, 0, 0, 11, 16843, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Searing Roc - On Aggro - Cast \'16843\''), +(5430, 0, 1, 0, 2, 0, 100, 1, 20, 80, 0, 0, 11, 8139, 32, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 'Searing Roc - Between 20-80% Health - Cast \'8139\' (No Repeat)'); + +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 5490; +DELETE FROM `smart_scripts` WHERE (source_type = 0 AND entryorguid = 5490); +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 +(5490, 0, 0, 0, 2, 0, 100, 1, 30, 60, 0, 0, 11, 7948, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Gnarled Thistleshrub - Between 30-60% Health - Cast \'7948\' (No Repeat)');