From e36e1210f7e37d584def1572ae99af11640badb8 Mon Sep 17 00:00:00 2001 From: Selyria Date: Sun, 21 Jul 2019 12:08:22 +0200 Subject: [PATCH] DB/SAI: actually execute Technician Zhanaa's script on quest turn-in (#2078) - The fix should cause the event to start after the quest The Emitter ID 9312 has ended. The old smart_script is deleted because it does not belong to the NPC. It belongs to the NPC with the ID 16514 which also has the script. --- .../sql/updates/pending_db_world/rev_1562666306247342200.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1562666306247342200.sql diff --git a/data/sql/updates/pending_db_world/rev_1562666306247342200.sql b/data/sql/updates/pending_db_world/rev_1562666306247342200.sql new file mode 100644 index 000000000..80839a264 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1562666306247342200.sql @@ -0,0 +1,5 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1562666306247342200'); + +DELETE FROM `smart_scripts` WHERE `entryorguid`=17071 AND `source_type`=0; +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 +(17071,0,0,0,20,0,100,0,9312,0,0,0,80,1707100,2,0,0,0,0,1,0,0,0,0,0,0,0,"Technician Zhanaa - On Quest 'The Emitter' Finished - Run Script");