adustcrawlerhatchlingRail1.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. --[[
  2. Script Name : SpawnScripts/DownBelow_Classic/adustcrawlerhatchlingRail1.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.11.10 08:11:23
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. --AddTimer(NPC,(MakeRandomInt(0,4000)),"ChooseMovement")
  12. ChooseMovement(NPC)
  13. end
  14. function ChooseMovement(NPC)
  15. local route = MakeRandomInt(1,3)
  16. if route == 1 then
  17. RouteOne(NPC, Spawn)
  18. elseif route == 2 then
  19. RouteTwo(NPC, Spawn)
  20. elseif route == 3 then
  21. RouteThree(NPC, Spawn)
  22. end
  23. end
  24. function RouteOne(NPC, Spawn)
  25. MovementLoopAddLocation(NPC, -12.93, -0.1, -89.93, 2, 0)
  26. MovementLoopAddLocation(NPC, -12.93, -0.1, -89.93, 2, 0)
  27. MovementLoopAddLocation(NPC, -29.21, -0.12, -73.44, 2, 0)
  28. MovementLoopAddLocation(NPC, -45.97, -0.15, -66.81, 2, 0)
  29. MovementLoopAddLocation(NPC, -52.56, -0.08, -70.13, 2, 0)
  30. MovementLoopAddLocation(NPC, -58, -0.08, -85.24, 2, 0)
  31. MovementLoopAddLocation(NPC, -57.83, -0.07, -93.24, 2, 0)
  32. MovementLoopAddLocation(NPC, -60.76, -0.07, -95.75, 2, 0)
  33. MovementLoopAddLocation(NPC, -62.95, -0.05, -96.43, 2, 0)
  34. MovementLoopAddLocation(NPC, -57.82, -0.07, -93.62, 2, 0)
  35. MovementLoopAddLocation(NPC, -58.25, -0.08, -85.9, 2, 0)
  36. MovementLoopAddLocation(NPC, -52.51, -0.08, -70.12, 2, 0)
  37. MovementLoopAddLocation(NPC, -49.61, -0.12, -67.4, 2, 0)
  38. MovementLoopAddLocation(NPC, -46.75, -0.16, -66.58, 2, 0)
  39. MovementLoopAddLocation(NPC, -43.9, -0.11, -67.46, 2, 0)
  40. MovementLoopAddLocation(NPC, -32.17, -0.14, -72.02, 2, 0)
  41. MovementLoopAddLocation(NPC, -12.93, -0.1, -89.93, 2, 0, "ChooseMovement")
  42. end
  43. function RouteTwo(NPC, Spawn)
  44. MovementLoopAddLocation(NPC, -12.93, -0.1, -89.93, 2, 0)
  45. MovementLoopAddLocation(NPC, -33.13, -0.01, -109.44, 2, 0)
  46. MovementLoopAddLocation(NPC, -34.35, -0.09, -129.23, 2, 0)
  47. MovementLoopAddLocation(NPC, -37.46, 0.03, -133.34, 2, 0)
  48. MovementLoopAddLocation(NPC, -54.69, 0.02, -150.55, 2, 0)
  49. MovementLoopAddLocation(NPC, -63.81, 0.09, -152.77, 2, 0)
  50. MovementLoopAddLocation(NPC, -81, -0.08, -152.43, 2, 0)
  51. MovementLoopAddLocation(NPC, -88.37, -0.09, -157.28, 2, 0)
  52. MovementLoopAddLocation(NPC, -88.99, -0.06, -175.1, 2, 0)
  53. MovementLoopAddLocation(NPC, -83.61, -0.07, -183.01, 2, 0)
  54. MovementLoopAddLocation(NPC, -83.9, -0.06, -190.1, 2, 0)
  55. MovementLoopAddLocation(NPC, -89.36, 0.43, -193.91, 2, 0)
  56. MovementLoopAddLocation(NPC, -93.06, 0.03, -194.46, 2, 0)
  57. MovementLoopAddLocation(NPC, -85.95, -0.1, -192.12, 2, 0)
  58. MovementLoopAddLocation(NPC, -83.5, -0.08, -187.63, 2, 0)
  59. MovementLoopAddLocation(NPC, -85.62, -0.09, -180.8, 2, 0)
  60. MovementLoopAddLocation(NPC, -89.13, -0.06, -175.07, 2, 0)
  61. MovementLoopAddLocation(NPC, -88.16, -0.09, -155.92, 2, 0)
  62. MovementLoopAddLocation(NPC, -82.2, -0.08, -153.12, 2, 0)
  63. MovementLoopAddLocation(NPC, -58.56, -0.13, -152.77, 2, 0)
  64. MovementLoopAddLocation(NPC, -34.47, -0.08, -130.82, 2, 0)
  65. MovementLoopAddLocation(NPC, -34.47, -0.08, -130.82, 2, 0)
  66. MovementLoopAddLocation(NPC, -34.08, -0.03, -110.26, 2, 0)
  67. MovementLoopAddLocation(NPC, -12.93, -0.1, -89.93, 2, 0, "ChooseMovement")
  68. end
  69. function RouteThree(NPC, Spawn)
  70. MovementLoopAddLocation(NPC, -12.93, -0.1, -89.93, 2, 0)
  71. MovementLoopAddLocation(NPC, 2.15, -0.03, -106.23, 2, 0)
  72. MovementLoopAddLocation(NPC, 5.87, -0.02, -108.25, 2, 0)
  73. MovementLoopAddLocation(NPC, 12.28, 0.18, -103.52, 2, 0)
  74. MovementLoopAddLocation(NPC, 21.4, 0.12, -94.55, 2, 0)
  75. MovementLoopAddLocation(NPC, 21.42, 0.47, -67.62, 2, 0)
  76. MovementLoopAddLocation(NPC, 14.27, -0.11, -60.73, 2, 0)
  77. MovementLoopAddLocation(NPC, -2.81, -0.09, -59.95, 2, 0)
  78. MovementLoopAddLocation(NPC, -14.76, -0.07, -48.36, 2, 0)
  79. MovementLoopAddLocation(NPC, -14.94, -0.11, -41.49, 2, 0)
  80. MovementLoopAddLocation(NPC, -1.56, 0.17, -27.95, 2, 0)
  81. MovementLoopAddLocation(NPC, -0.23, -0.11, -21.61, 2, 0)
  82. MovementLoopAddLocation(NPC, -0.17, -0.08, -18.38, 2, 0)
  83. MovementLoopAddLocation(NPC, 0.14, -0.11, -23.37, 2, 0)
  84. MovementLoopAddLocation(NPC, -3.09, -0.1, -30.03, 2, 0)
  85. MovementLoopAddLocation(NPC, -14.32, -0.1, -40.65, 2, 0)
  86. MovementLoopAddLocation(NPC, -15.24, -0.1, -48.01, 2, 0)
  87. MovementLoopAddLocation(NPC, -5.73, -0.11, -57.48, 2, 0)
  88. MovementLoopAddLocation(NPC, -1.9, -0.11, -60.12, 2, 0)
  89. MovementLoopAddLocation(NPC, 14.39, -0.12, -61.1, 2, 0)
  90. MovementLoopAddLocation(NPC, 18.11, -0.1, -63.59, 2, 0)
  91. MovementLoopAddLocation(NPC, 21.41, -0.08, -70.98, 2, 0)
  92. MovementLoopAddLocation(NPC, 20.96, 0.11, -95.74, 2, 0)
  93. MovementLoopAddLocation(NPC, 6.87, -0.05, -108.98, 2, 0)
  94. MovementLoopAddLocation(NPC, 2.94, -0.05, -106.79, 2, 0)
  95. MovementLoopAddLocation(NPC, -12.93, -0.1, -89.93, 2, 0, "ChooseMovement")
  96. end
  97. function respawn(NPC, Spawn)
  98. spawn(NPC)
  99. end
  100. function hailed(NPC, Spawn)
  101. FaceTarget(NPC, Spawn)
  102. end