9
3

academyx4necromechanicalbook.lua 617 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/Freeport/academyx4necromechanicalbook.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.08.15 06:08:37
  5. Script Purpose :
  6. :
  7. --]]
  8. local QUEST = 574
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 50, "SpawnAccess", "SpawnAccess")
  11. AddSpawnAccess(NPC, NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function SpawnAccess(NPC, Spawn)
  20. if HasQuest(Spawn, QUEST) and GetQuestStep(Spawn, QUEST) == 3 then
  21. AddSpawnAccess(NPC, Spawn)
  22. end
  23. end