Kreegoth
07-09-08, 09:49 PM
Just finished this up this afternoon and thought id post it if anyone wants to use it give some feedback
NPCID is 888798
Tested it on my server and it seemed to work fine.
function Naroxius_EnterCombat (pUnit, event)
pUnit:SendChatMessage(14, 0, "The blood of men who have failed in this task, it stains the earth here...")
pUnit:RegisterEvent("Naroxius_Deathstrike", 1000, 1)
pUnit:RegisterEvent("Naroxius_Asunder", 24000, 0)
pUnit:RegisterEvent("Naroxius_Direnova", 20000, 0)
pUnit:RegisterEvent("Naroxius_Phase2", 1000, 0)
end
function Naroxius_Deathstrike (pUnit, event)
pUnit:FullCastSpellOnTarget(25322, pUnit:GetClosestPlayer())
end
function Naroxius_Asunder (pUnit, event)
pUnit:CastSpell(28733)
end
function Naroxius_Direnova (pUnit, event)
pUnit:FullCastSpellOnTarget(38739, pUnit:GetMainTank())
end
function Naroxius_Phase2 (pUnit, event)
if pUnit:GetHealthPct() < 76 then
pUnit:RemoveEvents()
pUnit:SendChatMessage(14, 0, "Your Corpses will be a feast for those that hunger...")
pUnit:RegisterEvent("Naroxius_Doomslice", 50000, 0)
pUnit:RegisterEvent("Naroxius_Harbringer", 15000, 0)
pUnit:RegisterEvent("Naroxius_Defensive", 17000, 0)
pUnit:RegisterEvent("Naroxius_Phase3", 1000, 0)
end
end
function Naroxius_Doomslice (pUnit, event)
pUnit:FullCastSpellOnTarget(40481, pUnit:GetMainTank())
end
function Naroxius_Harbringer (pUnit, event)
pUnit:FullCastSpellOnTarget(36836, pUnit:GetMainTank())
end
function Naroxius_Defensive (pUnit, event)
pUnit:CastSpell(33479)
end
function Naroxius_Phase3 (pUnit, event)
if pUnit:GetHealthPct() < 49 then
pUnit:RemoveEvents()
pUnit:RegisterEvent("Naroxius_Blast", 20000, 0)
pUnit:RegisterEvent("Naroxius_Disorient", 15000, 0)
pUnit:RegisterEvent("Naroxius_Shelter", 50000, 0)
pUnit:RegisterEvent("Naroxius_Frailty", 35000, 0)
pUnit:RegisterEvent("Naroxius_Phase4", 1000, 0)
end
end
function Naroxius_Blast (pUnit, event)
pUnit:CastSpell(32907)
end
function Naroxius_Disorient (pUnit, event)
pUnit:FullCastSpellOnTarget(19369, pUnit:GetMainTank())
end
function Naroxius_Shelter (pUnit, event)
pUnit:CastSpell(36481)
end
function Naroxius_Frailty (pUnit, event)
pUnit:FullCastSpellOnTarget(19372, pUnit:GetRandomPlayer(0))
end
function Naroxius_Phase4 (pUnit, event)
if pUnit:GetHealthPct() < 20 then
pUnit:RemoveEvents()
pUnit:SendChatMessage(14, 0, "Fools! Your Defeat is Inevitable!")
pUnit:CastSpell(33130)
end
end
function Naroxius_LeaveCombat (pUnit, event)
pUnit:RemoveEvents()
end
function Naroxius_Die (pUnit, event)
pUnit:RemoveEvents()
pUnit:SendChatMessage(14, 0, "You have defeated me...For now...we shall meet again")
end
RegisterUnitEvent(888798, 1, "Naroxius_EnterCombat")
RegisterUnitEvent(888798, 2, "Naroxius_LeaveCombat")
RegisterUnitEvent(888798, 4, "Naroxius_Die")
Mobs does many forms of Attacks both physical and magical.
Does a few aoes and casts defensive spells on self.
Also does a spell that knocks all the players near him back and away( put him near a ledge:P)
NPCID is 888798
Tested it on my server and it seemed to work fine.
function Naroxius_EnterCombat (pUnit, event)
pUnit:SendChatMessage(14, 0, "The blood of men who have failed in this task, it stains the earth here...")
pUnit:RegisterEvent("Naroxius_Deathstrike", 1000, 1)
pUnit:RegisterEvent("Naroxius_Asunder", 24000, 0)
pUnit:RegisterEvent("Naroxius_Direnova", 20000, 0)
pUnit:RegisterEvent("Naroxius_Phase2", 1000, 0)
end
function Naroxius_Deathstrike (pUnit, event)
pUnit:FullCastSpellOnTarget(25322, pUnit:GetClosestPlayer())
end
function Naroxius_Asunder (pUnit, event)
pUnit:CastSpell(28733)
end
function Naroxius_Direnova (pUnit, event)
pUnit:FullCastSpellOnTarget(38739, pUnit:GetMainTank())
end
function Naroxius_Phase2 (pUnit, event)
if pUnit:GetHealthPct() < 76 then
pUnit:RemoveEvents()
pUnit:SendChatMessage(14, 0, "Your Corpses will be a feast for those that hunger...")
pUnit:RegisterEvent("Naroxius_Doomslice", 50000, 0)
pUnit:RegisterEvent("Naroxius_Harbringer", 15000, 0)
pUnit:RegisterEvent("Naroxius_Defensive", 17000, 0)
pUnit:RegisterEvent("Naroxius_Phase3", 1000, 0)
end
end
function Naroxius_Doomslice (pUnit, event)
pUnit:FullCastSpellOnTarget(40481, pUnit:GetMainTank())
end
function Naroxius_Harbringer (pUnit, event)
pUnit:FullCastSpellOnTarget(36836, pUnit:GetMainTank())
end
function Naroxius_Defensive (pUnit, event)
pUnit:CastSpell(33479)
end
function Naroxius_Phase3 (pUnit, event)
if pUnit:GetHealthPct() < 49 then
pUnit:RemoveEvents()
pUnit:RegisterEvent("Naroxius_Blast", 20000, 0)
pUnit:RegisterEvent("Naroxius_Disorient", 15000, 0)
pUnit:RegisterEvent("Naroxius_Shelter", 50000, 0)
pUnit:RegisterEvent("Naroxius_Frailty", 35000, 0)
pUnit:RegisterEvent("Naroxius_Phase4", 1000, 0)
end
end
function Naroxius_Blast (pUnit, event)
pUnit:CastSpell(32907)
end
function Naroxius_Disorient (pUnit, event)
pUnit:FullCastSpellOnTarget(19369, pUnit:GetMainTank())
end
function Naroxius_Shelter (pUnit, event)
pUnit:CastSpell(36481)
end
function Naroxius_Frailty (pUnit, event)
pUnit:FullCastSpellOnTarget(19372, pUnit:GetRandomPlayer(0))
end
function Naroxius_Phase4 (pUnit, event)
if pUnit:GetHealthPct() < 20 then
pUnit:RemoveEvents()
pUnit:SendChatMessage(14, 0, "Fools! Your Defeat is Inevitable!")
pUnit:CastSpell(33130)
end
end
function Naroxius_LeaveCombat (pUnit, event)
pUnit:RemoveEvents()
end
function Naroxius_Die (pUnit, event)
pUnit:RemoveEvents()
pUnit:SendChatMessage(14, 0, "You have defeated me...For now...we shall meet again")
end
RegisterUnitEvent(888798, 1, "Naroxius_EnterCombat")
RegisterUnitEvent(888798, 2, "Naroxius_LeaveCombat")
RegisterUnitEvent(888798, 4, "Naroxius_Die")
Mobs does many forms of Attacks both physical and magical.
Does a few aoes and casts defensive spells on self.
Also does a spell that knocks all the players near him back and away( put him near a ledge:P)