SplorpyQuagmarr_(shelf).lua 660 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/SplorpyQuagmarr_(shelf).lua
  3. Script Purpose : for the spawn "Splorpy Quagmarr" located in the great shelf cave.
  4. Script Author : theFoof
  5. Script Date : 2013.5.30
  6. Script Notes :
  7. --]]
  8. local GreatShelf = 30
  9. function spawn(NPC)
  10. AddSpawnAccess(NPC, NPC)
  11. SetPlayerProximityFunction(NPC, 50, "SpawnAccess", "SpawnAccess")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. PlayFlavor(NPC, "", "Hello again!", "wave", 1689589577, 4560189, Spawn)
  18. end
  19. function SpawnAccess(NPC, Spawn)
  20. if HasCompletedQuest(Spawn, GreatShelf) then
  21. AddSpawnAccess(NPC, Spawn)
  22. end
  23. end