eq2emu-content/SpawnScripts/Freeport/spawnJeththeSpy.lua
2024-10-26 11:37:28 +00:00

34 lines
851 B
Lua
Executable file

--[[
Script Name : SpawnScripts/Freeport/spawnJeththeSpy.lua
Script Author : cynnar
Script Date : 2023.04.29 09:04:51
Script Purpose :
:
--]]
local QuellingTheRebellion = 5807
function spawn(NPC)
SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange", Spawn)
end
function respawn(NPC)
spawn(NPC)
end
function InRange(NPC, Spawn)
local zone = GetZone(Spawn)
if HasQuest(Spawn, QuellingTheRebellion) then
if GetQuestStep(Spawn, QuellingTheRebellion) == 1 then
if GetSpawnByLocationID(zone, 133784673) ==nil then
local JethTheSpy = SpawnMob(zone, 5590962, false, -124.97, -37.62, -19.76, 312.75)
Attack(JethTheSpy, Spawn)
end
end
end
end
function LeaveRange(NPC, Spawn)
end