mirror of
https://github.com/araxiaonline/RandomScriptsforAzerothCore.git
synced 2026-06-13 02:22:19 -04:00
Add files via upload
This commit is contained in:
31
Westfall/Lithe-Stalker.lua
Normal file
31
Westfall/Lithe-Stalker.lua
Normal 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)
|
||||
Reference in New Issue
Block a user