Ok i decided to make a new thread because the old one was filled with diffrent versions that didn't work... basically here is the problem....
My boss REFUSES to enter phase 2... He will NOT change models at ALL..... if you see anything else wrong with the script feel free to tell me and correct it. I really need help guys. Here is the script
function LordThanatos_AvatarofFlame(Unit)
Unit:CastSpell(15636)
Unit:SendChatMessage(12, 0, "YOU THINK YOU CAN KILL ME!?")
end
function LordThanatos_ShadowNova(Unit)
Unit:CastSpell(30852)
end
function LordThanatos_Frostbolt(Unit, event, miscunit, misc)
Unit:CastSpell(2847
end
function LordThanatos_Blizzard(Unit)
Unit:CastSpell(41482)
end
function LordThanatos_ShadowVolley(Unit)
Unit:CastSpell(32963)
end
function LordThanatos_Carrion(Unit)
Unit:CastSpell(34240)
end
function LordThanatos_Sleep(Unit)
Unit:CastSpellonTarget(31541)
end
function LordThanatos_Infernal(Unit)
Unit:CastSpell(31299)
end
function LordThanatos_Phase1(Unit, event)
if Unit:GetHealthPct() < 80 then
Unit:SendChatMessage(12, 0, "YOU THINK YOU CAN KILL ME!?")
Unit:SetModel(11072)
Unit:SetScale(8.1)
Unit:CastSpell(15636)
Unit:RegisterEvent("LordThanatos_AvatarofFlame",180000, 0)
Unit:RegisterEvent("LordThanatos_ShadowNova",40000, 0)
Unit:RegisterEvent("LordThanatos_Frostbolt",35000, 0)
Unit:RegisterEvent("LordThanatos_Blizzard",183000, 0)
Unit:RegisterEvent("LordThanatos_ShadowVolley",25000, 0)
Unit:RegisterEvent("LordThanatos_Phase2",1000, 0)
end
end
function LordThanatos_Phase2(Unit, event)
if Unit:GetHealthPct() < 50 then
Unit:RemoveEvents()
Unit:SendchatMessage(11, 0, "Your hopes are pathetic, YOU CAN NEVER KILL DEATH!!")
Unit:SetModel(21069)
Unit:SetScale(3)
Unit:CastSpell(41232)
Unit:RegisterEvent("LordThanatos_Carrion",15000, 0)
Unit:RegisterEvent("LordThanatos_Sleep",35000, 0)
Unit:RegisterEvent("LordThanatos_Infernal",50000, 0)
end
end
function LordThanatos_OnCombat(Unit, event)
Unit:SendChatMessage(11, 0, "What have we here!")
Unit:RegisterEvent("LordThanatos_Phase1",1000, 0)
end
function LordThanatos_OnLeaveCombat(Unit, event)
Unit:RemoveEvents()
Unit:SendChatMessage(11, 0, "MUUUAAAAHAHAHAHAHAHAHAHA!")
Unit:SetScale(
Unit:SetModel(11072)
end
function LordThanatos_OnKilledTarget(Unit)
Unit:SendChatMessage(11, 0, "You'll Serve well in my army! HAHAHA!!")
Unit:CastSpell(36981)
end
function LordThanatos_Death(Unit)
Unit:SendChatMessage(11, 0, "Death.... is only the beginning....")
Unit:RemoveEvents()
Unit:SetScale(
Unit:SetModel(11072)
end
RegisterUnitEvent(101010, 1, "LordThanatos_OnCombat")
RegisterUnitEvent(101010, 2, "LordThanatos_OnLeaveCombat")
RegisterUnitEvent(101010, 3, "LordThanatos_OnKilledTarget")
RegisterUnitEvent(101010, 4, "LordThanatos_Death")