33 lines
No EOL
795 B
Lua
Executable file
33 lines
No EOL
795 B
Lua
Executable file
--[[
|
|
Script Name : SpawnScripts/Peatbog_Classic/GuardAndrews.lua
|
|
Script Author : Dorbin
|
|
Script Date : 2022.11.02 04:11:29
|
|
Script Purpose :
|
|
:
|
|
--]]
|
|
dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
|
|
require "SpawnScripts/Generic/NPCModule"
|
|
|
|
function spawn(NPC, Spawn)
|
|
NPCModule(NPC, Spawn)
|
|
SetPlayerProximityFunction(NPC, 12, "InRange", "LeaveRange")
|
|
end
|
|
|
|
function respawn(NPC)
|
|
spawn(NPC)
|
|
end
|
|
|
|
|
|
function InRange(NPC, Spawn)
|
|
if GetFactionAmount(Spawn,11)>=5000 then
|
|
if GetLevel(Spawn) ==8 or GetLevel(Spawn)==9 then
|
|
ClassCheck(NPC,Spawn)
|
|
end
|
|
end
|
|
CheckFaction(NPC, Spawn, "Qeynos")
|
|
end
|
|
|
|
function hailed(NPC, Spawn)
|
|
FaceTarget(NPC, Spawn)
|
|
GenericGuardHail(NPC, Spawn)
|
|
end |