GuardNander.lua 635 B

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