9
3

Hubbard.lua 767 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/Antonica/Hubbard.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.13 06:07:34
  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, 8, "InRange", "LeaveRange")
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function InRange(NPC, Spawn)
  18. CheckFaction(NPC, Spawn, "Qeynos")
  19. if math.random(0, 100) <= 25 then
  20. FaceTarget(NPC, Spawn)
  21. GenericGuardHail(NPC, Spawn)
  22. end
  23. end
  24. function LeaveRange(NPC, Spawn)
  25. end
  26. function hailed(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. GenericGuardHail(NPC, Spawn)
  29. end