9
3

Trinoonae.lua 859 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/Trinoonae.lua
  3. Script Purpose : Trinoonae <Guard>
  4. Script Author : Scatman
  5. Script Date : 2009.09.25
  6. Script Notes :
  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, 10, "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 LeaveRange(NPC, Spawn)
  27. end
  28. function hailed(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. GenericGuardHail(NPC, Spawn)
  31. end