sign_coldain_house03.lua 505 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/sign_coldain_house03.lua
  3. Script Purpose : hides the quarmarr house sign until questline is done
  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