tomb_sentry8.lua 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. --[[
  2. Script Name : tomb_sentry8.lua
  3. Script Purpose : Waypoint Path for tomb_sentry8.lua
  4. Script Author : Devn00b
  5. Script Date : 06/30/2020 10:02:20 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 =13
  11. local level2 = 14
  12. local difficulty1 = 6
  13. local hp1 = 680
  14. local power1 = 205
  15. local difficulty2 = 6
  16. local hp2 = 795
  17. local power2 = 240
  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. end
  35. function waypoints(NPC)
  36. MovementLoopAddLocation(NPC, 209.68, -6.98, -170.15, 2, math.random(0,8))
  37. MovementLoopAddLocation(NPC, 199.71, -7.07, -162.36, 2, 0)
  38. MovementLoopAddLocation(NPC, 176.84, -7.04, -163.25, 2, 0)
  39. MovementLoopAddLocation(NPC, 171.12, -7.04, -170.79, 2, 0)
  40. MovementLoopAddLocation(NPC, 169.58, -7.05, -176.84, 2, 0)
  41. MovementLoopAddLocation(NPC, 169.73, -6.93, -185.04, 2, 0)
  42. MovementLoopAddLocation(NPC, 168.89, -6.98, -170.23, 2, 0)
  43. MovementLoopAddLocation(NPC, 174.09, -7, -166.72, 2, 0)
  44. MovementLoopAddLocation(NPC, 177.39, -7.05, -165.44, 2, 0)
  45. MovementLoopAddLocation(NPC, 199.37, -6.97, -164.48, 2, 0)
  46. MovementLoopAddLocation(NPC, 210.13, -7.02, -172.32, 2, 0)
  47. MovementLoopAddLocation(NPC, 211.52, -7.03, -190.27, 2, 0)
  48. MovementLoopAddLocation(NPC, 225.28, -6.98, -202.88, 2, 0)
  49. MovementLoopAddLocation(NPC, 252.58, -6.99, -203, 2, 0)
  50. MovementLoopAddLocation(NPC, 255.67, -6.91, -200.68, 2, 0)
  51. MovementLoopAddLocation(NPC, 255.88, -7, -195.79, 2, 0)
  52. MovementLoopAddLocation(NPC, 256.12, -7.04, -190.29, 2, 0)
  53. MovementLoopAddLocation(NPC, 249.51, -6.97, -179.71, 2, 0)
  54. MovementLoopAddLocation(NPC, 248.32, -6.86, -167.06, 2, 0)
  55. MovementLoopAddLocation(NPC, 235.27, -6.86, -153.99, 2, 0)
  56. MovementLoopAddLocation(NPC, 234.34, -6.86, -150.15, 2, 0)
  57. MovementLoopAddLocation(NPC, 236.87, -6.86, -145.61, 2, 0)
  58. MovementLoopAddLocation(NPC, 237.67, -6.86, -135.31, 2, 0)
  59. MovementLoopAddLocation(NPC, 243.13, -6.86, -135.45, 2, 0)
  60. MovementLoopAddLocation(NPC, 242.82, -6.86, -119.22, 2, 0)
  61. MovementLoopAddLocation(NPC, 244.9, -6.86, -115.42, 2, 0)
  62. MovementLoopAddLocation(NPC, 246.73, -6.86, -103.05, 2, 0)
  63. MovementLoopAddLocation(NPC, 247.07, -6.86, -98.07, 2, 0)
  64. MovementLoopAddLocation(NPC, 247.3, -6.86, -82.33, 2, 0)
  65. MovementLoopAddLocation(NPC, 237.3, -6.86, -82.17, 2, 0)
  66. MovementLoopAddLocation(NPC, 237.29, -7, -68.64, 2, math.random(0,8))
  67. MovementLoopAddLocation(NPC, 237.3, -6.86, -82.17, 2, 0)
  68. MovementLoopAddLocation(NPC, 247.3, -6.86, -82.33, 2, 0)
  69. MovementLoopAddLocation(NPC, 247.07, -6.86, -98.07, 2, 0)
  70. MovementLoopAddLocation(NPC, 246.73, -6.86, -103.05, 2, 0)
  71. MovementLoopAddLocation(NPC, 244.9, -6.86, -115.42, 2, 0)
  72. MovementLoopAddLocation(NPC, 242.82, -6.86, -119.22, 2, 0)
  73. MovementLoopAddLocation(NPC, 243.13, -6.86, -135.45, 2, 0)
  74. MovementLoopAddLocation(NPC, 237.67, -6.86, -135.31, 2, 0)
  75. MovementLoopAddLocation(NPC, 236.87, -6.86, -145.61, 2, 0)
  76. MovementLoopAddLocation(NPC, 234.34, -6.86, -150.15, 2, 0)
  77. MovementLoopAddLocation(NPC, 235.27, -6.86, -153.99, 2, 0)
  78. MovementLoopAddLocation(NPC, 248.32, -6.86, -167.06, 2, 0)
  79. MovementLoopAddLocation(NPC, 249.51, -6.97, -179.71, 2, 0)
  80. MovementLoopAddLocation(NPC, 256.12, -7.04, -190.29, 2, 0)
  81. MovementLoopAddLocation(NPC, 255.88, -7, -195.79, 2, 0)
  82. MovementLoopAddLocation(NPC, 255.67, -6.91, -200.68, 2, 0)
  83. MovementLoopAddLocation(NPC, 252.58, -6.99, -203, 2, 0)
  84. MovementLoopAddLocation(NPC, 225.28, -6.98, -202.88, 2, 0)
  85. MovementLoopAddLocation(NPC, 211.52, -7.03, -190.27, 2, 0)
  86. MovementLoopAddLocation(NPC, 210.13, -7.02, -172.32, 2, 0)
  87. MovementLoopAddLocation(NPC, 199.37, -6.97, -164.48, 2, 0)
  88. MovementLoopAddLocation(NPC, 177.39, -7.05, -165.44, 2, 0)
  89. MovementLoopAddLocation(NPC, 174.09, -7, -166.72, 2, 0)
  90. MovementLoopAddLocation(NPC, 168.89, -6.98, -170.23, 2, 0)
  91. MovementLoopAddLocation(NPC, 169.73, -6.93, -185.04, 2, 0)
  92. MovementLoopAddLocation(NPC, 169.58, -7.05, -176.84, 2, 0)
  93. MovementLoopAddLocation(NPC, 171.12, -7.04, -170.79, 2, 0)
  94. MovementLoopAddLocation(NPC, 176.84, -7.04, -163.25, 2, 0)
  95. MovementLoopAddLocation(NPC, 199.71, -7.07, -162.36, 2, 0)
  96. MovementLoopAddLocation(NPC, 209.68, -6.98, -170.15, 2, math.random(0,8))
  97. end