mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
34 lines
851 B
Lua
Executable file
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
|