apioneerwithoutawagonquestcrate.lua 593 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : SpawnScripts/Everfrost/apioneerwithoutawagonquestcrate.lua
  3. Script Author : Flunklesnarkin
  4. Script Date : 2016.02.09 10:02:50
  5. Script Purpose : These crates are used for the quest A Pioneer without a Wagon
  6. :
  7. --]]
  8. local APWOAW = 168
  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 GetQuestStep(Player, APWOAW) == 1 then
  18. AddSpawnAccess(NPC, Player)
  19. end
  20. end