JeththeSpy.lua 713 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : SpawnScripts/TheCityofFreeport/JeththeSpy.lua
  3. Script Purpose : Jeth the Spy
  4. Script Author : cynnar
  5. Script Date : 2023.04.29
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local QuellingTheRebellion = 5807
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange", Spawn)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. if HasQuest(Spawn, QuellingTheRebellion) and GetQuestStep(Spawn, QuellingTheRebellion) == 1 then
  17. PlayFlavor(NPC, "", "Drat! Found out! Well, this won't be the end - there are others!", "", 0, 0, Spawn, 0)
  18. end
  19. end
  20. function LeaveRange(NPC, Spawn)
  21. end