crawler_hatchling.lua 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. --[[
  2. Script Name : crawler_hatchling.lua
  3. Script Purpose : Waypoint Path for crawler_hatchling.lua
  4. Script Author : Devn00b
  5. Script Date : 05/10/2020 09:24:28 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 = 5
  12. local difficulty1 = 6
  13. local hp1 = 150
  14. local power1 = 150
  15. local difficulty2 = 6
  16. local hp2 = 130
  17. local power2 = 130
  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. waypoints(NPC)
  35. end
  36. function waypoints(NPC)
  37. MovementLoopAddLocation(NPC, 15.45, -0.11, -61.23, 2, math.random(0,2))
  38. MovementLoopAddLocation(NPC, 3.41, -0.08, -60.75, 2, math.random(0,2))
  39. MovementLoopAddLocation(NPC, 15.97, -0.04, -60.37, 2, math.random(0,2))
  40. MovementLoopAddLocation(NPC, 21.32, 0.43, -67.5, 2, math.random(0,2))
  41. MovementLoopAddLocation(NPC, 21.33, -0.35, -81.34, 2, math.random(0,2))
  42. MovementLoopAddLocation(NPC, 23.6, 0.07, -96.31, 2, math.random(0,2))
  43. MovementLoopAddLocation(NPC, 19.69, 0.35, -92.12, 2, math.random(0,2))
  44. MovementLoopAddLocation(NPC, 18.98, 0.17, -89.72, 2, math.random(0,2))
  45. MovementLoopAddLocation(NPC, 23.32, 0.17, -87.36, 2, math.random(0,2))
  46. MovementLoopAddLocation(NPC, 18.94, -0.26, -86.35, 2, math.random(0,2))
  47. MovementLoopAddLocation(NPC, 22.77, -0.37, -81.99, 2, math.random(0,2))
  48. MovementLoopAddLocation(NPC, 18.28, -0.74, -79.08, 2, math.random(0,2))
  49. MovementLoopAddLocation(NPC, 24.53, -0.82, -78.39, 2, math.random(0,2))
  50. MovementLoopAddLocation(NPC, 19.36, -0.59, -75.07, 2, math.random(0,2))
  51. MovementLoopAddLocation(NPC, 22.35, 0.58, -68.76, 2, math.random(0,2))
  52. MovementLoopAddLocation(NPC, 16.08, -0.07, -64.22, 2, math.random(0,2))
  53. MovementLoopAddLocation(NPC, 14.66, -0.02, -58.89, 2, math.random(0,2))
  54. MovementLoopAddLocation(NPC, 11.95, -0.05, -62.01, 2, math.random(0,2))
  55. MovementLoopAddLocation(NPC, 1.33, -0.02, -62.26, 2, math.random(0,2))
  56. MovementLoopAddLocation(NPC, -7.18, -0.05, -59.97, 2, math.random(0,2))
  57. MovementLoopAddLocation(NPC, -4.41, -0.05, -55.97, 2, math.random(0,2))
  58. MovementLoopAddLocation(NPC, -2.51, -0.06, -62.14, 2, math.random(0,2))
  59. MovementLoopAddLocation(NPC, 0.08, 0.04, -58.23, 2, math.random(0,2))
  60. MovementLoopAddLocation(NPC, 4.19, -0.06, -57.79, 2, math.random(0,2))
  61. MovementLoopAddLocation(NPC, 4.62, -0.08, -64.43, 2, math.random(0,2))
  62. MovementLoopAddLocation(NPC, 4.85, -0.09, -71.22, 2, math.random(0,2))
  63. MovementLoopAddLocation(NPC, 4.62, -0.08, -64.43, 2, math.random(0,2))
  64. MovementLoopAddLocation(NPC, 4.19, -0.06, -57.79, 2, math.random(0,2))
  65. MovementLoopAddLocation(NPC, 0.08, 0.04, -58.23, 2, math.random(0,2))
  66. MovementLoopAddLocation(NPC, -2.51, -0.06, -62.14, 2, math.random(0,2))
  67. MovementLoopAddLocation(NPC, -4.41, -0.05, -55.97, 2, math.random(0,2))
  68. MovementLoopAddLocation(NPC, -7.18, -0.05, -59.97, 2, math.random(0,2))
  69. MovementLoopAddLocation(NPC, 1.33, -0.02, -62.26, 2, math.random(0,2))
  70. MovementLoopAddLocation(NPC, 11.95, -0.05, -62.01, 2, math.random(0,2))
  71. MovementLoopAddLocation(NPC, 14.66, -0.02, -58.89, 2, math.random(0,2))
  72. MovementLoopAddLocation(NPC, 16.08, -0.07, -64.22, 2, math.random(0,2))
  73. MovementLoopAddLocation(NPC, 22.35, 0.58, -68.76, 2, math.random(0,2))
  74. MovementLoopAddLocation(NPC, 19.36, -0.59, -75.07, 2, math.random(0,2))
  75. MovementLoopAddLocation(NPC, 24.53, -0.82, -78.39, 2, math.random(0,2))
  76. MovementLoopAddLocation(NPC, 18.28, -0.74, -79.08, 2, math.random(0,2))
  77. MovementLoopAddLocation(NPC, 22.77, -0.37, -81.99, 2, math.random(0,2))
  78. MovementLoopAddLocation(NPC, 18.94, -0.26, -86.35, 2, math.random(0,2))
  79. MovementLoopAddLocation(NPC, 23.32, 0.17, -87.36, 2, math.random(0,2))
  80. MovementLoopAddLocation(NPC, 18.98, 0.17, -89.72, 2, math.random(0,2))
  81. MovementLoopAddLocation(NPC, 19.69, 0.35, -92.12, 2, math.random(0,2))
  82. MovementLoopAddLocation(NPC, 23.6, 0.07, -96.31, 2, math.random(0,2))
  83. MovementLoopAddLocation(NPC, 21.33, -0.35, -81.34, 2, math.random(0,2))
  84. MovementLoopAddLocation(NPC, 21.32, 0.43, -67.5, 2, math.random(0,2))
  85. MovementLoopAddLocation(NPC, 15.97, -0.04, -60.37, 2, math.random(0,2))
  86. MovementLoopAddLocation(NPC, 3.41, -0.08, -60.75, 2, math.random(0,2))
  87. MovementLoopAddLocation(NPC, 15.45, -0.11, -61.23, 2, math.random(0,2))
  88. end