9
3

tomb_guard19.lua 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. --[[
  2. Script Name : tomb_guard19.lua
  3. Script Purpose : Waypoint Path for tomb_guard19.lua
  4. Script Author : Devn00b
  5. Script Date : 06/30/2020 09:01:10 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 =15
  11. local level2 = 16
  12. local difficulty1 = 2
  13. local hp1 = 290
  14. local power1 = 100
  15. local difficulty2 = 2
  16. local hp2 = 345
  17. local power2 = 110
  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, 253.93, -6.86, -134.78, 2, math.random(0,3))
  37. MovementLoopAddLocation(NPC, 250.55, -6.86, -135.15, 2, math.random(0,3))
  38. MovementLoopAddLocation(NPC, 247.65, -6.86, -142, 2, math.random(0,3))
  39. MovementLoopAddLocation(NPC, 235.16, -6.86, -144.01, 2, math.random(0,3))
  40. MovementLoopAddLocation(NPC, 234.59, -6.86, -148.39, 2, math.random(0,3))
  41. MovementLoopAddLocation(NPC, 234.98, -6.86, -157.5, 2, math.random(0,3))
  42. MovementLoopAddLocation(NPC, 249.74, -6.86, -156.85, 2, math.random(0,3))
  43. MovementLoopAddLocation(NPC, 250.2, -6.86, -169.21, 2, math.random(0,3))
  44. MovementLoopAddLocation(NPC, 232.89, -6.86, -157.35, 2, math.random(0,3))
  45. MovementLoopAddLocation(NPC, 232.83, -0.09, -173.09, 2, math.random(0,3))
  46. MovementLoopAddLocation(NPC, 232.95, -0.08, -173.19, 2, math.random(0,3))
  47. MovementLoopAddLocation(NPC, 232.62, -6.86, -159.19, 2, math.random(0,3))
  48. MovementLoopAddLocation(NPC, 234.31, -6.86, -152.84, 2, math.random(0,3))
  49. MovementLoopAddLocation(NPC, 234.43, -6.86, -145.4, 2, math.random(0,3))
  50. MovementLoopAddLocation(NPC, 241.97, -6.86, -144.95, 2, math.random(0,3))
  51. MovementLoopAddLocation(NPC, 242.56, -6.86, -132.01, 2, math.random(0,3))
  52. MovementLoopAddLocation(NPC, 243.16, -6.66, -123.14, 2, math.random(0,3))
  53. MovementLoopAddLocation(NPC, 243.15, -6.86, -118.77, 2, math.random(0,3))
  54. MovementLoopAddLocation(NPC, 246.9, -6.86, -103.46, 2, math.random(0,3))
  55. MovementLoopAddLocation(NPC, 247.21, -6.86, -82.39, 2, math.random(0,3))
  56. MovementLoopAddLocation(NPC, 251.22, -6.86, -82.31, 2, math.random(0,3))
  57. MovementLoopAddLocation(NPC, 251.13, -6.86, -96.71, 2, math.random(0,3))
  58. MovementLoopAddLocation(NPC, 251.22, -6.86, -82.31, 2, math.random(0,3))
  59. MovementLoopAddLocation(NPC, 247.21, -6.86, -82.39, 2, math.random(0,3))
  60. MovementLoopAddLocation(NPC, 246.9, -6.86, -103.46, 2, math.random(0,3))
  61. MovementLoopAddLocation(NPC, 243.15, -6.86, -118.77, 2, math.random(0,3))
  62. MovementLoopAddLocation(NPC, 243.16, -6.66, -123.14, 2, math.random(0,3))
  63. MovementLoopAddLocation(NPC, 242.56, -6.86, -132.01, 2, math.random(0,3))
  64. MovementLoopAddLocation(NPC, 241.97, -6.86, -144.95, 2, math.random(0,3))
  65. MovementLoopAddLocation(NPC, 234.43, -6.86, -145.4, 2, math.random(0,3))
  66. MovementLoopAddLocation(NPC, 234.31, -6.86, -152.84, 2, math.random(0,3))
  67. MovementLoopAddLocation(NPC, 232.62, -6.86, -159.19, 2, math.random(0,3))
  68. MovementLoopAddLocation(NPC, 232.95, -0.08, -173.19, 2, math.random(0,3))
  69. MovementLoopAddLocation(NPC, 232.83, -0.09, -173.09, 2, math.random(0,3))
  70. MovementLoopAddLocation(NPC, 232.89, -6.86, -157.35, 2, math.random(0,3))
  71. MovementLoopAddLocation(NPC, 250.2, -6.86, -169.21, 2, math.random(0,3))
  72. MovementLoopAddLocation(NPC, 249.74, -6.86, -156.85, 2, math.random(0,3))
  73. MovementLoopAddLocation(NPC, 234.98, -6.86, -157.5, 2, math.random(0,3))
  74. MovementLoopAddLocation(NPC, 234.59, -6.86, -148.39, 2, math.random(0,3))
  75. MovementLoopAddLocation(NPC, 235.16, -6.86, -144.01, 2, math.random(0,3))
  76. MovementLoopAddLocation(NPC, 247.65, -6.86, -142, 2, math.random(0,3))
  77. MovementLoopAddLocation(NPC, 250.55, -6.86, -135.15, 2, math.random(0,3))
  78. MovementLoopAddLocation(NPC, 253.93, -6.86, -134.78, 2, math.random(0,3))
  79. end