Code:
function Warzor_phase1(pUnit, Event)
if pUnit:GetHealthPct() < 95 then
pUnit:RemoveEvents();
pUnit:SetModel(20295)
pUnit:SetScale(0.6)
pUnit:FullCastSpell(32372)
pUnit:FullCastSpell(32372)
pUnit:RegisterEvent("Warzor_phase19",1000, 0)
pUnit:RegisterEvent("Warzor_Cyclone",10000, 0)
pUnit:RegisterEvent("Warzor_Crystal",6500, 0)
end
end
function Warzor_Cyclone(pUnit, Event)
local plr = pUnit:GetMainTank()
if (plr ~= nil) then
pUnit:FullCastSpellOnTarget(42495, plr)
end
end
function Warzor_Crystal(pUnit, Event)
local plr = pUnit:GetMainTank()
if (plr ~= nil) then
pUnit:FullCastSpellOnTarget(29765, plr)
end
end
function Warzor_phase19(pUnit, Event)
if pUnit:GetHealthPct() < 70 then
pUnit:RemoveEvents();
pUnit:SetModel(19951)
pUnit:SetScale(1.1)
pUnit:CastSpell(41117)
pUnit:CastSpell(34522)
pUnit:CastSpell(34522)
pUnit:RegisterEvent("Warzor_Darkstrike",6500, 0)
pUnit:RegisterEvent("Warzor_Darkdot",9000, 0)
pUnit:RegisterEvent("Warzor_phase20",1000, 0)
end
end
function Warzor_Darkstrike(pUnit, Event)
local plr = pUnit:GetMainTank()
if (plr ~= nil) then
pUnit:FullCastSpellOnTarget(19777, plr)
end
end
function Warzor_Darkdot(pUnit, Event)
local plr = pUnit:GetMainTank()
if (plr ~= nil) then
pUnit:FullCastSpellOnTarget(45271, plr)
end
end
function Warzor_phase20(pUnit, Event)
if pUnit:GetHealthPct() < 50 then
pUnit:RemoveEvents();
pUnit:SetModel(7871)
pUnit:SetScale(2)
pUnit:FullCastSpell(17431)
pUnit:FullCastSpell(17431)
pUnit:RegisterEvent("Warzor_Mortalarmor",10000, 0)
pUnit:RegisterEvent("Warzor_Whirlwind",6000, 0)
pUnit:RegisterEvent("Warzor_Rend",14000, 0)
pUnit:RegisterEvent("Warzor_phase21",1000, 0)
end
end
function Warzor_Mortalarmor(pUnit, Event)
local plr = pUnit:GetMainTank()
if (plr ~= nil) then
pUnit:FullCastSpellOnTarget(43529, plr)
end
end
function Warzor_Whirlwind(pUnit, Event)
pUnit:FullCastSpell(40219)
end
function Warzor_Rend(pUnit, Event)
local plr = pUnit:GetMainTank()
if (plr ~= nil) then
pUnit:FullCastSpell(36991, plr)
pUnit:FullCastSpell(36991, plr)
pUnit:FullCastSpell(36991, plr)
pUnit:FullCastSpell(36991, plr)
end
end
function Warzor_phase21(pUnit, Event)
if pUnit:GetHealthPct() < 20 then
pUnit:RemoveEvents();
pUnit:SetModel(20282)
pUnit:SetScale(0.6)
pUnit:FullCastSpell(23971)
pUnit:FullCastSpell(15711)
pUnit:FullCastSpell(15711)
pUnit:RegisterEvent("Warzor_Engulflames",8000, 0)
pUnit:RegisterEvent("Warzor_Flameblast",12000, 0)
pUnit:RegisterEvent("Warzor_Flamebuffet",19500, 0)
pUnit:RegisterEvent("Warzor_phase22",1000, 0)
end
end
function Warzor_Engulflames(pUnit, Event)
local plr = pUnit:GetMainTank()
if (plr ~= nil) then
pUnit:FullCastSpellOnTarget(20019, plr)
end
end
function Warzor_Flameblast(pUnit, Event)
pUnit:FullCastSpell(40631)
end
function Warzor_Flamebuffet(pUnit, Event)
local plr = pUnit:GetMainTank()
if (plr ~= nil) then
pUnit:FullCastSpell(41596)
end
end
function Warzor_phase22(pUnit, Event)
if pUnit:GetHealthPct() < 5 then
pUnit:SetModel(16257)
pUnit:RemoveEvents();
pUnit:RegisterEvent("Warzor_start",1000, 0)
end
end
function Warzor_start(pUnit, Event)
pUnit:RegisterEvent("Warzor_phase1",1000, 0)
end
RegisterUnitEvent(16548, 1, "Warzor_start")
Run this query to fix the adds
Code:
UPDATE `creature_names` SET `male_displayid`='9449' WHERE (`entry`='9779')
UPDATE `creature_proto` SET `minlevel`='70',`maxlevel`='70',`minhealth`='15000',`maxhealth`='15000',`mindamage`='500',`maxdamage`='589',`respawntime`='0',`armor`='6000',`combat_reach`='5',`bounding_radius`='1',`auras`='0',`run_speed`='10' WHERE (`entry`='18430')
UPDATE `creature_proto` SET `minlevel`='70',`maxlevel`='70',`minhealth`='15000',`maxhealth`='15000',`mana`='10000',`scale`='1.2',`npcflags`='0',`mindamage`='500',`maxdamage`='589',`armor`='5000',`combat_reach`='5',`bounding_radius`='1',`auras`='0',`run_speed`='10' WHERE (`entry`='19599')
UPDATE `creature_proto` SET `minlevel`='70',`maxlevel`='70',`minhealth`='15000',`maxhealth`='15000',`mindamage`='500',`maxdamage`='589',`armor`='5000',`combat_reach`='5',`bounding_radius`='1',`run_speed`='10' WHERE (`entry`='15537')
UPDATE `creature_proto` SET `minlevel`='70',`maxlevel`='70',`minhealth`='15000',`maxhealth`='15000',`mana`='10000',`mindamage`='500',`maxdamage`='589',`armor`='5000',`run_speed`='10' WHERE (`entry`='9779')