9
3

signalfire.lua 517 B

1234567891011121314151617181920
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/signalfire.lua
  3. Script Purpose : setting signal fire private spawn access
  4. Script Author : theFoof
  5. Script Date : 2013.5.9
  6. Script Notes :
  7. --]]
  8. local FlameOn = 5
  9. function spawn(NPC)
  10. AddSpawnAccess(NPC, NPC)
  11. SetPlayerProximityFunction(NPC, 75, "CheckQuest", "CheckQuest")
  12. end
  13. function CheckQuest(NPC, Player)
  14. if HasCompletedQuest(Player, FlameOn) or GetQuestStep(Player, FlameOn) > 1 then
  15. AddSpawnAccess(NPC, Player)
  16. end
  17. end