//(I hope that is the comment button :|) First ever Lua script by me (Tom)
function Demon_OnCombat(Unit, Event)
Unit:SendChatMessage(14, 0, "You have chosen annialation!")
end
function Demon_OnLeaveCombat(Unit, Event)
Unit:RemoveEvents()
end
function Demon_OnKilledTarget(Unit, Event)
Unit:SendChatMessage(14, 0, "Puny, pathetic creature; you have failed to defeat me, my masters reign of terror shal continue!")
end
function Demon_OnDied(Unit, Event)
Unit:SendChatMessage(14, 0, "You may have successfully put an end to me but you shal never put an end to my master!")
Unit:SendChatMessage(14, 8, "/cough This is inpossible, how have you achived this! Master, ready your magic the reconing has come!")
Unit:RemoveEvents()
end
function Demon_OnSpawn(Unit, Event)
Unit:SetScale(2)
Unit:SendChatMessage(14, 0, "I guard the dephs of the maelstrom, second only to Deathwing himself.")
Unit:SendChatMessage(14, 0, "Enrage me, you enrage my master!")
end
function Demon_PlayerInRange(Unit, Event)
Unit:SendChatMessage(14, 0, "So you have chosen death!")
end
function Demon_Spell1(Unit, Event)
Unit:SendChatMessage(14, 0, "Prepare to DIE!")
Unit:FullCastSpellOnTarget(47838, Unit:GetClosestPlayer()
end
end
function Demon_Phase1(Unit, Event)
if Unit:GetHealthPct() <= 35 then
Unit:SendChatMessage(14, 0, "Die!.")
Unit:CastSpell(47809)
end
end
RegisterUnitEvent(10430, 1, "Demon_OnCombat")
RegisterUnitEvent(10430, 2, "Demon_OnLeaveCombat")
RegisterUnitEvent(10430, 3, "Demon_OnKilledTarget")
RegisterUnitEvent(10430, 4, "Demon_OnDied")
RegisterUnitEvent(10430, 6, "Demon_OnSpawn")
RegisterUnitEvent("Demon_Spell1", 10000, 10)
RegisterUnitEvent("Demon_Phase1", 5000, 1)
end