9
3

mikkel.lua 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. --[[
  2. Script Name : nightstalker.lua
  3. Script Purpose : Waypoint Path for nightstalker.lua
  4. Script Author : Devn00b
  5. Script Date : 04/12/2020 11:16:46 AM
  6. Script Notes : Locations collected from Live
  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 waypoints(NPC)
  21. math.randomseed(os.clock()*100000000000)
  22. for i=1,3 do
  23. math.random(10000, 65000)
  24. end
  25. r = math.random(10, 30)
  26. s = math.random(5, 15)
  27. MovementLoopAddLocation(NPC, 441.68, -20.33, -318.13, 2, r)
  28. MovementLoopAddLocation(NPC, 447.68, -20.33, -324.06, 2, s)
  29. MovementLoopAddLocation(NPC, 451.08, -20.35, -326.46, 2, 0)
  30. MovementLoopAddLocation(NPC, 455.34, -20.41, -326.81, 2, 0)
  31. MovementLoopAddLocation(NPC, 460.61, -20.5, -325.99, 2, 0)
  32. MovementLoopAddLocation(NPC, 464.6, -20.47, -323.73, 2, 0)
  33. MovementLoopAddLocation(NPC, 467.31, -20.42, -320.02, 2, 0)
  34. MovementLoopAddLocation(NPC, 467.77, -20.35, -315.62, 2, 0)
  35. MovementLoopAddLocation(NPC, 466.03, -20.23, -311.41, 2, 0)
  36. MovementLoopAddLocation(NPC, 461.14, -20.18, -307.03, 2, 0)
  37. MovementLoopAddLocation(NPC, 455.07, -20.2, -304.7, 2, 0)
  38. MovementLoopAddLocation(NPC, 449.84, -20.26, -304.03, 2, 0)
  39. MovementLoopAddLocation(NPC, 437.04, -20.75, -281.16, 2, 0)
  40. MovementLoopAddLocation(NPC, 437.55, -20.92, -254.01, 2, 0)
  41. MovementLoopAddLocation(NPC, 434.83, -21.31, -248.24, 2, 0)
  42. MovementLoopAddLocation(NPC, 405.9, -23.02, -216.31, 2, 0)
  43. MovementLoopAddLocation(NPC, 388.39, -18.86, -235.08, 2, 0)
  44. MovementLoopAddLocation(NPC, 405.93, -23, -217.04, 2, 0)
  45. MovementLoopAddLocation(NPC, 386.32, -24.34, -194.34, 2, 0)
  46. MovementLoopAddLocation(NPC, 359.28, -25.34, -174.69, 2, 0)
  47. MovementLoopAddLocation(NPC, 341.23, -23.91, -145.54, 2, 0)
  48. MovementLoopAddLocation(NPC, 319.08, -23.15, -103.21, 2, 0)
  49. MovementLoopAddLocation(NPC, 314.18, -22.67, -91.88, 2, 0)
  50. MovementLoopAddLocation(NPC, 306.92, -21.35, -54.89, 2, 0)
  51. MovementLoopAddLocation(NPC, 294.23, -21.05, -45.16, 2, 0)
  52. MovementLoopAddLocation(NPC, 279.54, -21.18, -32.57, 2, 0)
  53. MovementLoopAddLocation(NPC, 257.93, -21.1, -11.88, 2, 0)
  54. MovementLoopAddLocation(NPC, 254.82, -19.97, 35.53, 2, 0)
  55. MovementLoopAddLocation(NPC, 286.47, -12.82, 76.85, 2, 0)
  56. MovementLoopAddLocation(NPC, 291.57, -13.42, 109.62, 2, 0)
  57. MovementLoopAddLocation(NPC, 301.61, -15.94, 140.57, 2, 0)
  58. MovementLoopAddLocation(NPC, 311.09, -17.91, 158.73, 2, 0)
  59. MovementLoopAddLocation(NPC, 315.55, -17.98, 164.22, 2, 0)
  60. MovementLoopAddLocation(NPC, 321.17, -18.12, 167.53, 2, 0)
  61. MovementLoopAddLocation(NPC, 327.38, -18.49, 168.63, 2, 0)
  62. MovementLoopAddLocation(NPC, 335.41, -19.11, 168.24, 2, 0)
  63. MovementLoopAddLocation(NPC, 343.39, -19.81, 165.99, 2, 0)
  64. MovementLoopAddLocation(NPC, 353.19, -20.11, 161.76, 2, 0)
  65. MovementLoopAddLocation(NPC, 362.33, -20.07, 156.28, 2, 0)
  66. MovementLoopAddLocation(NPC, 371, -20.4, 150.07, 2, 0)
  67. MovementLoopAddLocation(NPC, 376.95, -20.63, 141.51, 2, 0)
  68. MovementLoopAddLocation(NPC, 380.82, -20.84, 135.48, 2, 0)
  69. MovementLoopAddLocation(NPC, 376.95, -20.63, 141.51, 2, 0)
  70. MovementLoopAddLocation(NPC, 371, -20.4, 150.07, 2, 0)
  71. MovementLoopAddLocation(NPC, 362.33, -20.07, 156.28, 2, 0)
  72. MovementLoopAddLocation(NPC, 353.19, -20.11, 161.76, 2, 0)
  73. MovementLoopAddLocation(NPC, 343.39, -19.81, 165.99, 2, 0)
  74. MovementLoopAddLocation(NPC, 335.41, -19.11, 168.24, 2, 0)
  75. MovementLoopAddLocation(NPC, 327.38, -18.49, 168.63, 2, 0)
  76. MovementLoopAddLocation(NPC, 321.17, -18.12, 167.53, 2, 0)
  77. MovementLoopAddLocation(NPC, 315.55, -17.98, 164.22, 2, 0)
  78. MovementLoopAddLocation(NPC, 311.09, -17.91, 158.73, 2, 0)
  79. MovementLoopAddLocation(NPC, 301.61, -15.94, 140.57, 2, 0)
  80. MovementLoopAddLocation(NPC, 291.57, -13.42, 109.62, 2, 0)
  81. MovementLoopAddLocation(NPC, 286.47, -12.82, 76.85, 2, 0)
  82. MovementLoopAddLocation(NPC, 254.82, -19.97, 35.53, 2, 0)
  83. MovementLoopAddLocation(NPC, 257.93, -21.1, -11.88, 2, 0)
  84. MovementLoopAddLocation(NPC, 279.54, -21.18, -32.57, 2, 0)
  85. MovementLoopAddLocation(NPC, 294.23, -21.05, -45.16, 2, 0)
  86. MovementLoopAddLocation(NPC, 306.92, -21.35, -54.89, 2, 0)
  87. MovementLoopAddLocation(NPC, 314.18, -22.67, -91.88, 2, 0)
  88. MovementLoopAddLocation(NPC, 319.08, -23.15, -103.21, 2, 0)
  89. MovementLoopAddLocation(NPC, 341.23, -23.91, -145.54, 2, 0)
  90. MovementLoopAddLocation(NPC, 359.28, -25.34, -174.69, 2, 0)
  91. MovementLoopAddLocation(NPC, 386.32, -24.34, -194.34, 2, 0)
  92. MovementLoopAddLocation(NPC, 405.93, -23, -217.04, 2, 0)
  93. MovementLoopAddLocation(NPC, 388.39, -18.86, -235.08, 2, 0)
  94. MovementLoopAddLocation(NPC, 405.9, -23.02, -216.31, 2, 0)
  95. MovementLoopAddLocation(NPC, 434.83, -21.31, -248.24, 2, 0)
  96. MovementLoopAddLocation(NPC, 437.55, -20.92, -254.01, 2, 0)
  97. MovementLoopAddLocation(NPC, 437.04, -20.75, -281.16, 2, 0)
  98. MovementLoopAddLocation(NPC, 449.84, -20.26, -304.03, 2, 0)
  99. MovementLoopAddLocation(NPC, 455.07, -20.2, -304.7, 2, 0)
  100. MovementLoopAddLocation(NPC, 461.14, -20.18, -307.03, 2, 0)
  101. MovementLoopAddLocation(NPC, 466.03, -20.23, -311.41, 2, 0)
  102. MovementLoopAddLocation(NPC, 467.77, -20.35, -315.62, 2, 0)
  103. MovementLoopAddLocation(NPC, 467.31, -20.42, -320.02, 2, 0)
  104. MovementLoopAddLocation(NPC, 464.6, -20.47, -323.73, 2, 0)
  105. MovementLoopAddLocation(NPC, 460.61, -20.5, -325.99, 2, 0)
  106. MovementLoopAddLocation(NPC, 455.34, -20.41, -326.81, 2, 0)
  107. MovementLoopAddLocation(NPC, 451.08, -20.35, -326.46, 2, 0)
  108. MovementLoopAddLocation(NPC, 447.68, -20.33, -324.06, 2, 0)
  109. MovementLoopAddLocation(NPC, 441.68, -20.33, -318.13, 2, 0)
  110. end