acryptsubstanceRail2.lua 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. --[[
  2. Script Name : SpawnScripts/DownBelow_Classic/acryptsubstanceRail2.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.11.12 07:11:43
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. --AddTimer(NPC,(MakeRandomInt(5000,6000)),"ChooseMovement")
  12. ChooseMovement(NPC)
  13. end
  14. function ChooseMovement(NPC)
  15. local route = MakeRandomInt(1,2)
  16. if route == 1 then
  17. RouteOne(NPC, Spawn)
  18. --elseif route == 2 then
  19. --RouteTwo(NPC, Spawn)
  20. elseif route == 2 then
  21. RouteThree(NPC, Spawn)
  22. end
  23. end
  24. function RouteOne(NPC, Spawn)
  25. MovementLoopAddLocation(NPC, -128.28, -0.12, -136.44, 2, 0)
  26. MovementLoopAddLocation(NPC, -127.63, 0.35, -128.26, 2, 0)
  27. MovementLoopAddLocation(NPC, -122.16, 0.56, -120.38, 2, 0)
  28. MovementLoopAddLocation(NPC, -113.81, -0.14, -115.16, 2, 0)
  29. MovementLoopAddLocation(NPC, -106.32, -0.13, -117.06, 2, 0)
  30. MovementLoopAddLocation(NPC, -87.83, -0.08, -134.85, 2, 0)
  31. MovementLoopAddLocation(NPC, -103.93, -0.09, -118.45, 2, 0)
  32. MovementLoopAddLocation(NPC, -107.44, -0.12, -116.05, 2, 0)
  33. MovementLoopAddLocation(NPC, -113.72, -0.1, -115.79, 2, 0)
  34. MovementLoopAddLocation(NPC, -121.54, 0.51, -119.76, 2, 0)
  35. MovementLoopAddLocation(NPC, -127.27, 0.03, -126.7, 2, 0)
  36. MovementLoopAddLocation(NPC, -128.2, -0.13, -137.16, 2, 0, "ChooseMovement")
  37. end
  38. function RouteTwo(NPC, Spawn)
  39. MovementLoopAddLocation(NPC, -128.2, -0.13, -137.16, 2, 0)
  40. MovementLoopAddLocation(NPC, -151.92, -0.11, -136.84, 2, 0)
  41. MovementLoopAddLocation(NPC, -156.74, -0.05, -135.94, 2, 0)
  42. MovementLoopAddLocation(NPC, -158.81, -0.05, -132.26, 2, 0)
  43. MovementLoopAddLocation(NPC, -158.1, -0.07, -108.92, 2, 0)
  44. MovementLoopAddLocation(NPC, -157.15, 0.33, -105.8, 2, 0)
  45. MovementLoopAddLocation(NPC, -146.23, -0.12, -79.18, 2, 0)
  46. MovementLoopAddLocation(NPC, -158.49, -0.06, -110.44, 2, 0)
  47. MovementLoopAddLocation(NPC, -158.87, 0, -131.56, 2, 0)
  48. MovementLoopAddLocation(NPC, -157.68, -0.04, -134.16, 2, 0)
  49. MovementLoopAddLocation(NPC, -156.09, -0.06, -136.1, 2, 0)
  50. MovementLoopAddLocation(NPC, -130.92, -0.05, -136.47, 2, 0)
  51. MovementLoopAddLocation(NPC, -128.2, -0.13, -137.16, 2, 0, "ChooseMovement")
  52. end
  53. function RouteThree(NPC, Spawn)
  54. MovementLoopAddLocation(NPC, -128.2, -0.13, -137.16, 2, 0)
  55. MovementLoopAddLocation(NPC, -127.9, -0.09, -144.12, 2, 0)
  56. MovementLoopAddLocation(NPC, -124.11, -0.1, -149.26, 2, 0)
  57. MovementLoopAddLocation(NPC, -121.28, 0.4, -151.86, 2, 0)
  58. MovementLoopAddLocation(NPC, -119.44, -0.08, -156.46, 2, 0)
  59. MovementLoopAddLocation(NPC, -119.57, -0.12, -176.72, 2, 0)
  60. MovementLoopAddLocation(NPC, -121.85, 0.53, -180.23, 2, 0)
  61. MovementLoopAddLocation(NPC, -127.11, -0.08, -181.54, 2, 0)
  62. MovementLoopAddLocation(NPC, -137.84, -0.32, -180.58, 2, 0)
  63. MovementLoopAddLocation(NPC, -149.86, -0.34, -176.32, 2, 0)
  64. MovementLoopAddLocation(NPC, -159.7, -0.34, -171.93, 2, 0)
  65. MovementLoopAddLocation(NPC, -165.1, 0.15, -171.13, 2, 0)
  66. MovementLoopAddLocation(NPC, -172.22, -0.1, -174.76, 2, 0)
  67. MovementLoopAddLocation(NPC, -173.23, -0.08, -181.56, 2, 0)
  68. MovementLoopAddLocation(NPC, -173.82, -0.07, -187.26, 2, 0)
  69. MovementLoopAddLocation(NPC, -176.76, -0.08, -189.14, 2, 0)
  70. MovementLoopAddLocation(NPC, -180.28, -0.14, -189.89, 2, 0)
  71. MovementLoopAddLocation(NPC, -183.87, -0.09, -189.87, 2, 0)
  72. MovementLoopAddLocation(NPC, -179.52, -0.12, -189.62, 2, 0)
  73. MovementLoopAddLocation(NPC, -175.26, -0.05, -188.5, 2, 0)
  74. MovementLoopAddLocation(NPC, -173.83, -0.16, -186.16, 2, 0)
  75. MovementLoopAddLocation(NPC, -173.06, -0.06, -181.01, 2, 0)
  76. MovementLoopAddLocation(NPC, -172.01, -0.1, -174.74, 2, 0)
  77. MovementLoopAddLocation(NPC, -166.02, 0.38, -171.28, 2, 0)
  78. MovementLoopAddLocation(NPC, -160.66, -0.29, -171.5, 2, 0)
  79. MovementLoopAddLocation(NPC, -150.21, -0.34, -175.95, 2, 0)
  80. MovementLoopAddLocation(NPC, -138.22, -0.31, -180.74, 2, 0)
  81. MovementLoopAddLocation(NPC, -127.92, -0.08, -181.49, 2, 0)
  82. MovementLoopAddLocation(NPC, -122.35, 0.46, -180.56, 2, 0)
  83. MovementLoopAddLocation(NPC, -119.5, -0.15, -175.37, 2, 0)
  84. MovementLoopAddLocation(NPC, -119.46, -0.1, -160.9, 2, 0)
  85. MovementLoopAddLocation(NPC, -120.44, 0.27, -152.8, 2, 0)
  86. MovementLoopAddLocation(NPC, -123.36, -0.08, -149.91, 2, 0)
  87. MovementLoopAddLocation(NPC, -127.61, -0.06, -145.37, 2, 0)
  88. MovementLoopAddLocation(NPC, -128.2, -0.13, -137.16, 2, 0, "ChooseMovement")
  89. end
  90. function respawn(NPC, Spawn)
  91. spawn(NPC)
  92. end
  93. function hailed(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. end