rifter_hatchling3.lua 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. --[[
  2. Script Name : rifter_hatchling3.lua
  3. Script Purpose : Waypoint Path for rifter_hatchling3.lua
  4. Script Author : Devn00b
  5. Script Date : 05/13/2020 02:30:35 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 6
  11. local level2 = 7
  12. local difficulty1 = 6
  13. local hp1 = 150
  14. local power1 = 150
  15. local difficulty2 = 6
  16. local hp2 = 215
  17. local power2 = 215
  18. if Level == level1 then
  19. SpawnSet(NPC, "difficulty", difficulty1)
  20. SpawnSet(NPC, "hp", hp1)
  21. SpawnSet(NPC, "power", power1)
  22. elseif Level == level2
  23. then
  24. SpawnSet(NPC, "difficulty", difficulty2)
  25. SpawnSet(NPC, "hp", hp2)
  26. SpawnSet(NPC, "power", power2)
  27. end
  28. waypoints(NPC)
  29. end
  30. function hailed(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. end
  33. function respawn(NPC)
  34. spawn(NPC)
  35. end
  36. function waypoints(NPC)
  37. MovementLoopAddLocation(NPC, -128.28, 0.3, -128.03, 2, math.random(0,20))
  38. MovementLoopAddLocation(NPC, -122.26, 0.55, -119.95, 2, math.random(0,20))
  39. MovementLoopAddLocation(NPC, -129.26, 0.21, -128.21, 2, math.random(0,20))
  40. MovementLoopAddLocation(NPC, -129.34, -0.07, -142.95, 2, math.random(0,20))
  41. MovementLoopAddLocation(NPC, -121.42, 0.1, -154.08, 2, math.random(0,20))
  42. MovementLoopAddLocation(NPC, -119.4, 0.29, -151.86, 2, math.random(0,20))
  43. MovementLoopAddLocation(NPC, -126.32, -0.1, -145.11, 2, math.random(0,20))
  44. MovementLoopAddLocation(NPC, -129.07, -0.06, -137.65, 2, math.random(0,20))
  45. MovementLoopAddLocation(NPC, -140.47, -0.04, -138.02, 2, math.random(0,20))
  46. MovementLoopAddLocation(NPC, -145.65, -0.06, -138.2, 2, math.random(0,20))
  47. MovementLoopAddLocation(NPC, -152.68, -0.14, -135.35, 2, math.random(0,20))
  48. MovementLoopAddLocation(NPC, -157.42, -0.07, -136.59, 2, math.random(0,20))
  49. MovementLoopAddLocation(NPC, -160.5, -0.07, -127.73, 2, math.random(0,20))
  50. MovementLoopAddLocation(NPC, -155.92, -0.05, -119.43, 2, math.random(0,20))
  51. MovementLoopAddLocation(NPC, -180.08, 1.17, -118.57, 2, math.random(0,20))
  52. MovementLoopAddLocation(NPC, -181.63, -0.03, -108.08, 2, math.random(0,20))
  53. MovementLoopAddLocation(NPC, -198.44, -0.08, -102.86, 2, math.random(0,20))
  54. MovementLoopAddLocation(NPC, -198.59, 0, -100.08, 2, math.random(0,20))
  55. MovementLoopAddLocation(NPC, -198.75, -0.04, -94.03, 2, math.random(0,20))
  56. MovementLoopAddLocation(NPC, -186.36, -0.05, -93.43, 2, math.random(0,20))
  57. MovementLoopAddLocation(NPC, -178.34, -0.28, -87.05, 2, math.random(0,20))
  58. MovementLoopAddLocation(NPC, -177.03, -0.26, -74.34, 2, math.random(0,20))
  59. MovementLoopAddLocation(NPC, -163.94, -0.25, -76.12, 2, math.random(0,20))
  60. MovementLoopAddLocation(NPC, -149.05, -0.12, -84.3, 2, math.random(0,20))
  61. MovementLoopAddLocation(NPC, -160.63, -0.09, -118.12, 2, math.random(0,20))
  62. MovementLoopAddLocation(NPC, -149.05, -0.12, -84.3, 2, math.random(0,20))
  63. MovementLoopAddLocation(NPC, -163.94, -0.25, -76.12, 2, math.random(0,20))
  64. MovementLoopAddLocation(NPC, -177.03, -0.26, -74.34, 2, math.random(0,20))
  65. MovementLoopAddLocation(NPC, -178.34, -0.28, -87.05, 2, math.random(0,20))
  66. MovementLoopAddLocation(NPC, -186.36, -0.05, -93.43, 2, math.random(0,20))
  67. MovementLoopAddLocation(NPC, -198.75, -0.04, -94.03, 2, math.random(0,20))
  68. MovementLoopAddLocation(NPC, -198.59, 0, -100.08, 2, math.random(0,20))
  69. MovementLoopAddLocation(NPC, -198.44, -0.08, -102.86, 2, math.random(0,20))
  70. MovementLoopAddLocation(NPC, -181.63, -0.03, -108.08, 2, math.random(0,20))
  71. MovementLoopAddLocation(NPC, -180.08, 1.17, -118.57, 2, math.random(0,20))
  72. MovementLoopAddLocation(NPC, -155.92, -0.05, -119.43, 2, math.random(0,20))
  73. MovementLoopAddLocation(NPC, -160.5, -0.07, -127.73, 2, math.random(0,20))
  74. MovementLoopAddLocation(NPC, -157.42, -0.07, -136.59, 2, math.random(0,20))
  75. MovementLoopAddLocation(NPC, -152.68, -0.14, -135.35, 2, math.random(0,20))
  76. MovementLoopAddLocation(NPC, -145.65, -0.06, -138.2, 2, math.random(0,20))
  77. MovementLoopAddLocation(NPC, -140.47, -0.04, -138.02, 2, math.random(0,20))
  78. MovementLoopAddLocation(NPC, -129.07, -0.06, -137.65, 2, math.random(0,20))
  79. MovementLoopAddLocation(NPC, -126.32, -0.1, -145.11, 2, math.random(0,20))
  80. MovementLoopAddLocation(NPC, -119.4, 0.29, -151.86, 2, math.random(0,20))
  81. MovementLoopAddLocation(NPC, -121.42, 0.1, -154.08, 2, math.random(0,20))
  82. MovementLoopAddLocation(NPC, -129.34, -0.07, -142.95, 2, math.random(0,20))
  83. MovementLoopAddLocation(NPC, -129.26, 0.21, -128.21, 2, math.random(0,20))
  84. MovementLoopAddLocation(NPC, -122.26, 0.55, -119.95, 2, math.random(0,20))
  85. MovementLoopAddLocation(NPC, -128.28, 0.3, -128.03, 2, math.random(0,20))
  86. end