mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
30 lines
No EOL
716 B
Lua
30 lines
No EOL
716 B
Lua
--[[
|
|
Script Name : SpawnScripts/ThunderingSteppes/LionPrideController.lua
|
|
Script Author : LordPazuzu
|
|
Script Date : 2024.08.23 08:08:06
|
|
Script Purpose :
|
|
:
|
|
--]]
|
|
require "SpawnScripts/Generic/NPCModule"
|
|
|
|
function spawn(NPC)
|
|
local zone = GetZone(NPC)
|
|
GroupID = 1057893
|
|
|
|
SpawnGroupByID(zone, GroupID, MakeRandomInt(24,25))
|
|
AddTimer(NPC, 6000, "SpawnCheck")
|
|
end
|
|
|
|
function SpawnCheck(NPC)
|
|
local zone = GetZone(NPC)
|
|
|
|
if IsSpawnGroupAlive(zone, GroupID) == true then
|
|
AddTimer(NPC, 6000, "SpawnCheck")
|
|
else
|
|
Despawn(GetSpawnByLocationID(zone, 133794275))
|
|
end
|
|
end
|
|
|
|
function respawn(NPC)
|
|
spawn(NPC)
|
|
end |