Add files via upload

This commit is contained in:
Dinkledork
2023-03-29 14:27:51 -06:00
committed by GitHub
parent 85acd49974
commit b5a08bde3e
8 changed files with 21 additions and 24 deletions

View File

@@ -1,7 +1,7 @@
local BlightedZombie = {}
function BlightedZombie.OnSpawn(event, creature)
creature:SetMaxHealth(17720)
--creature:SetMaxHealth(17720)
creature:CastSpell(creature:GetVictim(), 17683, true)
end

View File

@@ -37,18 +37,9 @@ local function OnDied(event, creature, killer)
creature:RemoveEvents()
end
local function OnWaypointReached(event, creature)
if math.random(1, 100) <= 50 then -- 50% chance to spawn 400019
local x, y, z, o = creature:GetLocation()
local xOffset = math.random(-10, 10)
local yOffset = math.random(-10, 10)
local nx, ny, nz = x + xOffset, y + yOffset, z
creature:SpawnCreature(400119, nx, ny, nz, o, 3, 200000)
end
end
RegisterCreatureEvent(400029, 1, OnEnterCombat)
RegisterCreatureEvent(400029, 2, OnLeaveCombat)
RegisterCreatureEvent(400029, 4, OnDied)
RegisterCreatureEvent(400029, 5, OnSpawn)
RegisterCreatureEvent(400029, 6, OnWaypointReached)

View File

@@ -9,8 +9,8 @@ local function CastStun(eventId, delay, calls, creature)
end
local function OnEnterCombat(event, creature, target)
creature:RegisterEvent(CastRake, 5000, 0)
creature:RegisterEvent(CastStun, 12000, 0)
creature:RegisterEvent(CastRake, 5000, 0)
creature:RegisterEvent(CastStun, 12000, 0)
end
local function OnLeaveCombat(event, creature)

View File

@@ -13,10 +13,10 @@ creature:CastSpell(creature, 47496, true)
end
local function OnEnterCombat(event, creature, target)
creature:RegisterEvent(CastLeap, 100, 1)
creature:RegisterEvent(CastPlague, 100, 1)
creature:RegisterEvent(CastPlague, 20000, 0)
creature:RegisterEvent(CastExplode, 23000, 0)
creature:RegisterEvent(CastLeap, 100, 1)
creature:RegisterEvent(CastPlague, 100, 1)
creature:RegisterEvent(CastPlague, 20000, 0)
creature:RegisterEvent(CastExplode, 23000, 0)
end
local function OnLeaveCombat(event, creature)

View File

@@ -2,7 +2,7 @@ local ENABLED = true -- set to false to disable
local GAME_EVENT_ID = 17 -- Set the game event ID
local MAX_NPC_SPAWN = 3 -- Set the maximum number of NPCs to spawn simultaneously. Extremely high numbers will hurt performance
local ATTACK_CHANCE = 15 -- Set the likelihood of an attack here, in percent
local ATTACK_CHANCE = 10 -- Set the likelihood of an attack here, in percent
local DAZE_SPELL_ID = 100201 -- Set the spell ID for daze
local MINIMUM_LEVEL = 15 -- Set min level to be active
local EXCLUDED_MAP_ID = 530

View File

@@ -3,7 +3,7 @@ local SkeletalWarrior = {}
function SkeletalWarrior.OnSpawn(event, creature)
creature:SetMaxHealth(7720)
--creature:SetMaxHealth(7720)
creature:SetEquipmentSlots(10570, 0, 0)
creature:CastSpell(creature:GetVictim(), 17683, true)
end