Add files via upload

This commit is contained in:
Dinkledork
2023-03-21 02:25:28 -06:00
committed by GitHub
parent ae862cfc54
commit 700c67a93f
50 changed files with 2044 additions and 0 deletions

36
Westfall/FOEREAPER.lua Normal file
View File

@@ -0,0 +1,36 @@
local FoeReaper = {};
local function CastTrample(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 5568, true)
end
local function CastKnockback(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 49398, true)
end
function FoeReaper.OnEnterCombat(event, creature, target)
creature:SendUnitYell("You like me, you really like me!", 0)
creature:RegisterEvent(CastTrample, 5000, 0)
creature:RegisterEvent(CastKnockback, 15000, 0)
end
function FoeReaper.OnLeaveCombat(event, creature)
creature:SendUnitYell("Haha, you lose!", 0)
creature:RemoveEvents()
end
function FoeReaper.OnDied(event, creature, killer)
if(killer:GetObjectType() == "Player") then
killer:SendBroadcastMessage("You killed " ..creature:GetName().."!")
end
creature:RemoveEvents()
end
function FoeReaper.OnSpawn(event, creature)
creature:SendUnitYell("I'm baaaaaaaaack!!!", 0)
end
RegisterCreatureEvent(900003, 1, FoeReaper.OnEnterCombat)
RegisterCreatureEvent(900003, 2, FoeReaper.OnLeaveCombat)
RegisterCreatureEvent(900003, 4, FoeReaper.OnDied)
RegisterCreatureEvent(900003, 5, FoeReaper.OnSpawn)