Add files via upload

This commit is contained in:
Dinkledork
2023-02-04 03:28:42 -07:00
committed by GitHub
parent 26e5833bdd
commit d460eaf33e
23 changed files with 1355 additions and 150 deletions

30
Trash_Earthborer.lua Normal file
View File

@@ -0,0 +1,30 @@
--[[
EmuDevs <http://emudevs.com/forum.php>
Eluna Lua Engine <https://github.com/ElunaLuaEngine/Eluna>
Eluna Scripts <https://github.com/ElunaLuaEngine/Scripts>
Eluna Wiki <http://wiki.emudevs.com/doku.php?id=eluna>
-= Script Information =-
* Script Type: Trash Mob
* Npc: Earthborer <11320>
--]]
local Earthborer = {};
function Earthborer.OnEnterCombat(event, creature, target)
creature:RegisterEvent(Earthborer.Earthborer_Acid, 6000, 0)
end
function Earthborer.Earthborer_Acid(event, delay, pCall, creature)
if (math.random(1, 100) <= 70) then
creature:CastSpell(creature:GetVictim(), 18070)
end
end
function Earthborer.Reset(event, creature)
creature:RemoveEvents()
end
RegisterCreatureEvent(11320, 1, Earthborer.OnEnterCombat)
RegisterCreatureEvent(11320, 2, Earthborer.Reset) -- OnLeaveCombat
RegisterCreatureEvent(11320, 4, Earthborer.Reset) -- OnDied