FlibbitQuagmarr_(halas).lua 634 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/FlibbitQuagmarr_(halas).lua
  3. Script Purpose : hides flibbit until quest series is finished
  4. Script Author : theFoof
  5. Script Date : 2013.9.24
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. AddSpawnAccess(NPC, NPC)
  10. SetPlayerProximityFunction(NPC, 100, "SpawnAccess", "SpawnAccess")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function SpawnAccess(NPC, Spawn)
  16. if HasCompletedQuest(Spawn, 30) then
  17. AddSpawnAccess(NPC, Spawn)
  18. end
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. PlayFlavor(NPC, "", "It is good to see you again!", "nod", 0, 0, Spawn)
  23. end