From 161b052a554299cf7e7533bbcbb44b8dde82b3a1 Mon Sep 17 00:00:00 2001 From: Raelorasz <82320853+Raelorasz@users.noreply.github.com> Date: Tue, 6 Jul 2021 18:08:22 +0200 Subject: [PATCH] fix(DB): Improve quest Kroshius' Infernal Core (#6683) --- .../rev_1625248824338191500.sql | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1625248824338191500.sql diff --git a/data/sql/updates/pending_db_world/rev_1625248824338191500.sql b/data/sql/updates/pending_db_world/rev_1625248824338191500.sql new file mode 100644 index 000000000..ade6194a9 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1625248824338191500.sql @@ -0,0 +1,19 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1625248824338191500'); + +-- Update Kroshius' SAI and make it not selectable +UPDATE `creature_template` SET `unit_flags` = `unit_flags`|33554432, `AIName` = 'SmartAI' WHERE (`entry` = 14467); + +DELETE FROM `smart_scripts` WHERE (`entryorguid` IN (14467,1446700)) AND (`source_type` IN (0,9)) AND (`id` IN (0, 1, 2, 3, 4, 5, 6)); +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`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(14467, 0, 0, 0, 54, 0, 100, 0, 0, 0, 0, 0, 0, 80, 1446700, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kroshius - On Just Summoned - Run Script'), +(14467, 0, 1, 0, 0, 0, 100, 0, 5000, 8000, 9000, 12000, 0, 11, 10101, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Kroshius - In Combat - Cast \'Knock Away\''), +(1446700, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 0, 9, 0, 0, 10, 0, 0, 0, 0, 0, 'Kroshius - On Script - Force Despawn'), +(1446700, 9, 1, 0, 0, 0, 100, 0, 100, 100, 0, 0, 0, 103, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kroshius - On Script - Set Rooted On'), +(1446700, 9, 2, 0, 0, 0, 100, 0, 100, 100, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kroshius - On Script - Say Line 0'), +(1446700, 9, 3, 0, 0, 0, 100, 0, 100, 100, 0, 0, 0, 2, 16, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kroshius - On Script - Set Faction 16'), +(1446700, 9, 4, 0, 0, 0, 100, 0, 3000, 3000, 0, 0, 0, 19, 33555200, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kroshius - On Script - Remove Flags Immune To Players & Immune To NPC\'s'), +(1446700, 9, 5, 0, 0, 0, 100, 0, 100, 100, 0, 0, 0, 103, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Kroshius - On Script - Set Rooted Off'), +(1446700, 9, 6, 0, 0, 0, 100, 0, 100, 100, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Kroshius - On Script - Start Attacking'); + +-- Adjust spawn position on quest item use +UPDATE `event_scripts` SET `datalong2` = 180000, `x` = 5780.34, `y` = -964.844, `z` = 412.695 WHERE `id` = 8328;