Skip to content

Smart Event 54 Just Summoned does not work when creature is summoned via event script #13045

Description

@dr-j

I have recently been trying to script the cipher of damnation but have run into a bit of a problem some parts of event are meant to run before cyrukh gets summoned, http://www.wowhead.com/spell=37236 is the spell used to summon which uses event script which summons creature ie but when creature is summoned ai does not trigger with event 54

DELETE FROM `smart_scripts` WHERE `entryorguid` IN(21181,21310,17008) AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN(2118100,2131000) 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
(21181, 0, 0 ,0, 9,  0, 100, 0, 0,20,10000,15000,11,18945,2,0,0,0,0,7,0,0,0,0,0,0,0,'Cyrukh the Firelord <The Dirge of Karabor> - On Range - Cast Knock-Away'),
(21181, 0, 1 ,0, 0,  0, 100, 0, 3000,5000,5000,11000,11,39429,2,0,0,0,0,5,0,0,0,0,0,0,0,'Cyrukh the Firelord <The Dirge of Karabor> - IC - Cast Fel Flamestrike'),
(21181, 0, 2 ,0, 9,  0, 100, 0, 0,20,8000,13000,11,39425,2,0,0,0,0,5,0,0,0,0,0,0,0,'Cyrukh the Firelord <The Dirge of Karabor> - On Range - Cast Trample'),
(21181, 0, 3 ,0, 11,  0, 100, 0, 0,0,0,0,18,768,0,0,0,0,0,1,0,0,0,0,0,0,0,'Cyrukh the Firelord <The Dirge of Karabor> - On Spawn - Set Unit Flags'),
(21181, 0, 4 ,0, 38,  0, 100, 0, 1,1,0,0,53,0,21181,0,0,0,0,1,0,0,0,0,0,0,0,'Cyrukh the Firelord <The Dirge of Karabor> - On Data Set 1 1 - Start WP'),
(21181, 0, 5 ,6, 40,  0, 100, 0, 1,21181,0,0,101,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Cyrukh the Firelord <The Dirge of Karabor> - On Reached WP1 - Set Home Position'),
(21181, 0, 6 ,7, 61,  0, 100, 0, 0,0,0,0,19,768,0,0,0,0,0,1,0,0,0,0,0,0,0,'Cyrukh the Firelord <The Dirge of Karabor> - On Reached WP1 - Set Unit Flags'),
(21181, 0, 7 ,8, 61,  0, 100, 0, 0,0,0,0,8,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Cyrukh the Firelord <The Dirge of Karabor> - On Reached WP1 - Set Aggresive'),
(21181, 0, 8 ,9, 61,  0, 100, 0, 0,0,0,0,49,0,0,0,0,0,0,19,21685,0,0,0,0,0,0,'Cyrukh the Firelord <The Dirge of Karabor> - On Reached WP1 - Start Attack'),
(21181, 0, 9 ,10, 61,  0, 100, 0, 0,0,0,0,45,2,2,0,0,0,0,19,21686,0,0,0,0,0,0,'Cyrukh the Firelord <The Dirge of Karabor> - On Reached WP1 - Start Attack'),
(21181, 0, 10 ,0, 61,  0, 100, 0, 0,0,0,0,45,2,2,0,0,0,0,19,21687,0,0,0,0,0,0,'Cyrukh the Firelord <The Dirge of Karabor> - On Reached WP1 - Start Attack'),
(21181, 0, 11 ,0, 1,  0, 100, 0, 0,0,15000,30000,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Cyrukh the Firelord <The Dirge of Karabor> - IC - Say'),
(21181, 0, 12 ,0, 6,  0, 100, 0, 0,0,0,0,45,2,2,0,0,0,0,1,0,0,0,0,0,0,0,'Cyrukh the Firelord <The Dirge of Karabor> - On Death - Set Data'),

(17008, 0, 0 ,0, 38,  0, 100, 0, 1,1,0,0,11,35996,0,0,0,0,0,1,0,0,0,0,0,0,0,'Guldan - On Data Set 1 1 - Cast Guldan Channel'),
(17008, 0, 1 ,0, 38,  0, 100, 0, 2,2,0,0,28,35996,0,0,0,0,0,1,0,0,0,0,0,0,0,'Guldan - On Data Set 2 2 - Remove Aura Guldan Channel'),
(17008, 0, 2 ,0, 38,  0, 100, 0, 3,3,0,0,66,0,0,0,0,0,0,19,21049,0,0,0,0,0,0,'Guldan - On Data Set 3 3 - Set Orientation'),
(17008, 0, 3 ,0, 38,  0, 100, 0, 4,4,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,4.95674,'Guldan - On Data Set 3 3 - Set Orientation'),

(21052, 0, 0 ,0, 1,  2, 100, 0, 0,0,500,2000,11,35997,0,0,0,0,0,1,0,0,0,0,0,0,0,'Camera Shaker - Altar of Damnation - OOC (Phase 2) - Cast Fel Flames'),
(21052, 0, 1 ,0, 1,  2, 100, 0, 0,0,30000,30000,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Camera Shaker - Altar of Damnation - OOC (Phase 2) - Set Phase 1'),
(21052, 0, 2 ,0, 1,  2, 100, 0, 0,1000,1000,3000,11,35757,0,0,0,0,0,1,0,0,0,0,0,0,0,'Camera Shaker - Altar of Damnation - OOC (Phase 2) - Cast Ultris Destroyed'),
(21052, 0, 3 ,0, 38,  0, 100, 0, 1,1,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Camera Shaker - Altar of Damnation -On Data Set 1 1 - Set Phase 2'),

(21685, 0, 0 ,0, 38,  0, 100, 0, 1,1,0,0,81,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Oronok Torn-heart - On Data Set 1 1 - Set NPC Flags Gossip'),
(21685, 0, 1 ,2, 62,  0, 100, 0, 8350,0,0,0,81,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Oronok Torn-heart - On Gossip Select - Set NPC Flags None'),
(21685, 0, 2 ,3, 61,  0, 100, 0, 0,0,0,0,45,1,1,0,0,0,0,19,21686,0,0,0,0,0,0,'Oronok Torn-heart - On Gossip Select - Set Data'),
(21685, 0, 3 ,4, 61,  0, 100, 0, 0,0,0,0,45,1,1,0,0,0,0,19,21687,0,0,0,0,0,0,'Oronok Torn-heart - On Gossip Select - Set Data'),
(21685, 0, 4 ,0, 61,  0, 100, 0, 0,0,0,0,53,0,21685,0,0,0,0,1,0,0,0,0,0,0,0,'Oronok Torn-heart - On Gossip Select - Start WP'),
(21685, 0, 5 ,6, 40,  0, 100, 0, 12,21685,0,0,101,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Oronok Torn-heart - On Reached WP12 - Set Home Position'),
(21685, 0, 6 ,7, 61,  0, 100, 0, 0,0,0,0,19,768,0,0,0,0,0,1,0,0,0,0,0,0,0,'Oronok Torn-heart - On Reached WP12 - Set Unit Flags'),
(21685, 0, 7 ,8, 61,  0, 100, 0, 0,0,0,0,8,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Oronok Torn-heart - On Reached WP12 - Set Aggresive'),
(21685, 0, 8 ,0, 61,  0, 100, 0, 0,0,0,0,45,1,1,0,0,0,0,19,21181,0,0,0,0,0,0,'Oronok Torn-heart - On Reached WP12 - Set Data on Cyrukh the Firelord <The Dirge of Karabor>'),
(21685, 0, 9 ,0, 0,  0, 100, 0, 0,0,8000,11000,11,16006,0,0,0,0,0,2,0,0,0,0,0,0,0,'Oronok Torn-heart - IC - Cast Chain Lightning'),
(21685, 0, 10 ,0, 0,  0, 100, 0, 0,0,6000,8000,11,12548,0,0,0,0,0,2,0,0,0,0,0,0,0,'Oronok Torn-heart - IC - Cast Frost Shock'),
(21685, 0, 11 ,0, 2,  0, 100, 0, 0,40,5000,8000,11,12491,0,0,0,0,0,1,0,0,0,0,0,0,0,'Oronok Torn-heart - On Less than 40% HP - Cast Healing Wave'),
(21685, 0, 12 ,0, 38,  0, 100, 0, 5,5,0,0,11,12491,0,0,0,0,0,19,21687,0,0,0,0,0,0,'Oronok Torn-heart - On Data Set - Cast Healing Wave'),

(21686, 0, 0 ,0, 38,  0, 100, 0, 1,1,0,0,53,0,21686,0,0,0,0,1,0,0,0,0,0,0,0,'Borak, Son of Oronok - On Data Set - Start WP'),
(21686, 0, 1 ,2, 40,  0, 100, 0, 18,21686,0,0,101,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Borak, Son of Oronok - On Reached WP18 - Set Home Position'),
(21686, 0, 2 ,3, 61,  0, 100, 0, 0,0,0,0,19,768,0,0,0,0,0,1,0,0,0,0,0,0,0,'Borak, Son of Oronok - On Reached WP18 - Set Unit Flags'),
(21686, 0, 3 ,0, 61,  0, 100, 0, 0,0,0,0,8,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Borak, Son of Oronok - On Reached WP18 - Set Aggresive'),
(21686, 0, 4 ,0, 38,  0, 100, 0, 2,2,0,0,49,0,0,0,0,0,0,19,21181,0,0,0,0,0,0,'Borak, Son of Oronok - On Data Set - Start Attack'),
(21686, 0, 5 ,0, 9,  0, 100, 0, 0,5,3000,6000,11,27611,0,0,0,0,0,1,0,0,0,0,0,0,0,'Borak, Son of Oronok - On Range - Cast Eviscerate'),
(21686, 0, 6 ,0, 9,  0, 100, 0, 0,5,15000,18000,11,30470,0,0,0,0,0,1,0,0,0,0,0,0,0,'Borak, Son of Oronok - On Range - Cast Slice and Dice'),


(21687, 0, 0 ,0, 38,  0, 100, 0, 1,1,0,0,53,0,21687,0,0,0,0,1,0,0,0,0,0,0,0,'Gromtor, Son of Oronok - On Data Set - Start WP'),
(21687, 0, 1 ,2, 40,  0, 100, 0, 17,21687,0,0,101,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Gromtor, Son of Oronok - On Reached WP17 - Set Home Position'),
(21687, 0, 2 ,3, 61,  0, 100, 0, 0,0,0,0,19,768,0,0,0,0,0,1,0,0,0,0,0,0,0,'Gromtor, Son of Oronok - On Reached WP17 - Set Unit Flags'),
(21687, 0, 3 ,0, 61,  0, 100, 0, 0,0,0,0,8,2,0,0,0,0,0,1,0,0,0,0,0,0,0,'Gromtor, Son of Oronok - On Reached WP17 - Set Aggresive'),
(21687, 0, 4 ,0, 38,  0, 100, 0, 2,2,0,0,49,0,0,0,0,0,0,19,21181,0,0,0,0,0,0,'Gromtor, Son of Oronok - On Data Set - Start Attack'),
(21687, 0, 5 ,0, 4,  0, 100, 0, 0,0,0,0,11,31403,0,0,0,0,0,1,0,0,0,0,0,0,0,'Gromtor, Son of Oronok - On Agro - Cast Battle Shout'),
(21687, 0, 6 ,0, 9,  0, 100, 0, 0,5,3000,7000,11,29426,0,0,0,0,0,1,0,0,0,0,0,0,0,'Gromtor, Son of Oronok - On Range - Cast Heroic Strike'),
(21687, 0, 7 ,0, 9,  0, 100, 0, 0,5,8000,13000,11,12169,0,0,0,0,0,1,0,0,0,0,0,0,0,'Gromtor, Son of Oronok - On Range - Cast Shield Block'),
(21687, 0, 8 ,0, 9,  0, 100, 0, 0,5,18000,23000,11,15062,0,0,0,0,0,1,0,0,0,0,0,0,0,'Gromtor, Son of Oronok - On Range - Cast Shield Wall'),
(21687, 0, 9 ,0, 0,  0, 100, 0, 0,5000,5000,8000,11,26281,0,0,0,0,0,2,0,0,0,0,0,0,0,'Gromtor, Son of Oronok - IC - Cast Taunt'),
(21687, 0, 10 ,0, 2,  0, 100, 0, 0,40,5000,8000,45,4,4,0,0,0,0,19,21685,0,0,0,0,0,0,'Gromtor, Son of Oronok - On Less than 40% HP - Set Data Oronok Torn-heart'),


(21310, 0, 3 ,0, 54,  0, 100, 0, 0,0,0,0,80,2131000,2,0,0,0,0,1,0,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - On Spawn - Run Script'),
(2131000, 9, 1 ,0, 0,  0, 100, 0, 0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Say Line 1'),
(2131000, 9, 2 ,0, 0,  0, 100, 0, 0,0,0,0,45,3,3,0,0,0,0,19,17008,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Set Data 3 3 on Gul''Dan'),
(2131000, 9, 3 ,0, 0,  0, 100, 0, 3000,3000,0,0,1,0,0,0,0,0,0,19,17008,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Say Line 1 on Gul''Dan'),
(2131000, 9, 4 ,0, 0,  0, 100, 0, 6000,6000,0,0,45,4,4,0,0,0,0,19,17008,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Set Data 4 4 on Gul''Dan'),
(2131000, 9, 5 ,0, 0,  0, 100, 0, 1000,1000,0,0,45,1,1,0,0,0,0,19,17008,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Set Data 1 1 on Gul''Dan'),
(2131000, 9, 6 ,0, 0,  0, 100, 0, 0,0,0,0,1,1,0,0,0,0,0,19,17008,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Say Line 2 on Gul''Dan'),
(2131000, 9, 7 ,0, 0,  0, 100, 0, 0,0,0,0,45,1,1,0,0,0,0,19,21052,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Set Data 1 1 on Camera Shaker - Altar of Damnation'),
(2131000, 9, 8 ,0, 0,  0, 100, 0, 3000,3000,0,0,1,2,0,0,0,0,0,19,17008,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Say Line 3 on Gul''Dan'),
(2131000, 9, 9 ,0, 0,  0, 100, 0, 4000,4000,0,0,12,21181,2,600000,0,0,0,1,0,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Summon Cyrukh the Firelord <The Dirge of Karabor>'),
(2131000, 9, 10 ,0, 0,  0, 100, 0, 0,0,0,0,1,3,0,0,0,0,0,19,17008,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Say Line 4 on Gul''Dan'),
(2131000, 9, 11 ,0, 0,  0, 100, 0, 1000,1000,0,0,1,0,0,0,0,0,0,19,21181,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Say Line 4 on Cyrukh the Firelord <The Dirge of Karabor>'),
(2131000, 9, 12 ,0, 0,  0, 100, 0, 3000,3000,0,0,107,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Summon Group'),
(2131000, 9, 13 ,0, 0,  0, 100, 0, 3000,3000,0,0,1,0,0,0,0,0,0,19,21685,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Say Line 1 on Oronok Torn-heart'),
(2131000, 9, 14 ,0, 0,  0, 100, 0, 3000,3000,0,0,1,4,0,0,0,0,0,19,17008,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Say Line 5 on Gul''Dan'),
(2131000, 9, 15 ,0, 0,  0, 100, 0, 6000,6000,0,0,1,5,0,0,0,0,0,19,17008,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Say Line 6 on Gul''Dan'),
(2131000, 9, 16 ,0, 0,  0, 100, 0, 0,0,0,0,45,2,2,0,0,0,0,19,17008,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Set Data 2 2 on Gul''Dan'),
(2131000, 9, 17 ,0, 0,  0, 100, 0, 6000,6000,0,0,1,5,0,0,0,0,0,19,21685,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Say Line 2 on Oronok Torn-heart'),
(2131000, 9, 18 ,0, 0,  0, 100, 0, 0,0,0,0,45,1,1,0,0,0,0,19,21685,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Set Data 1 1 on Oronok Torn-heart'),
(2131000, 9, 19 ,0, 0,  0, 100, 0, 0,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Shadowmoon Valley Invisible Trigger (Tiny) - Script - Despawn');


DELETE FROM `waypoints` WHERE `entry` IN(21685,21686,21687,21181);

INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(21687, 1,-3620.271, 1862.062, 48.44324, 'Gromtor, Son of Oronok'),
(21687, 2,-3623.021, 1861.062, 48.94324, 'Gromtor, Son of Oronok'),
(21687, 3,-3626.021, 1860.062, 49.94324, 'Gromtor, Son of Oronok'),
(21687, 4,-3629.771, 1858.812, 50.94324, 'Gromtor, Son of Oronok'),
(21687, 5,-3631.521, 1858.312, 51.69324, 'Gromtor, Son of Oronok'),
(21687, 6,-3633.521, 1857.562, 52.44324, 'Gromtor, Son of Oronok'),
(21687, 7,-3634.521, 1857.312, 53.44324, 'Gromtor, Son of Oronok'),
(21687, 8,-3636.271, 1856.562, 54.19324, 'Gromtor, Son of Oronok'),
(21687, 9,-3637.271, 1856.312, 55.19324, 'Gromtor, Son of Oronok'),
(21687, 10,-3640.271, 1855.312, 55.69324, 'Gromtor, Son of Oronok'),
(21687, 11,-3643.021, 1854.562, 56.44324, 'Gromtor, Son of Oronok'),
(21687, 12,-3642.169, 1854.779, 56.43678, 'Gromtor, Son of Oronok'),
(21687, 13,-3644.919, 1854.529, 56.68678, 'Gromtor, Son of Oronok'),
(21687, 14,-3642.169, 1854.779, 56.43678, 'Gromtor, Son of Oronok'),
(21687, 15,-3644.919, 1854.529, 56.68678, 'Gromtor, Son of Oronok'),
(21687, 16,-3646.248, 1853.079, 57.05591, 'Gromtor, Son of Oronok'),
(21687, 17,-3647.998, 1852.079, 57.80591, 'Gromtor, Son of Oronok'),
(21686, 1,-3618.578, 1866.529, 48.23744, 'Borak, Son of Oronok'),
(21686, 2,-3620.311, 1865.76, 48.47595, 'Borak, Son of Oronok'),
(21686, 3,-3622.811, 1865.26, 48.97595, 'Borak, Son of Oronok'),
(21686, 4,-3624.811, 1864.51, 49.47595, 'Borak, Son of Oronok'),
(21686, 5,-3626.313, 1863.896, 50.1328, 'Borak, Son of Oronok'),
(21686, 6,-3628.313, 1863.396, 50.8828, 'Borak, Son of Oronok'),
(21686, 7,-3630.313, 1862.646, 51.3828, 'Borak, Son of Oronok'),
(21686, 8,-3632.813, 1861.896, 52.1328, 'Borak, Son of Oronok'),
(21686, 9,-3634.813, 1861.396, 52.8828, 'Borak, Son of Oronok'),
(21686, 10,-3634.81, 1861.143, 53.03374, 'Borak, Son of Oronok'),
(21686, 11,-3636.56, 1860.643, 53.78374, 'Borak, Son of Oronok'),
(21686, 12,-3639.31, 1859.893, 54.28374, 'Borak, Son of Oronok'),
(21686, 13,-3641.06, 1859.393, 55.03374, 'Borak, Son of Oronok'),
(21686, 14,-3643.06, 1858.643, 56.03374, 'Borak, Son of Oronok'),
(21686, 15,-3643.157, 1857.902, 56.33821, 'Borak, Son of Oronok'),
(21686, 16,-3644.657, 1857.152, 57.08821, 'Borak, Son of Oronok'),
(21686, 17,-3646.227, 1855.506, 57.3797, 'Borak, Son of Oronok'),
(21686, 18,-3648.227, 1853.756, 58.3797, 'Borak, Son of Oronok'),
(21685, 1,-3619.83, 1857.978, 48.17765, 'Oronok Torn-heart'),
(21685, 2,-3624.58, 1856.228, 48.67765, 'Oronok Torn-heart'),
(21685, 3,-3625.787, 1855.872, 49.38496, 'Oronok Torn-heart'),
(21685, 4,-3627.787, 1855.122, 50.13496, 'Oronok Torn-heart'),
(21685, 5,-3629.537, 1854.622, 51.13496, 'Oronok Torn-heart'),
(21685, 6,-3630.287, 1854.372, 51.63496, 'Oronok Torn-heart'),
(21685, 7,-3631.287, 1854.122, 53.13496, 'Oronok Torn-heart'),
(21685, 8,-3632.287, 1853.872, 53.88496, 'Oronok Torn-heart'),
(21685, 9,-3632.533, 1853.489, 54.04154, 'Oronok Torn-heart'),
(21685, 10,-3634.533, 1852.989, 56.29154, 'Oronok Torn-heart'),
(21685, 11,-3637.033, 1852.239, 57.79154, 'Oronok Torn-heart'),
(21685, 12,-3640.951, 1852.142, 57.46563, 'Oronok Torn-heart'),
(21181, 1,-3617.7155, 1823.1611, 39.7751, 'Cyrukh the Firelord <The Dirge of Karabor>');

DELETE FROM `creature_text` WHERE `entry` IN(21685,17008,21181,21310,21049,21739,21740);
INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`, `BroadcastTextID`) VALUES

(21685, 0, 0, 'You do not fight alone, $n! Together, we will banish this spawn of hellfire!', 14, 0, 100, 0, 0, 0, 'Oronok Torn-heart'),
(21685, 1, 0, 'We leave, then, Torlok. I have only one request...', 12, 0, 100, 1, 0, 0, 'Oronok Torn-heart'),
(21685, 2, 0, 'The Torn-heart men give their weapons to Earthmender Torlok.', 16, 0, 100, 1, 0, 0, 'Oronok Torn-heart'),
(21685, 3, 0, 'Give these to the heroes that made this possible.', 12, 0, 100, 1, 0, 0, 'Oronok Torn-heart'),
(21685, 4, 0, 'We will set the elements free of your grasp by force!', 14, 0, 100, 0, 0, 0, 'Oronok Torn-heart'),
(21685, 5, 0, 'We will fight when you are ready.', 12, 0, 100, 0, 0, 0, 'Oronok Torn-heart'),
(21685, 6, 0, 'What say the elements, Torlok? I hear only silence.', 12, 0, 100, 1, 0, 0, 'Oronok Torn-heart'),
(21685, 7, 0, 'They are redeemed! Then we have won?', 12, 0, 100, 5, 0, 0, 'Oronok Torn-heart'),
(17008, 0, 0, 'Be silent! The shattering is soon to come!', 12, 0, 100, 15, 0, 0, 'Gul''dan'),
(17008, 1, 0, 'Bear witness to the undeniable power of our dark master!', 12, 0, 100, 0, 0, 0, 'Gul''dan'),
(17008, 2, 0, 'With his gift, I shall raze this land and reform it!', 12, 0, 100, 0, 0, 0, 'Gul''dan'),
(17008, 3, 0, 'Watch! See the ground shatter before us! Watch as the energy flows! It will feed our armies...', 12, 0, 100, 0, 0, 0, 'Gul''dan'),
(17008, 4, 0, 'We will never be without power! I have secured our future! Bask in my glory!', 12, 0, 100, 0, 0, 0, 'Gul''dan'),
(17008, 5, 0, 'It... is... done...', 12, 0, 100, 0, 0, 0, 'Gul''dan'),
(21181, 0, 0, 'Cyrukh has awoken!', 14, 0, 100, 0, 0, 0, 'Cyrukh the Firelord'),
(21181, 1, 0, 'Cyrukh comes for you!', 14, 0, 100, 0, 0, 0, 'Cyrukh the Firelord'),
(21181, 1, 1, 'You will suffer eternally!', 14, 0, 100, 0, 0, 0, 'Cyrukh the Firelord'),
(21181, 1, 2, 'Those that dare play with fire will be incinerated!', 14, 0, 100, 0, 0, 0, 'Cyrukh the Firelord'),
(21181, 1, 3, 'Little creature made of flesh, your wish is granted! Death comes for you!', 14, 0, 100, 0, 0, 0, 'Cyrukh the Firelord'),
(21310, 0, 0, 'A flaming vortex takes shape.', 16, 0, 100, 0, 0, 0, 'Shadowmoon Valley Invisible Trigger (Tiny)'),
(21049, 0, 0, 'You have damned us all... We are lost.', 12, 0, 100, 20, 0, 0, 'Spirit of the Past'),
(21049, 0, 1, 'Stop! You must stop!', 12, 0, 100, 20, 0, 0, 'Spirit of the Past'),
(21049, 0, 2, 'Do not do this, Gul''dan! The elements will never forgive us!', 12, 0, 100, 20, 0, 0, 'Spirit of the Past'),
(21049, 0, 3, 'Think of our younglings, Gul''dan! You will destroy us all!', 12, 0, 100, 20, 0, 0, 'Spirit of the Past'),
(21049, 0, 4, 'We will take from the land if it refuses to give!', 12, 0, 100, 15, 0, 0, 'Spirit of the Past'),
(21049, 0, 5, 'Tear the land asunder, Gul''dan! Sever the tie!', 12, 0, 100, 15, 0, 0, 'Spirit of the Past'),
(21049, 0, 6, 'They have abandoned us! Do not forget!', 12, 0, 100, 15, 0, 0, 'Spirit of the Past'),
(21049, 0, 7, 'Do not do this, Gul''dan! The elements will never forgive us!', 12, 0, 100, 15, 0, 0, 'Spirit of the Past'),
(21740, 0, 0, 'Yes... Well enough for the elements that are here, but the cipher is known to another... The spirits of fire are in turmoil... If this force is not stopped, the world where these mortals came from will cease.', 12, 0, 100, 0, 0, 0, 'Redeemed Spirit of Fire'),
(21739, 0, 0, 'Farewell, mortals... The earthmender knows what fire feels...', 12, 0, 100, 0, 0, 0, 'Redeemed Spirit of Earth'),
(21739, 1, 0, 'It is now as it should be, shaman. You have done well.', 12, 0, 100, 0, 0, 0, 'Redeemed Spirit of Earth');

DELETE FROM `creature_summon_groups` WHERE `summonerId`IN(21310);
INSERT INTO `creature_summon_groups` (`summonerId`, `summonerType`, `groupId`, `entry`, `position_x`, `position_y`, `position_z`, `orientation`, `summonType`, `summonTime`) VALUES 
(21310, 0, 0, 21685, -3600.319, 1898.602, 47.36539, 4.921828, 1, 600000),
(21310, 0, 0, 21686, -3603.865, 1900.854, 47.36539, 4.931085, 1, 600000),
(21310, 0, 0, 21687, -3597.99, 1902.118, 47.3654, 4.848677, 1, 600000);

delete from event_scripts where id=13961;
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `dataint`, `x`, `y`, `z`, `o`) VALUES 
(13961, 3, 10, 21310, 0, 0, -3587.79, 1805.4, 39.66, 1.65);

The above fails to summon on just summoned when the creature to run script is summoned by a event script

If you temp spawn (.npc add temp) the creature with the script it starts
if the creature is summoned by sai it runs
If creature is summoned by event_scripts on just summoned does not trigger

The above script is not complete as on first test found event would not trigger

I have already pushed gossip for this as that was missing also,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions