Nea.lua 788 B

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