9
3

ajuvenileshrillerRail2.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. --[[
  2. Script Name : SpawnScripts/DownBelow_Classic/ajuvenileshrillerRail2.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.11.11 09:11:28
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. --AddTimer(NPC,(MakeRandomInt(0,8000)),"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, 2, -136.44, 2, 0)
  26. MovementLoopAddLocation(NPC, -127.63, 2, -128.26, 2, 0)
  27. MovementLoopAddLocation(NPC, -122.16, 2, -120.38, 2, 0)
  28. MovementLoopAddLocation(NPC, -113.81, 2, -115.16, 2, 0)
  29. MovementLoopAddLocation(NPC, -106.32, 2, -117.06, 2, 0)
  30. MovementLoopAddLocation(NPC, -87.83, 2, -134.85, 2, 0)
  31. MovementLoopAddLocation(NPC, -103.93, 2, -118.45, 2, 0)
  32. MovementLoopAddLocation(NPC, -107.44, 2, -116.05, 2, 0)
  33. MovementLoopAddLocation(NPC, -113.72, 2, -115.79, 2, 0)
  34. MovementLoopAddLocation(NPC, -121.54, 2, -119.76, 2, 0)
  35. MovementLoopAddLocation(NPC, -127.27, 2, -126.7, 2, 0)
  36. MovementLoopAddLocation(NPC, -128.2, 2, -137.16, 2, 0, "ChooseMovement")
  37. end
  38. function RouteTwo(NPC, Spawn)
  39. MovementLoopAddLocation(NPC, -128.2, 2, -137.16, 2, 0)
  40. MovementLoopAddLocation(NPC, -151.92, 2, -136.84, 2, 0)
  41. MovementLoopAddLocation(NPC, -156.74, 2, -135.94, 2, 0)
  42. MovementLoopAddLocation(NPC, -158.81, 2, -132.26, 2, 0)
  43. MovementLoopAddLocation(NPC, -158.1, 2, -108.92, 2, 0)
  44. MovementLoopAddLocation(NPC, -157.15, 2, -105.8, 2, 0)
  45. MovementLoopAddLocation(NPC, -146.23, 2, -79.18, 2, 0)
  46. MovementLoopAddLocation(NPC, -158.49, 2, -110.44, 2, 0)
  47. MovementLoopAddLocation(NPC, -158.87, 2, -131.56, 2, 0)
  48. MovementLoopAddLocation(NPC, -157.68, 2, -134.16, 2, 0)
  49. MovementLoopAddLocation(NPC, -156.09, 2, -136.1, 2, 0)
  50. MovementLoopAddLocation(NPC, -130.92, 2, -136.47, 2, 0)
  51. MovementLoopAddLocation(NPC, -128.2, 2, -137.16, 2, 0, "ChooseMovement")
  52. end
  53. function RouteThree(NPC, Spawn)
  54. MovementLoopAddLocation(NPC, -128.2, 2, -137.16, 2, 0)
  55. MovementLoopAddLocation(NPC, -127.9, 2, -144.12, 2, 0)
  56. MovementLoopAddLocation(NPC, -124.11, 2, -149.26, 2, 0)
  57. MovementLoopAddLocation(NPC, -121.28, 2, -151.86, 2, 0)
  58. MovementLoopAddLocation(NPC, -119.44, 2, -156.46, 2, 0)
  59. MovementLoopAddLocation(NPC, -119.57, 2, -176.72, 2, 0)
  60. MovementLoopAddLocation(NPC, -121.85, 2, -180.23, 2, 0)
  61. MovementLoopAddLocation(NPC, -127.11, 2, -181.54, 2, 0)
  62. MovementLoopAddLocation(NPC, -137.84, 2, -180.58, 2, 0)
  63. MovementLoopAddLocation(NPC, -149.86, 2, -176.32, 2, 0)
  64. MovementLoopAddLocation(NPC, -159.7, 2, -171.93, 2, 0)
  65. MovementLoopAddLocation(NPC, -165.1, 2, -171.13, 2, 0)
  66. MovementLoopAddLocation(NPC, -172.22, 2, -174.76, 2, 0)
  67. MovementLoopAddLocation(NPC, -173.23, 2, -181.56, 2, 0)
  68. MovementLoopAddLocation(NPC, -173.82, 2, -187.26, 2, 0)
  69. MovementLoopAddLocation(NPC, -176.76, 2, -189.14, 2, 0)
  70. MovementLoopAddLocation(NPC, -180.28, 2, -189.89, 2, 0)
  71. MovementLoopAddLocation(NPC, -183.87, 2, -189.87, 2, 0)
  72. MovementLoopAddLocation(NPC, -179.52, 2, -189.62, 2, 0)
  73. MovementLoopAddLocation(NPC, -175.26, 2, -188.5, 2, 0)
  74. MovementLoopAddLocation(NPC, -173.83, 2, -186.16, 2, 0)
  75. MovementLoopAddLocation(NPC, -173.06, 2, -181.01, 2, 0)
  76. MovementLoopAddLocation(NPC, -172.01, 2, -174.74, 2, 0)
  77. MovementLoopAddLocation(NPC, -166.02, 2, -171.28, 2, 0)
  78. MovementLoopAddLocation(NPC, -160.66, 2, -171.5, 2, 0)
  79. MovementLoopAddLocation(NPC, -150.21, 2, -175.95, 2, 0)
  80. MovementLoopAddLocation(NPC, -138.22, 2, -180.74, 2, 0)
  81. MovementLoopAddLocation(NPC, -127.92, 2, -181.49, 2, 0)
  82. MovementLoopAddLocation(NPC, -122.35, 2, -180.56, 2, 0)
  83. MovementLoopAddLocation(NPC, -119.5, 2, -175.37, 2, 0)
  84. MovementLoopAddLocation(NPC, -119.46, 2, -160.9, 2, 0)
  85. MovementLoopAddLocation(NPC, -120.44, 2, -152.8, 2, 0)
  86. MovementLoopAddLocation(NPC, -123.36, 2, -149.91, 2, 0)
  87. MovementLoopAddLocation(NPC, -127.61, 2, -145.37, 2, 0)
  88. MovementLoopAddLocation(NPC, -128.2, 2, -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