OlOneEye.lua 569 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : SpawnScripts/Antonica/OlOneEye.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.13 07:08:33
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheOneThatGotAway = 5338
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 5, "InRange", "InRange", Spawn)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. end
  15. function InRange(NPC, Spawn)
  16. if GetQuestStep(Spawn, TheOneThatGotAway) == 1 then
  17. SetStepComplete(Spawn, TheOneThatGotAway, 1)
  18. end
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end