123456789101112131415161718192021222324252627282930313233 |
- --[[
- Script Name : SpawnScripts/Nettleville/Nea.lua
- Script Author : Dorbin
- Script Date : 2023.08.27 03:08:29
- Script Purpose :
- :
- --]]
- dofile("SpawnScripts/Generic/AdvancementGaze.lua")
- dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
- function spawn(NPC)
- SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
- 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
- if GetFactionID(Spawn) ==1 then
- Attack(NPC,Spawn)
- end
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- GenericGuardHail(NPC, Spawn)
- end
|