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

34 lines
No EOL
722 B
Lua
Executable file

--[[
Script Name : SpawnScripts/Freeport/TitiusAuspex.lua
Script Author : Premierio015
Script Date : 2020.07.19 11:07:39
Script Purpose :
:
--]]
dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
function spawn(NPC)
AddTimer(NPC, 700, "followguard", 1, Spawn)
end
function hailed(NPC, Spawn)
FaceTarget(NPC, Spawn)
GenericGuardHail(NPC, Spawn, Faction)
end
function respawn(NPC)
spawn(NPC)
end
function followguard(NPC, Spawn)
local zone = GetZone(NPC)
local leader = GetSpawnByLocationID(zone, 55809)
SetFollowTarget(NPC, leader)
if not IsFollowing(NPC) then
ToggleFollow(NPC)
SetSpeed(NPC, 1.9)
end
end