tomb_sentry5.lua 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. --[[
  2. Script Name : tomb_sentry5.lua
  3. Script Purpose : Waypoint Path for tomb_sentry5.lua
  4. Script Author : Devn00b
  5. Script Date : 06/30/2020 08:29:31 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, 234.8, -6.86, -118.26, 2, math.random(0,8))
  37. MovementLoopAddLocation(NPC, 248.62, -6.86, -118.86, 2, math.random(0,8))
  38. MovementLoopAddLocation(NPC, 249.62, -6.86, -108.96, 2, math.random(0,8))
  39. MovementLoopAddLocation(NPC, 250.21, -5, -101.77, 2, math.random(0,8))
  40. MovementLoopAddLocation(NPC, 252.8, -5, -102.12, 2, math.random(0,8))
  41. MovementLoopAddLocation(NPC, 252.9, 0, -118.38, 2, math.random(0,8))
  42. MovementLoopAddLocation(NPC, 234.03, 0, -118.42, 2, math.random(0,8))
  43. MovementLoopAddLocation(NPC, 253.04, 0, -118.15, 2, math.random(0,8))
  44. MovementLoopAddLocation(NPC, 252.92, -5, -102.41, 2, math.random(0,8))
  45. MovementLoopAddLocation(NPC, 250.31, -5, -102.51, 2, math.random(0,8))
  46. MovementLoopAddLocation(NPC, 249.56, -6.86, -108.29, 2, math.random(0,8))
  47. MovementLoopAddLocation(NPC, 234.38, -6.86, -107.95, 2, math.random(0,8))
  48. MovementLoopAddLocation(NPC, 234.06, -6.86, -88.12, 2, math.random(0,8))
  49. MovementLoopAddLocation(NPC, 235.59, -6.86, -99.93, 2, math.random(0,8))
  50. MovementLoopAddLocation(NPC, 236.43, -6.86, -108.36, 2, math.random(0,8))
  51. MovementLoopAddLocation(NPC, 247.08, -6.86, -108.22, 2, math.random(0,8))
  52. MovementLoopAddLocation(NPC, 247.03, -6.86, -82.16, 2, math.random(0,8))
  53. MovementLoopAddLocation(NPC, 234.31, -6.86, -82.38, 2, math.random(0,8))
  54. MovementLoopAddLocation(NPC, 251.53, -6.86, -82.19, 2, math.random(0,8))
  55. MovementLoopAddLocation(NPC, 248.15, -6.86, -89.98, 2, math.random(0,8))
  56. MovementLoopAddLocation(NPC, 246.75, -6.86, -101.1, 2, math.random(0,8))
  57. MovementLoopAddLocation(NPC, 243.05, -6.86, -120.64, 2, math.random(0,8))
  58. MovementLoopAddLocation(NPC, 242.81, -6.86, -132.45, 2, math.random(0,8))
  59. MovementLoopAddLocation(NPC, 243.21, -6.86, -134.51, 2, math.random(0,8))
  60. MovementLoopAddLocation(NPC, 250.06, -6.86, -144.34, 2, math.random(0,8))
  61. MovementLoopAddLocation(NPC, 250.62, -5.02, -149.25, 2, math.random(0,8))
  62. MovementLoopAddLocation(NPC, 253.27, -5, -149.58, 2, math.random(0,8))
  63. MovementLoopAddLocation(NPC, 254.3, 0, -138.99, 2, math.random(0,8))
  64. MovementLoopAddLocation(NPC, 253.96, 0, -135.29, 2, math.random(0,8))
  65. MovementLoopAddLocation(NPC, 237.93, 1.03, -134.22, 2, math.random(0,8))
  66. MovementLoopAddLocation(NPC, 253.96, 0, -135.29, 2, math.random(0,8))
  67. MovementLoopAddLocation(NPC, 254.3, 0, -138.99, 2, math.random(0,8))
  68. MovementLoopAddLocation(NPC, 253.27, -5, -149.58, 2, math.random(0,8))
  69. MovementLoopAddLocation(NPC, 250.62, -5.02, -149.25, 2, math.random(0,8))
  70. MovementLoopAddLocation(NPC, 250.06, -6.86, -144.34, 2, math.random(0,8))
  71. MovementLoopAddLocation(NPC, 243.21, -6.86, -134.51, 2, math.random(0,8))
  72. MovementLoopAddLocation(NPC, 242.81, -6.86, -132.45, 2, math.random(0,8))
  73. MovementLoopAddLocation(NPC, 243.05, -6.86, -120.64, 2, math.random(0,8))
  74. MovementLoopAddLocation(NPC, 246.75, -6.86, -101.1, 2, math.random(0,8))
  75. MovementLoopAddLocation(NPC, 248.15, -6.86, -89.98, 2, math.random(0,8))
  76. MovementLoopAddLocation(NPC, 251.53, -6.86, -82.19, 2, math.random(0,8))
  77. MovementLoopAddLocation(NPC, 234.31, -6.86, -82.38, 2, math.random(0,8))
  78. MovementLoopAddLocation(NPC, 247.03, -6.86, -82.16, 2, math.random(0,8))
  79. MovementLoopAddLocation(NPC, 247.08, -6.86, -108.22, 2, math.random(0,8))
  80. MovementLoopAddLocation(NPC, 236.43, -6.86, -108.36, 2, math.random(0,8))
  81. MovementLoopAddLocation(NPC, 235.59, -6.86, -99.93, 2, math.random(0,8))
  82. MovementLoopAddLocation(NPC, 234.06, -6.86, -88.12, 2, math.random(0,8))
  83. MovementLoopAddLocation(NPC, 234.38, -6.86, -107.95, 2, math.random(0,8))
  84. MovementLoopAddLocation(NPC, 249.56, -6.86, -108.29, 2, math.random(0,8))
  85. MovementLoopAddLocation(NPC, 250.31, -5, -102.51, 2, math.random(0,8))
  86. MovementLoopAddLocation(NPC, 252.92, -5, -102.41, 2, math.random(0,8))
  87. MovementLoopAddLocation(NPC, 253.04, 0, -118.15, 2, math.random(0,8))
  88. MovementLoopAddLocation(NPC, 234.03, 0, -118.42, 2, math.random(0,8))
  89. MovementLoopAddLocation(NPC, 252.9, 0, -118.38, 2, math.random(0,8))
  90. MovementLoopAddLocation(NPC, 252.8, -5, -102.12, 2, math.random(0,8))
  91. MovementLoopAddLocation(NPC, 250.21, -5, -101.77, 2, math.random(0,8))
  92. MovementLoopAddLocation(NPC, 249.62, -6.86, -108.96, 2, math.random(0,8))
  93. MovementLoopAddLocation(NPC, 248.62, -6.86, -118.86, 2, math.random(0,8))
  94. MovementLoopAddLocation(NPC, 234.8, -6.86, -118.26, 2, math.random(0,8))
  95. end