Code:
function VarousCloudstrider_OnCombat(pUnit, Event)
pUnit:PlaySoundToSet(13649)
pUnit:SendChatMessage(14, 0, "There will be no mercy!")
pUnit:RegisterEvent("VarousCloudstrider_ThunderClap", 12000, 0)
pUnit:RegisterEvent("VarousCloudstrider_AmplifyMagic", 6000, 0)
pUnit:RegisterEvent("VarousCloudstrider_EnergizeCores", 16000, 0)
pUnit:RegisterEvent("VarousCloudstrider_Phase2",1000,0)
pUnit:RegisterEvent("VarousCloudstrider_Phase3",1000,0)
pUnit:RegisterEvent("VarousCloudstrider_Phase4",1000,0)
pUnit:RegisterEvent("VarousCloudstrider_Phase4",1000,0)
end
function VarousCloudstrider_ThunderClap(pUnit, Event)
pUnit:CastSpell(58975)
end
function VarousCloudstrider_AmplifyMagic(pUnit, Event)
pUnit:FullCastSpellOnTarget(59371, pUnit:GetRandomPlayer(0))
end
function VarousCloudstrider_EnergizeCores(pUnit, Event)
pUnit:CastSpell(50785, pUnit:GetRandomPlayer(0))
end
function AzureRingCaptian_Spawn(pUnit, Event)
pUnit:SpawnCreature(28236, 1073.96, 1049.11, 606.02, 0.03, 22, 30000)
end
function VarousCloudstrider_BroodPower(pUnit, Event)
pUnit:CastSpell(22642)
end
function VarousCloudstrider_ArcaneBlast(pUnit, Event)
pUnit:FullCastSpellOnTarget(37126, pUnit:GetRandomPlayer(0))
end
function VarousCloudstrider_ArcaneDischarge(pUnit, Event)
pUnit:CastSpell(31472)
end
function VarousCloudstrider_ArcaneBarrier(pUnit, Event)
pUnit:CastSpell(36481)
end
function AzureRingCaptain2_Spawn2(pUnit, Event)
pUnit:SpawnCreature(28236, 1123.51, 1021.58, 606.02, 2.14, 22, 20000)
end
function AzureRingCaptain3_Spawn3(pUnit, Event)
pUnit:SpawnCreature(28236, 1073.96, 1049.11, 606.02, 0.03, 22, 20000)
end
function AzureRingCaptain4_Spawn4(pUnit, Event)
pUnit:SpawnCreature(28236, 1121.07, 1080.54, 606.02, 4.26, 22, 20000)
end
function VarousCloudstrider_CrystalPrison(pUnit, Event)
pUnit:FullCastSpellOnTarget(32361, pUnit:GetRandomPlayer(0))
end
function VarousCloudstrider_Enlarge(pUnit, Event)
pUnit:CastSpell(25462)
end
function VarousCloudstrider_Phase2(pUnit, Event)
if pUnit:GetHealthPct() < 75 then
pUnit:RemoveEvents();
pUnit:PlaySoundToSet(13650)
pUnit:SendChatMessage(14, 0, "Blast them! Destroy them!")
pUnit:FullCastSpell(0)
pUnit:RegisterEvent("AzureRingCaptian_Spawn",1000,1)
pUnit:RegisterEvent("VarousCloudstrider_BroodPower", 9000, 0)
pUnit:RegisterEvent("VarousCloudstrider_ArcaneBlast", 13000, 0)
end
end
function VarousCloudstrider_Phase3(pUnit, Event)
if pUnit:GetHealthPct() < 50 then
pUnit:RemoveEvents();
pUnit:PlaySoundToSet(13652)
pUnit:SendChatMessage(14, 0, "Strike now! Obliterate them!")
pUnit:FullCastSpell(0)
pUnit:SetModel(23487)
pUnit:RegisterEvent("VarousCloudstrider_ArcaneDischarge", 12000, 0)
pUnit:RegisterEvent("VarousCloudstrider_ArcaneBarrier", 10000, 0)
end
end
function VarousCloudstrider_Phase4(pUnit, Event)
if pUnit:GetHealthPct() < 35 then
pUnit:RemoveEvents();
pUnit:PlaySoundToSet(13651)
pUnit:SendChatMessage(14, 0, "Take no prisoners! Attack!")
pUnit:FullCastSpell(0)
pUnit:SetModel(27033)
pUnit:RegisterEvent("AzureRingCaptian2_Spawn2",1000,1)
pUnit:RegisterEvent("AzureRingCaptian3_Spawn3",1000,1)
pUnit:RegisterEvent("AzureRingCaptian4_Spawn4",1000,1)
pUnit:RegisterEvent("VarousCloudstrider_Enlarge", 60000, 0)
pUnit:RegisterEvent("VarousCloudstrider_CrystalPrison", 15000, 0)
end
end
function VarousCloudstrider_OnLeaveCombat(pUnit, Event)
pUnit:PlaySoundToSet(13654)
pUnit:SendChatMessage(14, 0, "The Oculus is ours!")
pUnit:RemoveEvents()
pUnit:SetModel (27033)
end
function VarousCloudstrider_OnDied(pUnit, Event)
pUnit:PlaySoundToSet(13655)
pUnit:SendChatMessage(14, 0, "They are... too strong... under estimated... aargh.. fortitude...")
pUnit:RemoveEvents()
end
function VarousCloudstrider_OnKilledTarget(pUnit, Event)
pUnit:PlaySoundToSet(13653)
pUnit:SendChatMessage(14, 0, "You were warned...")
end
RegisterUnitEvent(145005, 1, "VarousCloudstrider_OnCombat")
RegisterUnitEvent(145005, 2, "VarousCloudstrider_OnLeaveCombat")
RegisterUnitEvent(145005, 3, "VarousCloudstrider_OnKilledTarget")
RegisterUnitEvent(145005, 4, "VarousCloudstrider_OnDied")