Code:
function SWP_Atk(pUnit)
pUnit:FullCastSpellOnTarget(23952, pUnit:GetRandomPlayer(0))
end
function Smite_Atk(pUnit)
pUnit:FullCastSpellOnTarget(20696, pUnit:GetRandomPlayer(0))
end
function HV_Atk(pUnit)
pUnit:CastSpell(38838)
end
function Summon_KL(pUnit, Event)
if pUnit:GetHealthPct() < 15 then
pUnit:RemoveEvents();
x = pUnit:GetX()
y = pUnit:GetY()
z = pUnit:GetZ()
o = pUnit:GetO()
pUnit:SpawnCreature(74004,x,y,z,o,14,0)
pUnit:SpawnCreature(74005,x,y,z,o,14,0)
pUnit:CastSpell(38838)
pUnit:SendChatMessage(12, 0, "Kuz, Luz, Dinner Time!!")
end
end
function Razarch_OnCombat(pUnit, Event)
pUnit:SendChatMessage(12, 0, "What is this? You wish to claim my Key? Then you will have to pry it from my cold dead fingers!")
pUnit:RegisterEvent("SWP_Atk",7000, 0)
pUnit:RegisterEvent("Smite_Atk",12000, 0)
pUnit:RegisterEvent("HV_Atk",15000, 0)
pUnit:RegisterEvent("Summon_KL"1000, 0)
pUnit:CastSpell(33147)
end
function Razarch_OnLeave(pUnit, Event)
pUnit:RemoveEvents();
end
RegisterUnitEvent(74002, 1, "Razarch_OnCombat")
RegisterUnitEvent(74002, 2, "Razarch_OnLeave")
i modded it a little bit from when it was to try and fix it, but overall it just isnt working he wont initialize the OnCombat part right now, whenever i delete the summon phase of the fight everything works again.