spawnkraofla.lua 686 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/spawnkraofla.lua
  3. Script Author : cynnar
  4. Script Date : 2023.04.10 12:04:35
  5. Script Purpose :
  6. :
  7. --]]
  8. local SearchForTheMissing = 573
  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, SearchForTheMissing) and GetQuestStep(Spawn, SearchForTheMissing) == 2 then
  18. local Kraofla = SpawnMob(zone, 330291, false, -589.91, -49.14, -626.17, 175.95)
  19. end
  20. end
  21. function LeaveRange(NPC, Spawn)
  22. end