9
3

invisiblecuberiftparticle.lua 613 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : SpawnScripts/Darklight/invisiblecuberiftparticle.lua
  3. Script Purpose : Sealing the Rift
  4. Script Author : Cynnar
  5. Script Date : 2015.07.01
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local SealingTheRift = 122
  9. function spawn(NPC, Player)
  10. AddSpawnAccess(NPC, NPC)
  11. SetPlayerProximityFunction(NPC, 50, "QuestCheck", "QuestCheck")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function QuestCheck(NPC, Player)
  17. if HasCompletedQuest(Player, SealingTheRift ) or GetQuestStep(Player, SealingTheRift) > 1 then
  18. AddSpawnAccess(NPC, Player)
  19. end
  20. end