9
3

araidingsporetender.lua 598 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Quests/FrostfangSea/araidingsporetender.lua
  3. Script Purpose : the spawn "a raiding sporetender"
  4. Script Author : theFoof
  5. Script Date : 2013.5.14
  6. --]]
  7. local RepellingCritters = 7
  8. function spawn(NPC)
  9. AddSpawnAccess(NPC, NPC)
  10. SetPlayerProximityFunction(NPC, 50, "SpawnAccess", "SpawnAccess")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. end
  18. function SpawnAccess(NPC, Player)
  19. if HasCompletedQuest(Player, RepellingCritters) == false then
  20. AddSpawnAccess(NPC, Player)
  21. end
  22. end