Shiningleaf.lua 645 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/Shiningleaf.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.09 07:07:19
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  9. dofile("SpawnScripts/Generic/ExpelNonCitizen.lua")
  10. function spawn(NPC)
  11. SetPlayerProximityFunction(NPC, 8, "InRange", "LeaveRange")
  12. end
  13. function InRange(NPC, Spawn)
  14. NonCitizen(NPC,Spawn)
  15. end
  16. function hailed(NPC, Spawn)
  17. if GetFactionAmount(Spawn,11) >0 then
  18. FaceTarget(NPC, Spawn)
  19. GenericGuardHail(NPC, Spawn)
  20. end
  21. end
  22. function respawn(NPC)
  23. spawn(NPC)
  24. end