GuardVivian.lua 846 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : SpawnScripts/Peatbog_Classic/GuardVivian.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.02 04:11:02
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/AdvancementGaze.lua")
  9. dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
  10. require "SpawnScripts/Generic/NPCModule"
  11. function spawn(NPC, Spawn)
  12. NPCModule(NPC, Spawn)
  13. SetPlayerProximityFunction(NPC, 12, "InRange", "LeaveRange")
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function InRange(NPC, Spawn)
  19. if GetFactionAmount(Spawn,11)>=5000 then
  20. if GetLevel(Spawn) ==8 or GetLevel(Spawn)==9 then
  21. ClassCheck(NPC,Spawn)
  22. end
  23. end
  24. CheckFaction(NPC, Spawn, "Qeynos")
  25. end
  26. function hailed(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. GenericGuardHail(NPC, Spawn)
  29. end