GuardEssex.lua 558 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/GuardEssex.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.08.26 04:08:11
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  11. end
  12. function InRange(NPC, Spawn)
  13. CheckFaction(NPC, Spawn, "Qeynos")
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. GenericGuardHail(NPC, Spawn)
  18. end
  19. function respawn(NPC)
  20. spawn(NPC)
  21. end