9
3

Coalbeard.lua 691 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/Coalbeard.lua
  3. Script Purpose : Coalbeard
  4. Script Author : Dorbin
  5. Script Date : 2022.04.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  9. dofile("SpawnScripts/Generic/ExpelNonCitizen.lua")
  10. function spawn(NPC)
  11. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  12. end
  13. function hailed(NPC, Spawn)
  14. if GetFactionAmount(Spawn,11)<0 then
  15. else
  16. FaceTarget(NPC, Spawn)
  17. GenericGuardHail(NPC,Spawn)
  18. end
  19. end
  20. function InRange(NPC, Spawn)
  21. NonCitizen(NPC,Spawn)
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end