Code:
function Phase_1(pUnit,Event)
if pUnit: GetHealthPct() < 76 then pUnit:RemoveEvent()
pUnit:Castspell(19953)
pUnit:SendChatMessage(11,0,"ARRRG, You Shall Pay for your Incolence!!")
pUnit:RegisterEvent("Phase_2",1000,0)
end
end
function Phase_2(pUnit,Event)
if pUnit: GetHealthPct() < 51 thenpUnit:RemoveEvent()
pUnit:Castspell(19953)
pUnit:SendChatMessage(11,0,"I will crush you, all of you!")
pUnit:RegisterEvent("Phase_3",1000,0)
end
end
function Phase_3(pUnit,Event)
if pUnit: GetHealthPct() < 26 then pUnit:RemoveEvent()
pUnit:Castspell(19953)
pUnit:SendChatMessage(11,0,"You are stronger than you appear, but can you face my rage one last time!?")
end
end
function ZulRin_OnCombat(pUnit,Event)
pUnit:SendChatMessage(11,0,"Who dares intrude on Vash's Terrace, I shall make you regret comming here!")
pUnit:RegisterEvent("Phase_1",1000,0)
end
RegisterUnitEvent (75000,1,"ZulRin_OnCombat")