9
3

crawler_hatchling5.lua 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --[[
  2. Script Name : crawler_hatchling5.lua
  3. Script Purpose : Waypoint Path for crawler_hatchling5.lua
  4. Script Author : Devn00b
  5. Script Date : 05/11/2020 02:50:11 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 5
  11. local level2 = 6
  12. local difficulty1 = 6
  13. local hp1 = 130
  14. local power1 = 65
  15. local difficulty2 = 6
  16. local hp2 = 150
  17. local power2 = 80
  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, -19.88, -0.1, -80.81, 1, math.random(0,10))
  38. MovementLoopAddLocation(NPC, -22.24, -0.01, -83.13, 1, math.random(0,10))
  39. MovementLoopAddLocation(NPC, -21.97, -0.12, -80.78, 1, 0)
  40. MovementLoopAddLocation(NPC, -29.52, 0.31, -69.66, 1, math.random(0,10))
  41. MovementLoopAddLocation(NPC, -31.39, -0.07, -75.37, 1, math.random(0,10))
  42. MovementLoopAddLocation(NPC, -21.39, -0.04, -76.72, 1, math.random(0,10))
  43. MovementLoopAddLocation(NPC, -39.9, -0.09, -65.14, 1, math.random(0,10))
  44. MovementLoopAddLocation(NPC, -34.45, -0.07, -74.03, 1, math.random(0,10))
  45. MovementLoopAddLocation(NPC, -32.27, -0.04, -68.44, 1, math.random(0,10))
  46. MovementLoopAddLocation(NPC, -42.18, -0.03, -70.75, 1, math.random(0,10))
  47. MovementLoopAddLocation(NPC, -41.82, -0.07, -69.2, 1, math.random(0,10))
  48. MovementLoopAddLocation(NPC, -48.41, -0.12, -67.65, 1, math.random(0,10))
  49. MovementLoopAddLocation(NPC, -55.18, -0.08, -70.95, 1, math.random(0,10))
  50. MovementLoopAddLocation(NPC, -45.92, -0.09, -63.3, 1, math.random(0,10))
  51. MovementLoopAddLocation(NPC, -35.02, -0.09, -73.34, 1, math.random(0,10))
  52. MovementLoopAddLocation(NPC, -34.15, -0.09, -72.18, 1, math.random(0,10))
  53. MovementLoopAddLocation(NPC, -19, -0.08, -73.98, 1, math.random(0,10))
  54. MovementLoopAddLocation(NPC, -21.63, -0.08, -68.86, 1, math.random(0,10))
  55. MovementLoopAddLocation(NPC, -17.85, -0.08, -73.27, 1, math.random(0,10))
  56. MovementLoopAddLocation(NPC, -28.95, -0.14, -74.62, 1, math.random(0,10))
  57. MovementLoopAddLocation(NPC, -17.85, -0.08, -73.27, 1, math.random(0,10))
  58. MovementLoopAddLocation(NPC, -21.63, -0.08, -68.86, 1, math.random(0,10))
  59. MovementLoopAddLocation(NPC, -19, -0.08, -73.98, 1, math.random(0,10))
  60. MovementLoopAddLocation(NPC, -34.15, -0.09, -72.18, 1, math.random(0,10))
  61. MovementLoopAddLocation(NPC, -35.02, -0.09, -73.34, 1, math.random(0,10))
  62. MovementLoopAddLocation(NPC, -45.92, -0.09, -63.3, 1, math.random(0,10))
  63. MovementLoopAddLocation(NPC, -55.18, -0.08, -70.95, 1, math.random(0,10))
  64. MovementLoopAddLocation(NPC, -48.41, -0.12, -67.65, 1, math.random(0,10))
  65. MovementLoopAddLocation(NPC, -41.82, -0.07, -69.2, 1, math.random(0,10))
  66. MovementLoopAddLocation(NPC, -42.18, -0.03, -70.75, 1, math.random(0,10))
  67. MovementLoopAddLocation(NPC, -32.27, -0.04, -68.44, 1, math.random(0,10))
  68. MovementLoopAddLocation(NPC, -34.45, -0.07, -74.03, 1, math.random(0,10))
  69. MovementLoopAddLocation(NPC, -39.9, -0.09, -65.14, 1, math.random(0,10))
  70. MovementLoopAddLocation(NPC, -21.39, -0.04, -76.72, 1, math.random(0,10))
  71. MovementLoopAddLocation(NPC, -31.39, -0.07, -75.37, 1, math.random(0,10))
  72. MovementLoopAddLocation(NPC, -29.52, 0.31, -69.66, 1, math.random(0,10))
  73. MovementLoopAddLocation(NPC, -21.97, -0.12, -80.78, 1, math.random(0,10))
  74. MovementLoopAddLocation(NPC, -22.24, -0.01, -83.13, 1, math.random(0,10))
  75. MovementLoopAddLocation(NPC, -19.88, -0.1, -80.81, 1, math.random(0,10))
  76. end