From 9b6a67807ddae7b5b4f6ce44f26c563d742b8652 Mon Sep 17 00:00:00 2001 From: kamenitxan Date: Thu, 16 Nov 2023 01:59:34 +0100 Subject: [PATCH] fix(DB\SAI): Port completion event for quest Hilary's Necklace from Trinity (#17719) * Adds Completion Event for Quest Hilary's Necklace * Update data/sql/updates/pending_db_world/hilarys_necklace.sql --------- Co-authored-by: ZenoX92 --- data/sql/updates/pending_db_world/hilarys_necklace.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 data/sql/updates/pending_db_world/hilarys_necklace.sql diff --git a/data/sql/updates/pending_db_world/hilarys_necklace.sql b/data/sql/updates/pending_db_world/hilarys_necklace.sql new file mode 100644 index 000000000..fdc41aa52 --- /dev/null +++ b/data/sql/updates/pending_db_world/hilarys_necklace.sql @@ -0,0 +1,10 @@ +-- Quest "Hilary's Necklace" --> Completion Event +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry` = 8962; + +DELETE FROM `smart_scripts` WHERE `entryorguid` = 8962 AND `source_type` = 0; +DELETE FROM `smart_scripts` WHERE `entryorguid` = 896200 AND `source_type` = 9; + +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 +(8962, 0, 0, 0, 20, 0, 100, 0, 3741, 0, 0, 0, 80, 896200, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,'Hilary - On Quest \'Hilary\'s Necklace\' Finished - Run Script'), +(896200, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 19, 8963, 0, 0, 0, 0, 0, 0, 'Hilary - On Script - Say Line 0 (Effsee)'), +(896200, 9, 1, 0, 0, 0, 100, 0, 2000, 2000, 0, 0, 1, 0, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Hilary - On Script - Say Line 0');