fix(DB/Quest): Mastery of the Crystals (#2988)

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
Knindza
2020-06-12 21:28:51 +02:00
committed by GitHub
parent bf74a3a00a
commit 8ab818d95f

View File

@@ -0,0 +1,30 @@
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1588339146103973500');
/*
* Zone: Sholazar Basin
* Update by Knindza | <www.azerothcore.org>
* Copyright (C) <www.shadowburn.net> & <www.lichbane.com>
*/
/* 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\'');