Files
RandomScriptsforAzerothCore/quest_30018_trash_bunnies.lua
2023-03-17 09:25:31 -06:00

16 lines
547 B
Lua

local INVISIBLE_BUNNY_ENTRY = 400099
local SPELL_TO_CAST = 10001
local InvisibleBunny = {}
function InvisibleBunny.OnSpawn(event, creature)
creature:RegisterEvent(InvisibleBunny.CastSpellRandomly, math.random(5000, 12000), 0)
end
function InvisibleBunny.CastSpellRandomly(event, delay, calls, creature)
creature:CastSpell(creature, SPELL_TO_CAST, true)
creature:RegisterEvent(InvisibleBunny.CastSpellRandomly, math.random(5000, 12000), 0)
end
RegisterCreatureEvent(INVISIBLE_BUNNY_ENTRY, 5, InvisibleBunny.OnSpawn)