Надявам се, че не съм пропуснал нищо:
UPDATE `creature_template` SET `ainame`='SmartAI',`scriptname`='' WHERE `entry` IN (27840,27899,27896,27898,27897,27900);
UPDATE `creature_template` SET `regenhealth`=0 WHERE `entry`=27840;
UPDATE `creature_template` SET `faction_A`=2111,`faction_H`=2111 WHERE `entry` IN (27898,27900);
DELETE FROM `creature_ai_scripts` WHERE `creature_id` IN (27900,27898);
UPDATE `gameobject_template` SET `data1`=100 WHERE `entry`=300209;
DELETE FROM `creature_text` WHERE `entry`=27899;
INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`) VALUES
('27899','0','0','Hey there, $N, don\'t be alarmed. It\'s me... you... from the future. I\'m here to help.','15','0','0','0','0','0',''),
('27899','1','0','Heads up... here they come. I\'ll help as much as I can. Let\'s just keep them off of the hourglass!','15','0','0','0','0','0',''),
('27899','2','0','No matter what, you can\'t die because that would mean that I would cease to exist, right? But, I was here before when I was you. I\'m so confused!','15','0','0','0','0','0',''),
('27899','3','0','Look, $N, the hourglass has revealed Nozdormu!','15','0','0','0','0','0','');
DELETE FROM `smart_scripts` WHERE `entryorguid`=27899 AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid`=2789900 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
('27899','0','0','1','11','0','100','0','0','0','0','0','80','2789900','2','0','0','0','0','1','0','0','0','0','0','0','0','On Spawn - Call Timed Actionlist'),
('27899','0','1','0','61','0','100','0','0','0','0','0','64','1','0','0','0','0','0','18','10','0','0','0','0','0','0','Store target'),
('2789900','9','0','0','0','0','100','0','2000','2000','0','0','1','0','0','0','0','0','0','12','1','0','0','0','0','0','0','Action 2 - Say Line 0'),
('2789900','9','1','0','0','0','100','0','6000','6000','0','0','1','1','0','0','0','0','0','12','1','0','0','0','0','0','0','Action 3 - Say Line 1'),
('2789900','9','2','0','0','0','100','0','104000','104000','0','0','1','2','0','0','0','0','0','12','1','0','0','0','0','0','0','Action 4 - Say Line 2'),
('2789900','9','3','0','0','0','100','0','58000','58000','0','0','1','3','0','0','0','0','0','12','1','0','0','0','0','0','0','Action 5 - Say Line 3'),
('2789900','9','4','0','0','0','100','0','1000','1000','0','0','45','0','1','0','0','0','0','19','27840','10','0','0','0','0','0','Action 6 - Set Data 0 1');
DELETE FROM `smart_scripts` WHERE `entryorguid`=27840 AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid`=2784000 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
('27840','0','0','1','11','0','100','0','0','0','0','0','11','49931','3','0','0','0','0','1','0','0','0','0','0','0','0','On Spawn - Summon Future You'),
('27840','0','1','0','61','0','100','0','0','0','0','0','80','2784000','2','0','0','0','0','1','0','0','0','0','0','0','0','Link With Previous Event - Call Timed ActionList'),
('27840','0','2','0','0','0','100','0','0','0','0','0','21','0','0','0','0','0','0','1','0','0','0','0','0','0','0','In Combat - Disable Movement'),
('27840','0','3','0','38','0','100','0','0','1','0','0','15','12470','0','0','0','0','0','17','0','20','0','0','0','0','0','On Data Set - Give Quest Credit'),
('27840','0','4','4','6','0','100','0','0','0','0','0','41','0','0','0','0','0','0','1','0','0','0','0','0','0','0','On Death - Despawn'),
('2784000','9','0','0','0','0','100','0','9000','9000','0','0','11','49900','3','0','0','0','0','1','0','0','0','0','0','0','0','Action 1 - Summon Infinite Assailant'),
('2784000','9','1','0','0','0','100','0','0','0','0','0','11','49900','3','0','0','0','0','1','0','0','0','0','0','0','0','Action 2 - Summon Infinite Assailant'),
('2784000','9','2','0','0','0','100','0','30000','30000','0','0','11','49900','3','0','0','0','0','1','0','0','0','0','0','0','0','Action 3 - Summon Infinite Assailant'),
('2784000','9','3','0','0','0','100','0','0','0','0','0','11','49900','3','0','0','0','0','1','0','0','0','0','0','0','0','Action 4 - Summon Infinite Assailant'),
('2784000','9','4','0','0','0','100','0','30000','30000','0','0','11','49902','3','0','0','0','0','1','0','0','0','0','0','0','0','Action 5 - Summon Infinite Chrono-Magus'),
('2784000','9','5','0','0','0','100','0','0','0','0','0','11','49901','3','0','0','0','0','1','0','0','0','0','0','0','0','Action 6 - Summon Infinite Destroyer'),
('2784000','9','6','0','0','0','100','0','0','0','0','0','11','49901','3','0','0','0','0','1','0','0','0','0','0','0','0','Action 7 - Summon Infinite Destroyer'),
('2784000','9','7','0','0','0','100','0','30000','30000','0','0','11','49901','3','0','0','0','0','1','0','0','0','0','0','0','0','Action 8 - Summon Infinite Destroyer'),
('2784000','9','8','0','0','0','100','0','0','0','0','0','11','49902','3','0','0','0','0','1','0','0','0','0','0','0','0','Action 9 - Summon Infinite Chrono-Magus'),
('2784000','9','9','0','0','0','100','0','0','0','0','0','11','49902','3','0','0','0','0','1','0','0','0','0','0','0','0','Action 10 - Summon Infinite Chrono-Magus'),
('2784000','9','10','0','0','0','100','0','40000','40000','0','0','11','49905','3','0','0','0','0','1','0','0','0','0','0','0','0','Action 10 - Summon Infinite Timerender');
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (27896,27898,27897,27900) 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
('27896','0','0','0','11','0','100','0','0','0','0','0','49','0','0','0','0','0','0','11','27840','13','0','0','0','0','0','On Spawn - Attack Hourglass'),
('27897','0','0','0','11','0','100','0','0','0','0','0','49','0','0','0','0','0','0','11','27840','13','0','0','0','0','0','On Spawn - Attack Hourglass'),
('27898','0','0','0','11','0','100','0','0','0','0','0','49','0','0','0','0','0','0','11','27840','13','0','0','0','0','0','On Spawn - Attack Hourglass'),
('27898','0','1','0','0','0','100','0','0','40','3400','4800','11','9613','0','0','0','0','0','2','0','0','0','0','0','0','0','In Combat - Cast Shadow Bolt'),
('27898','0','2','0','0','0','100','0','8000','13000','12000','15000','11','38085','0','0','0','0','0','2','0','0','0','0','0','0','0','In Combat - Cast Shadow Blast'),
('27900','0','0','0','11','0','100','0','0','0','0','0','49','0','0','0','0','0','0','11','27840','13','0','0','0','0','0','On Spawn - Attack Hourglass'),
('27900','0','1','0','0','0','100','0','5000','8000','11000','15000','11','51020','0','0','0','0','0','2','0','0','0','0','0','0','0','In Combat - Cast Time Lapse');