- Joined
- Feb 10, 2009
- Messages
- 344
- Reaction score
- 68
Code:
#Ingvar the Plunderer
DELETE FROM `creature_ai_scripts` WHERE `creature_id` IN ('23997', '24068', '23954');
INSERT INTO `creature_ai_scripts` ( `id`, `creature_id`, `event_type`, `event_inverse_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action1_type`, `action1_param1`, `action1_param2`, `action1_param3`, `action2_type`, `action2_param1`, `action2_param2`, `action2_param3`, `action3_type`, `action3_param1`, `action3_param2`, `action3_param3`, `comment`) VALUES
('2395401',' 23954','4','0','100','6','0','0','0','0','1','-239541','0','0','22','1','0','0','0','0','0','0','Ingvar - Aggro Yell+ Sound+ Set Phase 1'),
('2395402',' 23954','0','61','100','3','11000','11000','12000','12000','11','42705','0','0','0','0','0','0','0','0','0','0','Ingvar - Cast enrage (Phase 1)'),
('2395403',' 23954','0','61','100','5','11000','11000','12000','12000','11','59707','0','0','0','0','0','0','0','0','0','0','Ingvar - Cast enrage (Phase 1) H'),
('2395404',' 23954','0','61','100','3','15000','15000','20000','20000','11','42669','0','0','0','0','0','0','0','0','0','0','Ingvar - smash (Phase 1)'),
('2395405',' 23954','0','61','100','5','15000','15000','20000','20000','11','59706','0','0','0','0','0','0','0','0','0','0','Ingvar - smash (Phase 1)H'),
('2395406',' 23954','0','61','100','3','21000','21000','25000','25000','11','42708','0','0','0','0','0','0','0','0','0','0','Ingvar - Staggering Roar (Phase 1)'),
('2395407',' 23954','0','61','100','5','21000','21000','25000','25000','11','59708','0','0','0','0','0','0','0','0','0','0','Ingvar - Staggering Roar (Phase 1)H'),
('2395408',' 23954','0','61','100','7','5000','5000','20000','20000','11','42724','1','0','0','0','0','0','0','0','0','0','Ingvar - Cleave (Phase 1)'),
('2395409',' 23954','5','61','100','6','0','0','0','0','1','-239542','0','0','0','0','0','0','0','0','0','0','Ingvar - After Killing a Player Yell and Sound (Phase 1)'),
('2395410',' 23954','2','61','100','6','15','0','0','0','18','33685508','0','0','22','2','0','0','0','0','0','0','Ingvar - Become unattackable and switch to Phase 2'),
('2395411',' 23954','2','61','100','6','15','0','0','0','20','0','0','0','21','0','0','0','0','0','0','0','Ingvar - Become unattackable and switch to Phase 2'),
('2395412',' 23954','0','59','100','6','10','10','0','0','32','24068','0','2406801','0','0','0','0','0','0','0','0','Ingvar - summon Annhylde the Caller (Phase 2)'),
('2395413',' 23954','0','59','100','6','18000','18000','0','0','11','42510','0','0','0','0','0','0','0','0','0','0','Ingvar - ressurect light (Phase 2)'),
('2395414',' 23954','0','59','100','6','20000','20000','0','0','21','1','0','0','19','33685508','0','0','20','1','0','0','Ingvar - Start attackable (Phase 2)'),
('2395415',' 23954','0','59','100','2','20000','20000','0','0','17','66','26351','0','17','23','120015','0','1','-239543','0','0','Ingvar - Change Template and HP (Phase 2)'),
('2395416',' 23954','0','59','100','4','20000','20000','0','0','17','66','26351','0','17','23','247627','0','1','-239543','0','0','Ingvar - Change Template and HP (Phase 2)H'),
('2395417',' 23954','0','59','100','3','21000','21000','48000','48000','11','42729','0','0','0','0','0','0','0','0','0','0','Ingvar - Cast Dreadful Roar (Phase 2)'),
('2395418',' 23954','0','59','100','5','21000','21000','48000','48000','11','59734','0','0','0','0','0','0','0','0','0','0','Ingvar - Cast Dreadful Roar (Phase 2)H'),
('2395419',' 23954','0','59','100','3','36000','36000','25000','25000','11','42723','0','0','0','0','0','0','0','0','0','0','Ingvar - Cast Dark Smash (Phase 2)'),
('2395420',' 23954','0','59','100','5','36000','36000','25000','25000','11','59709','0','0','0','0','0','0','0','0','0','0','Ingvar - Cast Dark Smash (Phase 2)H'),
('2395421',' 23954','0','59','100','3','30000','30000','47000','47000','11','42730','1','0','0','0','0','0','0','0','0','0','Ingvar - Woe Strike (Phase 2)'),
('2395422',' 23954','0','59','100','5','30000','30000','47000','47000','11','59735','1','0','0','0','0','0','0','0','0','0','Ingvar - Woe Strike (Phase 2)H'),
('2395423',' 23954','0','59','100','7','40000','40000','50000','50000','12','23997','4','10000','0','0','0','0','0','0','0','0','Ingvar - Shadow Axe (Phase 2)'),
('2395424',' 23954','5','59','100','6','0','0','0','0','1','-239544','0','0','0','0','0','0','0','0','0','0','Ingvar - After Killing a Player Yell and Sound (Phase 2)'),
('2395425',' 23954','1','0','100','6','60000','60000','0','0','17','66','21953','0','24','0','0','0','0','0','0','0','Ingvar - evade'),
('2395426',' 23954','6','0','100','6','0','0','0','0','1','-239545','0','0','0','0','0','0','0','0','0','0','Ingvar sound ON DEATH'),
('2399701',' 23997','4','0','100','6','0','0','0','0','20','0','0','0','21','0','0','0','0','0','0','0','Shadow Axe - Aggro'),
('2399702',' 23997','0','0','100','7','100','100','1000','1000','11','42751','0','0','0','0','0','0','0','0','0','0','Shadow Axe - Shadow Axe'),
('2399703',' 23997','0','0','100','7','10000','10000','10100','10100','37','0','0','0','0','0','0','0','0','0','0','0','Shadow Axe - die'),
('2406801',' 24068','1','0','100','6','3000','3000','0','0','1','-240681','0','0','0','0','0','0','0','0','0','0','Annhylde the Caller - sound'),
('2406802',' 24068','1','0','100','6','0','0','0','0','20','0','0','0','21','0','0','0','18','6','0','0','Annhylde the Caller - Become unattackable');
DELETE FROM `creature_ai_summons` where id =2406801;
INSERT INTO `creature_ai_summons` (`id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`) VALUES
('2406801', '246.03', '-339.418', '207.4', '2.15', '24000');
UPDATE `creature_template` SET `ScriptName` = '' WHERE `entry` =23954;
UPDATE `creature_template` SET `unit_flags` = '33554434' ,`faction_A` = '18885',`faction_H` = '18885' WHERE `entry` =23997;
UPDATE `creature_template` SET `AIName` = 'EventAI' WHERE `entry` IN ('23997', '24068', '23954');
DELETE FROM `creature_ai_texts` WHERE `entry` IN ('-239541', '-239542', '-239543', '-239544', '-239545', '-240681');
INSERT INTO `creature_ai_texts` (`entry`, `content_default`, `sound`, `type`, `language`, `emote`, `comment`) values
('-239541','I paint my face with your blood!','13207','1','0','0','Ingvar -aggro'),
('-239542','My life for the... death god!','13214','1','0','0','Ingvar - Killing a Player'),
('-239543','I return! A second chance to carve out your skull!','13209','1','0','0','Ingvar - DEATH form'),
('-239544','Mjul orm agn gjor!','13212','1','0','0','Ingvar - Killing a Player'),
('-239545','No! I can do... better! I can...','13211','1','0','0','Ingvar DEATH'),
('-240681','Ingvar! Your pathetic failure will serve as a warning to all... you are damned! Arise and carry out the masters will!','13754','1','0','0','Annhylde the Caller');
Execute the script in your world DB!