9
3

KaylelleStarchaser.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/KaylelleStarchaser.lua
  3. Script Purpose : Kaylelle Starchaser
  4. Script Author : John Adams
  5. Script Date : 2008.09.28
  6. Script Notes : Dialogue updated 5.1.2022 Dorbin
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. GenericRaceCheckHail(NPC, Spawn)
  16. end
  17. function InRange(NPC,Spawn)
  18. GenericRaceCheckCallout(NPC, Spawn)
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function waypoints(NPC)
  24. MovementLoopAddLocation(NPC, 614.94, -20.82, -260.61, 2, math.random(0,8))
  25. MovementLoopAddLocation(NPC, 630.77, -19.78, -256.17, 2, math.random(0,8))
  26. MovementLoopAddLocation(NPC, 644.08, -19.01, -263.39, 2, math.random(0,8))
  27. MovementLoopAddLocation(NPC, 649.33, -20.72, -284.7, 2, math.random(0,8))
  28. MovementLoopAddLocation(NPC, 650.01, -21.79, -293.97, 2, math.random(0,8))
  29. MovementLoopAddLocation(NPC, 649.67, -21.64, -304.66, 2, math.random(0,8))
  30. MovementLoopAddLocation(NPC, 639.98, -20.33, -310.22, 2, math.random(0,8))
  31. MovementLoopAddLocation(NPC, 592.56, -21.15, -316.11, 2, math.random(0,8))
  32. MovementLoopAddLocation(NPC, 558.55, -21.89, -316.44, 2, math.random(0,8))
  33. MovementLoopAddLocation(NPC, 541.91, -18.75, -367.38, 2, math.random(0,8))
  34. MovementLoopAddLocation(NPC, 558.55, -21.89, -316.44, 2, math.random(0,8))
  35. MovementLoopAddLocation(NPC, 592.56, -21.15, -316.11, 2, math.random(0,8))
  36. MovementLoopAddLocation(NPC, 639.98, -20.33, -310.22, 2, math.random(0,8))
  37. MovementLoopAddLocation(NPC, 649.67, -21.64, -304.66, 2, math.random(0,8))
  38. MovementLoopAddLocation(NPC, 650.01, -21.79, -293.97, 2, math.random(0,8))
  39. MovementLoopAddLocation(NPC, 649.33, -20.72, -284.7, 2, math.random(0,8))
  40. MovementLoopAddLocation(NPC, 644.08, -19.01, -263.39, 2, math.random(0,8))
  41. MovementLoopAddLocation(NPC, 630.77, -19.78, -256.17, 2, math.random(0,8))
  42. MovementLoopAddLocation(NPC, 614.94, -20.82, -260.61, 2, math.random(0,8))
  43. end