From fc4496ecf54e2ee4ec13e3ac7fc53801713f511d Mon Sep 17 00:00:00 2001 From: Emir Date: Tue, 18 May 2021 04:30:08 -0700 Subject: [PATCH] fix(DB/Creature): Stonemaul spirit (#5812) --- .../rev_1620836710197850400.sql | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1620836710197850400.sql diff --git a/data/sql/updates/pending_db_world/rev_1620836710197850400.sql b/data/sql/updates/pending_db_world/rev_1620836710197850400.sql new file mode 100644 index 000000000..f9da2975d --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1620836710197850400.sql @@ -0,0 +1,19 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1620836710197850400'); +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=23786; +DELETE FROM `smart_scripts` WHERE `entryorguid`=23786 AND `source_type`=0; +DELETE FROM `smart_scripts` WHERE `entryorguid`=2378600 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 +(23786,0,0,0,11,0,100,0,0,0,0,0,80,2378600,0,0,0,0,0,1,0,0,0,0,0,0,0,"Stonemaul Spirit - On Spawn - Run Script"), +(23786,0,9,0,0,0,15,0,0,0,0,0,1,1,0,0,0,0,0,2,0,0,0,0,0,0,0,"Stonemaul Spirit - In Combat - Say Line 1"), +(2378600,9,0,0,0,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Stonemaul Spirit - On Script - Say Line 0"), +(2378600,9,1,0,0,0,100,0,2000,2000,0,0,49,0,0,0,0,0,0,23,0,0,0,0,0,0,0,"Stonemaul Spirit - On Script - Start Attacking"); + + +DELETE FROM `creature_text` WHERE `CreatureID`=23786; +INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES +(23786,0,0,"Me crush puny friend of dragons!",12,0,100,15,0,0,22416,0,"Stonemaul Spirit"), +(23786,0,1,"You leave Stonemaul lands now!",12,0,100,15,0,0,22417,0,"Stonemaul Spirit"), +(23786,0,2,"Why you wake ghost? Where other Stonemauls?!",12,0,100,15,0,0,22418,0,"Stonemaul Spirit"), +(23786,1,0,"Raaar!!! Me smash $r!",12,0,100,0,0,0,1925,0,"Stonemaul Spirit"), +(23786,1,1,"Me smash! You die!",12,0,100,0,0,0,1926,0,"Stonemaul Spirit"), +(23786,1,2,"I'll crush you!",12,0,100,0,0,0,1927,0,"Stonemaul Spirit");