lystan.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : lystan.lua
  3. Script Purpose : Waypoint Path for lystan.lua
  4. Script Author : Devn00b
  5. Script Date : 08/04/2020 01:42:54 PM
  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. GenericEcologyHail(NPC, Spawn, faction)
  16. end
  17. function InRange(NPC,Spawn)
  18. GenericEcologyCallout(NPC, Spawn, faction)
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function waypoints(NPC)
  24. MovementLoopAddLocation(NPC, 643.88, -19.24, -320.76, 2, math.random(0,8))
  25. MovementLoopAddLocation(NPC, 644.69, -13.13, -364.87, 2, math.random(0,8))
  26. MovementLoopAddLocation(NPC, 622.02, -15.73, -366.03, 2, math.random(0,8))
  27. MovementLoopAddLocation(NPC, 598.25, -20.37, -364.02, 2, math.random(0,8))
  28. MovementLoopAddLocation(NPC, 561.69, -21.01, -356.09, 2, math.random(0,8))
  29. MovementLoopAddLocation(NPC, 565.23, -20.83, -345.95, 2, math.random(0,40))
  30. MovementLoopAddLocation(NPC, 559.95, -20.62, -346.75, 2, math.random(0,8))
  31. MovementLoopAddLocation(NPC, 550.69, -21.5, -317.76, 2, math.random(0,8))
  32. MovementLoopAddLocation(NPC, 560.18, -21.9, -314.31, 2, math.random(0,8))
  33. MovementLoopAddLocation(NPC, 581.97, -21.37, -313.43, 2, math.random(0,8))
  34. MovementLoopAddLocation(NPC, 601.72, -21.05, -312.89, 2, math.random(0,8))
  35. MovementLoopAddLocation(NPC, 638.17, -20.31, -308.01, 2, math.random(0,8))
  36. MovementLoopAddLocation(NPC, 648.88, -21.27, -308.26, 2, math.random(0,8))
  37. MovementLoopAddLocation(NPC, 649.85, -21.94, -301.33, 2, math.random(0,8))
  38. MovementLoopAddLocation(NPC, 650.86, -17.98, -206.84, 2, math.random(0,8))
  39. MovementLoopAddLocation(NPC, 649.85, -21.94, -301.33, 2, math.random(0,8))
  40. MovementLoopAddLocation(NPC, 648.88, -21.27, -308.26, 2, math.random(0,8))
  41. MovementLoopAddLocation(NPC, 638.17, -20.31, -308.01, 2, math.random(0,8))
  42. MovementLoopAddLocation(NPC, 601.72, -21.05, -312.89, 2, math.random(0,8))
  43. MovementLoopAddLocation(NPC, 581.97, -21.37, -313.43, 2, math.random(0,8))
  44. MovementLoopAddLocation(NPC, 560.18, -21.9, -314.31, 2, math.random(0,8))
  45. MovementLoopAddLocation(NPC, 550.69, -21.5, -317.76, 2, math.random(0,8))
  46. MovementLoopAddLocation(NPC, 559.95, -20.62, -346.75, 2, math.random(0,8))
  47. MovementLoopAddLocation(NPC, 565.23, -20.83, -345.95, 2, math.random(0,40))
  48. MovementLoopAddLocation(NPC, 561.69, -21.01, -356.09, 2, math.random(0,8))
  49. MovementLoopAddLocation(NPC, 598.25, -20.37, -364.02, 2, math.random(0,8))
  50. MovementLoopAddLocation(NPC, 622.02, -15.73, -366.03, 2, math.random(0,8))
  51. MovementLoopAddLocation(NPC, 644.69, -13.13, -364.87, 2, math.random(0,8))
  52. MovementLoopAddLocation(NPC, 643.88, -19.24, -320.76, 2, math.random(0,8))
  53. end