9
3

GuardAndrews.lua 795 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : SpawnScripts/Peatbog_Classic/GuardAndrews.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.02 04:11:29
  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, 12, "InRange", "LeaveRange")
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function InRange(NPC, Spawn)
  18. if GetFactionAmount(Spawn,11)>=5000 then
  19. if GetLevel(Spawn) ==8 or GetLevel(Spawn)==9 then
  20. ClassCheck(NPC,Spawn)
  21. end
  22. end
  23. CheckFaction(NPC, Spawn, "Qeynos")
  24. end
  25. function hailed(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. GenericGuardHail(NPC, Spawn)
  28. end