9
3

spawnJeththeSpy.lua 851 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : SpawnScripts/Freeport/spawnJeththeSpy.lua
  3. Script Author : cynnar
  4. Script Date : 2023.04.29 09:04:51
  5. Script Purpose :
  6. :
  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. local zone = GetZone(Spawn)
  17. if HasQuest(Spawn, QuellingTheRebellion) then
  18. if GetQuestStep(Spawn, QuellingTheRebellion) == 1 then
  19. if GetSpawnByLocationID(zone, 133784673) ==nil then
  20. local JethTheSpy = SpawnMob(zone, 5590962, false, -124.97, -37.62, -19.76, 312.75)
  21. Attack(JethTheSpy, Spawn)
  22. end
  23. end
  24. end
  25. end
  26. function LeaveRange(NPC, Spawn)
  27. end