Code:
function phase_1(pUnit, Event)
if pUnit:GetHealthPct() < 99 then
pUnit:RemoveEvents();
pUnit:SendChatMessage(14, 0, "Chaos!")
pUnit:FullCastSpellOnTarget(47248,Unit:GetMainTank())
pUnit:PlaySoundToSet(12505)
pUnit:RegisterEvent("phase_2",1000, 0)
end
end
function phase_2(pUnit, Event)
if pUnit:GetHealthPct() < 98 then
pUnit:RemoveEvents();
pUnit:SendChatMessage(14, 0, "Destruction!")
pUnit:FullCastSpellOnTarget(39023,Unit:GetMainTank())
pUnit:PlaySoundToSet(12506)
pUnit:RegisterEvent("phase_3",1000, 0)
end
end
function phase_3(pUnit, Event)
if pUnit:GetHealthPct() < 97 then
pUnit:RemoveEvents();
pUnit:SendChatMessage(14, 0, "Oblivion!")
pUnit:PlaySoundToSet(12507)
pUnit:FullCastSpellOnTarget(28627,Unit:GetMainTank())
pUnit:FullCastSpellOnTarget(38533,Unit:GetMainTank())
pUnit:FullCastSpellOnTarget(38533,Unit:GetMainTank())
pUnit:FullCastSpellOnTarget(38533,Unit:GetMainTank())
pUnit:RegisterEvent("phase_4",1000, 0)
end
end
function phase_4(pUnit, Event)
if pUnit:GetHealthPct() < 50 then
pUnit:RemoveEvents();
pUnit:SendChatMessage(14, 0, "I will not be denied! This world shall fall!")
pUnit:PlaySoundToSet(12508)
pUnit:FullCastSpellOnTarget(45664,Unit:GetMainTank())
pUnit:RegisterEvent("phase_5",1000, 0)
end
end
function phase_5(pUnit, Event)
if pUnit:GetHealthPct() < 20 then
pUnit:RemoveEvents();
pUnit:SendChatMessage(14, 0, "Do not harbor false hope. You cannot win!")
pUnit:PlaySoundToSet(12509)
pUnit:FullCastSpellOnTarget(40343,Unit:GetMainTank())
pUnit:FullCastSpellOnTarget(48441,Unit:GetMainTank())
pUnit:FullCastSpellOnTarget(512,Unit:GetMainTank())
pUnit:FullCastSpellOnTarget(25442,Unit:GetMainTank())
pUnit:FullCastSpellOnTarget(17668,Unit:GetMainTank())
pUnit:FullCastSpellOnTarget(40876,Unit:GetMainTank())
pUnit:RegisterEvent("phase_6",1000, 0)
end
end
function phase_6(pUnit, Event)
if pUnit:GetHealthPct() < 01 then
pUnit:RemoveEvents();
pUnit:SendChatMessage(14, 0, "Ragh! The powers of the Sunwell turn against me! What have you done? What have you done?!")
pUnit:PlaySoundToSet(12510)
pUnit:FullCastSpellOnTarget(44998,Unit:GetMainTank())
pUnit:RegisterEvent("phase_7",1000, 0)
end
end
function phase_7(pUnit, Event)
if pUnit:GetHealthPct() < 100 then
pUnit:RemoveEvents();
pUnit:CastSpell(46474)
end
end
function boss_start(pUnit, Event)
pUnit:RegisterEvent("phase_1",1000, 0)
end
function boss_OnKill(pUnit, Event)
pUnit:SendChatMessage(14, 0, "Another step towards destruction!")
pUnit:PlaySoundToSet(12501)
pUnit:CastSpell(31972)
end
RegisterUnitEvent(25320, 1, "boss_start")
RegisterUnitEvent(25320, 3, "boss_OnKill")
SQL Code
Code:
Replace into `creature_names`(`entry`,`name`,`subname`,`info_str`,`Flags1`,`type`,`family`,`rank`,`unk4`,`spelldataid`,`male_displayid`,`female_displayid`,`male_displayid2`,`female_displayid2`,`unknown_float1`,`unknown_float2`,`civilian`,`leader`) values (25320,'Kil\'Jaeden','TheDeceiver','',0,3,0,3,0,0,23200,0,0,0,1647,500,0,0);
Replace into `creature_proto`(`entry`,`minlevel`,`maxlevel`,`faction`,`minhealth`,`maxhealth`,`mana`,`scale`,`npcflags`,`attacktime`,`attacktype`,`mindamage`,`maxdamage`,`rangedattacktime`,`rangedmindamage`,`rangedmaxdamage`,`mountdisplayid`,`equipmodel1`,`equipinfo1`,`equipslot1`,`equipmodel2`,`equipinfo2`,`equipslot2`,`equipmodel3`,`equipinfo3`,`equipslot3`,`respawntime`,`armor`,`resistance1`,`resistance2`,`resistance3`,`resistance4`,`resistance5`,`resistance6`,`combat_reach`,`bounding_radius`,`auras`,`boss`,`money`,`invisibility_type`,`death_state`,`walk_speed`,`run_speed`,`fly_speed`,`extra_a9_flags`) values (25320,73,73,1771,4534309,4534309,300000,1,0,2000,10000,1000,3000,0,0,0,0,0,0,0,0,0,0,0,0,0,0001,20,0,0,0,0,0,0,1,0,'',1,500,0,0,2.5,8,14,0);