9
3

Yarwick.lua 679 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/Yarwick.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.04.16 12:04:17
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/ExpelNonCitizen.lua")
  9. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  10. function spawn(NPC)
  11. SetPlayerProximityFunction(NPC, 8, "InRange", "LeaveRange")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. NonCitizen(NPC,Spawn)
  18. CheckFaction(NPC, Spawn, "Qeynos")
  19. end
  20. function LeaveRange(NPC, Spawn)
  21. end
  22. function hailed(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. GenericGuardHail(NPC, Spawn)
  25. end