Code:
function Shimtan_OnCombat(Unit, Event)
Unit:SendChatMessage(12,0, "Prepare to feel the Wrath of the Dead!")
Unit:RegisterEvent("Spell1", 15000,0) -- every 15 seconds
Unit:RegisterEvent("Phase1", 1000,0) -- every second
end -- End had capital E, this is what the error on line 7 was going on about
function Shimtan_OnDeath(Unit, Event)
Unit:SendChatMessage(14,0,"Oblivion Awaits Me...")
Unit:RemoveEvents() -- Stop all registered
end
function Shimtan_OnKill(Unit,Event)
Unit:SendChatMessage(14,0,"Another joins my Legion!")
end
function Spell1(Unit)
Unit:FullCastSpellOnTarget(75245, Unit:GetMainTank()) --ShadowBurn--
end
function Phase1(Unit)
if Unit:GetHealthPct() <= 80
Unit:RemoveEvents()
Unit:RegisterEvent("Phase2", 1000,0)
Unit:SendChatMessage(12,0, "Witness My True Power!")
Unit:CastSpell(52262) --Enraged and Cornered--
Unit:CastSpellOnTarget(69200,Unit:GetMainTank())
end
end
function Phase2(Unit)
if Unit:GetHealthPct() <= 50 then
Unit:RemoveEvents()
Unit:RegisterEvent("Phase3",1000,0)
Unit:SendChatMessage(14,0,"RISE MY MINION!")
Unit:RegisterEvent("Spell2",15000,0) -- Missed "", 15 seconds
end
end
function Phase3(Unit)
if Unit:GetHealthPct() <= 15 then
Unit:RemoveEvents()
Unit:SendChatMessage(14,0,"I WILL NOT BE FINISHED BY THE LIKES OF YOU!!
RISE MINIONS")
Unit:RegisterEVent(Spell3,1500000, 5)
end
end
function Spell3(Unit)
Unit:FullCastSpell(7035) -- Missed a ) --summon--
end
function spell2(Unit)
Unit:CastSpellOnTarget(56362,Unit:GetMainTank()) --Deathcoil--
-- You had too many ends here
end
RegisterUnitEvent(100001,1,"Shimtan_OnCombat")
RegisterUnitEVent(100001,2,"Shimtan_OnLeave")
RegisterUnitEvent(100001,3,"Shimtan_OnKill")
RegisterUnitEVent(100001,4,"Shimtan_OnDeath")
Should work, added all codes on things I saw wrong through a skim read. Added comments on most the things I corrected.
Please use [-code][-/code] boxes in future (remove -).