-- Prophet of Akali SAI
SET @ENTRY := 29028;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,0,0,1,54,0,100,0,0,0,0,0,18,256,0,0,0,0,0,1,0,0,0,0,0,0,0,"Prophet of Akali - On Just Summoned - Set Flag Immune To Players"),
(@ENTRY,0,1,2,61,0,100,0,0,0,0,0,11,34427,0,0,0,0,0,1,0,0,0,0,0,0,0,"Prophet of Akali - On Just Summoned - Cast 'Ethereal Teleport'"),
(@ENTRY,0,2,3,61,0,100,0,0,0,0,0,64,1,0,0,0,0,0,7,0,0,0,0,0,0,0,"Prophet of Akali - On Just Summoned - Store Targetlist"),
(@ENTRY,0,3,0,61,0,100,0,0,0,0,0,80,@ENTRY*100+00,2,0,0,0,0,1,0,0,0,0,0,0,0,"Prophet of Akali - On Just Summoned - Run Script"),
(@ENTRY,0,4,0,0,1,100,0,10000,12000,14000,16000,11,53496,0,0,0,0,0,2,0,0,0,0,0,0,0,"Prophet of Akali - In Combat - Cast 'Darting Flames' (Phase 1)"),
(@ENTRY,0,5,0,0,1,100,0,16000,18000,12000,15000,11,53493,0,0,0,0,0,2,0,0,0,0,0,0,0,"Prophet of Akali - In Combat - Cast 'Incinerate' (Phase 1)"),
(@ENTRY,0,6,7,2,0,100,1,0,70,0,0,11,52982,0,0,0,0,0,1,0,0,0,0,0,0,0,"Prophet of Akali - Between 0-70% Health - Cast 'Akali's Immunity' (No Repeat)"),
(@ENTRY,0,7,8,61,0,100,0,0,70,0,0,20,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Prophet of Akali - Between 0-70% Health - Stop Attacking (No Repeat)"),
(@ENTRY,0,8,9,61,0,100,0,0,70,0,0,22,2,0,0,0,0,0,1,0,0,0,0,0,0,0,"Prophet of Akali - Between 0-70% Health - Set Event Phase 2 (No Repeat)"),
(@ENTRY,0,9,0,61,2,100,0,0,70,0,0,80,@ENTRY*100+01,2,0,0,0,0,1,0,0,0,0,0,0,0,"Prophet of Akali - Between 0-70% Health - Run Script (No Repeat)"),
(@ENTRY,0,10,11,34,4,100,0,0,1,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,0.802851,"Prophet of Akali - On Reached Point 1 - Set Orientation 0,802851 (Phase 4)"),
(@ENTRY,0,11,12,61,0,100,0,0,1,0,0,22,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Prophet of Akali - On Reached Point 1 - Set Event Phase 0 (Phase 4)"),
(@ENTRY,0,12,0,61,0,100,0,0,1,0,0,80,@ENTRY*100+02,2,0,0,0,0,1,0,0,0,0,0,0,0,"Prophet of Akali - On Reached Point 1 - Run Script (Phase 4)"),
(@ENTRY,0,13,0,1,0,100,0,15000,15000,15000,15000,19,256,0,0,0,0,0,1,0,0,0,0,0,0,0,"Prophet of Akali - Out of Combat - Remove Flag Immune To Players");
bei mir failte das jedes mal :o
naja der grund ist wohl
a) er entfernt mit jedem reset also auch bei 70%) seine immun-to-player flag, hat aber noch sein schild und will den player weiter angreifen. die entfernung mit dem reset habe ich damals eingebaut, damit man ihn auch noch nach einem wipe angreifen kann. dies wurde nun so abgeändert, dass er alle 15 sek outfight diese flag entfernt
b) die action zur phasetransition nach dem eventphase-switch (phase2) aufgerufen wird
.ser re