i've been scripting a couple of days and i want to know if this is any good here it is,
and when i have my owner add the script nothing happens the boss doesnt do anything. but attack
function Grishnak_OnCombat(pUnit, Event)
pUnit:SendChatMessage(14, 0, "Your Wish is My Command")
pUnit:RegisterEvent("Grishnak_p1", 100, 0)
end
function Grishnak_OnLeaveCombat(pUnit, Event)
pUnit:RemoveEvents()
end
function Grishnak_OnKillTarget(pUnit, Event)
end
function Grishnak_OnDeath(pUnit, Event)
pUnit:RemoveEvents()
pUnit:SendChatMessage(14, 0, "Ha Ha Ha Nice Try Young One")
end
function Grishnak_10,000_Siege_Damage(pUnit, Event)
pUnit:CastSpellOnTarget(5555, pUnit:GetMainTank())
end
function Grishnak_Brewfest_-_Stun(pUnit, Event)
pUnit:CastSpellOnTarget(42435, pUnit:GetClosestPlayer())
end
function Grishnak_Mass_Polymorph(pUnit, Event)
pUnit:CastSpellOnTarget(29963, pUnit:GetRandomPlayer(4))
end
function Grishnak_p1(pUnit, Event)
if pUnit:GetHealthPct() <= 95 then
pUnit:RemoveEvents()
pUnit:RegisterEvent("Grishnak_10,000_Siege_Damage", 1, 0)
pUnit:RegisterEvent("Grishnak_p2", 100, 0)
end
end
function Grishnak_p2(pUnit, Event)
if pUnit:GetHealthPct() <= 75 then
pUnit:RemoveEvents()
pUnit:RegisterEvent("Grishnak_Brewfest_-_Stun", 15, 0)
pUnit:RegisterEvent("Grishnak_p3", 100, 0)
end
end
function Grishnak_p3(pUnit, Event)
if pUnit:GetHealthPct() <= 60 then
pUnit:RemoveEvents()
pUnit:RegisterEvent("Grishnak_Mass_Polymorph", 1, 0)
end
end
RegisterUnitEvent(995999, 1, "Grishnak_OnCombat")
RegisterUnitEvent(995999, 2, "Grishnak_OnLeaveCombat")
RegisterUnitEvent(995999, 3, "Grishnak_OnKillTarget")
RegisterUnitEvent(995999, 4, "Grishnak_OnDeath")