From 973cb1afaf19aec98f73aa8685225d1ddeaa997c Mon Sep 17 00:00:00 2001 From: Dinkledork <118951051+Day36512@users.noreply.github.com> Date: Sun, 5 Feb 2023 01:25:47 -0700 Subject: [PATCH] Add files via upload Custom Greench boss for level 60 players. WIP. --- CustomGreench.lua | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 CustomGreench.lua diff --git a/CustomGreench.lua b/CustomGreench.lua new file mode 100644 index 0000000..db34eef --- /dev/null +++ b/CustomGreench.lua @@ -0,0 +1,34 @@ +local AbominableGreench = {} + +function AbominableGreench.OnDie(event, creature) +creature:SendUnitYell("Argh... I'll be back!", 0) +end + +function AbominableGreench.Enrage(event, delay, calls, creature) +if (creature:GetHealthPct() <= 50) then +creature:RemoveEvents() +creature:CastSpell(creature, 61369, true) +creature:RegisterEvent(AbominableGreench.FrostAttack, 4000, 0) +end +end + +function AbominableGreench.FrostAttack(event, delay, calls, creature) +local TARGET = creature:GetAITarget(1, true, 0, 45) +creature:CastSpell(TARGET, 35263, true) +end + +function AbominableGreench.OnEnterCombat(event, creature, target) +local TARGET = creature:GetAITarget(1, true, 0, 45) +creature:CastSpell(TARGET, 33547, true) +creature:SendUnitYell("You can try to stop me, but it's just a waste of time. I'm the king of Winter Veil crime!", 0) +creature:RegisterEvent(AbominableGreench.Enrage, 1000, 0) +end + +function AbominableGreench.OnLeaveCombat(event, creature) +creature:SendUnitYell("What's the matter? Don't you like my holiday spirit?", 0) +creature:RemoveEvents() +end + +RegisterCreatureEvent(13602, 1, AbominableGreench.OnEnterCombat) +RegisterCreatureEvent(13602, 2, AbominableGreench.OnLeaveCombat) +RegisterCreatureEvent(13602, 4, AbominableGreench.OnDie) \ No newline at end of file