Update SetnpclevelScourgeTrash.lua

This commit is contained in:
Dinkledork
2023-02-02 17:31:15 -07:00
committed by GitHub
parent cf4a89f16c
commit 39e82bba25

View File

@@ -16,7 +16,7 @@ local npcIds = {
-- Function to cast spell ID 28234 on the creature and mask the level up spawning visual. this was really just for an event and can be removed
local function CastSpellOnSpawn(event, creature)
-- Set the creature's level to a random value between whatever, in this case 45-50
-- Set the creature's level to a random value between whatever, in this case 25-30
local level = math.random(25, 30)
creature:SetLevel(level)
@@ -28,4 +28,4 @@ end
-- Register the function to be called on creature spawn event for each NPC ID
for _, npcId in ipairs(npcIds) do
RegisterCreatureEvent(npcId, 5, CastSpellOnSpawn)
end
end