FirebeardOrcFootprints.lua 525 B

123456789101112131415161718
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/FirebeardOrcFootprints.lua
  3. Script Purpose : the quest Beets the Alternative
  4. Script Author : theFoof
  5. Script Date : 2013.5.18
  6. --]]
  7. local BeetsAlternative = 13
  8. function spawn(NPC)
  9. AddSpawnAccess(NPC, NPC)
  10. SetPlayerProximityFunction(NPC, 50, "SpawnAccess", "SpawnAccess")
  11. end
  12. function SpawnAccess(NPC, Player)
  13. if HasCompletedQuest(Player, BeetsAlternative) or GetQuestStep(Player, BeetsAlternative) > 2 then
  14. AddSpawnAccess(NPC, Player)
  15. end
  16. end