Code:
function Boss_Spell1(Unit)
Unit:CastSpell(Spell Id Here!)
end
function Boss_Spell2(Unit)
Unit:CastSpell(Spell Id Here!)
end
function Boss_Spell3(Unit)
Unit:CastSpell(Spell Id Here!)
end
function Boss_Spell4(Unit)
Unit:CastSpell(Spell Id Here!)
end
function Boss_Spell5(Unit)
Unit:CastSpell(Spell Id Here!)
end
function Boss_Phase1(Unit, event)
if Unit:GetHealthPct() < 95 then
Unit:RemoveEvents()
Unit:SendChatMessage(11, 0, "What You Want Him To Say")
Unit:RegisterEvent("Boss_Spell(Number Here)",8000, 0)
Unit:RegisterEvent("Boss_Phase2",1000, 0)
end
end
function Boss_Phase2(Unit, event)
if Unit:GetHealthPct() < 75 then
Unit:RemoveEvents()
Unit:SetScale(Scale Here!)
Unit:RegisterEvent("Boss_Spell(Number Here)",8000, 5)
Unit:RegisterEvent("Boss_Phase3",1000, 0)
end
end
function Boss_Phase3(Unit, event)
if Unit:GetHealthPct() < 50 then
Unit:RemoveEvents()
Unit:SetScale(Scale here)
Unit:SetModel(Model Id Here!)
Unit:CastSpell(Spell id Here!)
Unit:SendChatMessage(12, 0, "What you want him to say.")
Unit:RegisterEvent("Boss_Phase4",1000, 0)
end
end
function Boss_Phase4(Unit, event)
if Unit:GetHealthPct() < 50 then
Unit:RemoveEvents()
Unit:SetScale(Scale here)
Unit:SetModel(Model Id Here!)
Unit:CastSpell(Spell id Here!)
Unit:SendChatMessage(12, 0, "What you want him to say.")
Unit:RegisterEvent("Boss_Phase5",1000, 0)
end
end
function Boss_Phase5(Unit, event)
if Unit:GetHealthPct() < 50 then
Unit:RemoveEvents()
Unit:SetScale(Scale here)
Unit:SetModel(Model Id Here!)
Unit:CastSpell(Spell id Here!)
Unit:SendChatMessage(12, 0, "What you want him to say when hes about to die.")
Unit:RegisterEvent("Boss_Phase5",1000, 0)
end
end
function God_OnCombat(Unit, event)
Unit:SendChatMessage(11, 0, "You've Come To Kill Me Ha!")
Unit:RegisterEvent("Boss_Phase1",1000, 0)
Unit:RegisterEvent("Boss_Phase2",1000, 0)
Unit:RegisterEvent("Boss_Phase3",1000, 0)
Unit:RegisterEvent("Boss_Phase4",1000, 0)
Unit:RegisterEvent("Boss_Phase5",1000, 0)
end
function God_OnLeaveCombat(Unit, event)
Unit:RemoveEvents()
Unit:SendChatMessage(11, 0, "What you want to say when leave combat")
Unit:SetScale(1)
Unit:SetModel(17314)
end
function God_OnKilledTarget(Unit)
Unit:SendChatMessage(11, 0, "What you want to say When he Kills someone!!")
Unit:CastSpell(13048)
end
function God_Death(Unit)
Unit:SendChatMessage(12, 0, "what you want him to say when he dies.")
Unit:RemoveEvents()
Unit:SetScale(1)
Unit:SetModel(17314)
end
RegisterUnitEvent(Id of Boss, 1, "God_OnCombat")
RegisterUnitEvent(Id of Boss, 2, "God_OnLeaveCombat")
RegisterUnitEvent(Id of Boss, 3, "God_OnKilledTarget")
RegisterUnitEvent(Id of Boss, 4, "God_Death")