Add files via upload

This commit is contained in:
Dinkledork
2023-02-08 11:34:43 -07:00
committed by GitHub
parent 973cb1afaf
commit 8a0525c464
15 changed files with 1422 additions and 109 deletions

31
Lithe-Stalker.lua Normal file
View File

@@ -0,0 +1,31 @@
local LitheStalker = {};
local function CastWhirlingTip(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 24048, true)
end
local function CastSweepingSlam(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 53399, true)
end
function LitheStalker.OnEnterCombat(event, creature, target)
creature:SendUnitYell("The Master will have your guts!", 0)
creature:RegisterEvent(CastWhirlingTip, 5000, 0)
creature:RegisterEvent(CastSweepingSlam, 10000, 0)
end
function LitheStalker.OnLeaveCombat(event, creature)
creature:SendUnitSay("Mmmm....", 0)
creature:RemoveEvents()
end
function LitheStalker.OnDied(event, creature, killer)
if(killer:GetObjectType() == "Player") then
killer:SendBroadcastMessage("You killed " ..creature:GetName().."!")
end
creature:RemoveEvents()
end
RegisterCreatureEvent(400015, 1, LitheStalker.OnEnterCombat)
RegisterCreatureEvent(400015, 2, LitheStalker.OnLeaveCombat)
RegisterCreatureEvent(400015, 4, LitheStalker.OnDied)