From b83ff79ba1957555d1abbfa4112eb6c1dc4a72d3 Mon Sep 17 00:00:00 2001 From: ZenoX92 Date: Sun, 22 Jul 2018 12:32:13 +0200 Subject: DB/Object: Thaurissan Relic Closes #22180 --- .../world/3.3.5/2018_07_22_01_world_335.sql | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 sql/updates/world/3.3.5/2018_07_22_01_world_335.sql (limited to 'sql') diff --git a/sql/updates/world/3.3.5/2018_07_22_01_world_335.sql b/sql/updates/world/3.3.5/2018_07_22_01_world_335.sql new file mode 100644 index 00000000000..bf2386d4a1b --- /dev/null +++ b/sql/updates/world/3.3.5/2018_07_22_01_world_335.sql @@ -0,0 +1,27 @@ +-- +-- Thaurissan Relic +UPDATE `gameobject_template` SET `AIName`="SmartGameObjectAI" WHERE `entry`=153556; +DELETE FROM `smart_scripts` WHERE `entryorguid`=153556 AND `source_type`=1; +DELETE FROM `smart_scripts` WHERE `entryorguid`=15355600 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 +(153556,1,0,0,70,0,100,1,2,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,"Thaurissan Relic - On Gameobject State Changed - Store Targetlist"), +(153556,1,1,0,70,0,100,1,2,0,0,0,80,15355600,0,0,0,0,0,1,0,0,0,0,0,0,0,"Thaurissan Relic - On Gameobject State Changed - Run Script"), +(15355600,9,0,0,0,0,100,0,0,0,0,0,12,8887,3,5000,0,0,0,1,0,0,0,0,0,0,0,"Thaurissan Relic - On Script - Summon Creature 'A tormented voice'"), +(15355600,9,1,0,0,0,100,0,0,0,0,0,100,1,0,0,0,0,0,19,8887,0,0,0,0,0,0,"Thaurissan Relic - On Script - Send Targetlist"), +(15355600,9,2,0,0,0,100,0,0,0,0,0,45,1,1,0,0,0,0,19,8887,0,0,0,0,0,0,"Thaurissan Relic - On Script - Set Data"); + +-- A tormented voice +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8887; +DELETE FROM `smart_scripts` WHERE `entryorguid`=8887 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 +(8887,0,0,0,38,0,100,0,1,1,0,0,1,0,0,0,0,0,0,12,1,0,0,0,0,0,0,"A tormented voice - On Data Set - Say Line 0"); + +DELETE FROM `creature_text` WHERE `CreatureID`=8887; +INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES +(8887,0,0,"Leave this place. ",15,0,100,0,0,0,4594,0,"A tormented voice"), +(8887,0,1,"You will perish here. ",15,0,100,0,0,0,4595,0,"A tormented voice"), +(8887,0,2,"Do not taint these ruins, mortal. ",15,0,100,0,0,0,4596,0,"A tormented voice"), +(8887,0,3,"Help us, outsider. ",15,0,100,0,0,0,4597,0,"A tormented voice"), +(8887,0,4,"He cannot be defeated. ",15,0,100,0,0,0,4598,0,"A tormented voice"), +(8887,0,5,"Your existence is acknowledged. ",15,0,100,0,0,0,4599,0,"A tormented voice"), +(8887,0,6,"Defiler... you will be punished for this incursion. ",15,0,100,0,0,0,4600,0,"A tormented voice"); -- cgit v1.2.3