9
3

tomb_guard2.lua 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. --[[
  2. Script Name : tomb_guard2.lua
  3. Script Purpose : Waypoint Path for tomb_guard2.lua
  4. Script Author : Devn00b
  5. Script Date : 06/19/2020 12:30:06 AM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 =14
  11. local level2 = 15
  12. local difficulty1 = 6
  13. local hp1 = 795
  14. local power1 = 240
  15. local difficulty2 = 6
  16. local hp2 = 920
  17. local power2 = 270
  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, 65.12, 0, -126.62, 2, math.random(0,15))
  37. MovementLoopAddLocation(NPC, 67.12, -0.04, -128.56, 2, math.random(0,15))
  38. MovementLoopAddLocation(NPC, 69.12, 0.04, -127.09, 2, math.random(0,15))
  39. MovementLoopAddLocation(NPC, 67.29, 0.04, -132.78, 2, math.random(0,15))
  40. MovementLoopAddLocation(NPC, 70.08, 0, -132.77, 2, math.random(0,15))
  41. MovementLoopAddLocation(NPC, 70.08, -0.17, -130.66, 2, math.random(0,15))
  42. MovementLoopAddLocation(NPC, 65.26, 0, -129.91, 2, math.random(0,15))
  43. MovementLoopAddLocation(NPC, 64.52, 0.04, -132.68, 2, math.random(0,15))
  44. MovementLoopAddLocation(NPC, 65.7, 0, -128.62, 2, math.random(0,15))
  45. MovementLoopAddLocation(NPC, 68.51, -0.14, -128.88, 2, math.random(0,15))
  46. MovementLoopAddLocation(NPC, 68.83, 0.1, -126.44, 2, math.random(0,15))
  47. MovementLoopAddLocation(NPC, 68.65, 0.04, -132.53, 2, math.random(0,15))
  48. MovementLoopAddLocation(NPC, 70.73, -0.15, -128.61, 2, math.random(0,15))
  49. MovementLoopAddLocation(NPC, 66.18, 0, -128.22, 2, math.random(0,15))
  50. MovementLoopAddLocation(NPC, 64.96, 0.02, -130.79, 2, math.random(0,15))
  51. MovementLoopAddLocation(NPC, 65.54, 0, -129.16, 2, math.random(0,15))
  52. MovementLoopAddLocation(NPC, 70.83, -0.15, -128.68, 2, math.random(0,15))
  53. MovementLoopAddLocation(NPC, 68.46, 0.03, -132.24, 2, math.random(0,15))
  54. MovementLoopAddLocation(NPC, 70.43, -0.23, -129.82, 2, math.random(0,15))
  55. MovementLoopAddLocation(NPC, 68.73, 0.05, -126.96, 2, math.random(0,15))
  56. MovementLoopAddLocation(NPC, 67.39, 0.03, -131.74, 2, math.random(0,15))
  57. MovementLoopAddLocation(NPC, 68.73, 0.05, -126.96, 2, math.random(0,15))
  58. MovementLoopAddLocation(NPC, 70.43, -0.23, -129.82, 2, math.random(0,15))
  59. MovementLoopAddLocation(NPC, 68.46, 0.03, -132.24, 2, math.random(0,15))
  60. MovementLoopAddLocation(NPC, 70.83, -0.15, -128.68, 2, math.random(0,15))
  61. MovementLoopAddLocation(NPC, 65.54, 0, -129.16, 2, math.random(0,15))
  62. MovementLoopAddLocation(NPC, 64.96, 0.02, -130.79, 2, math.random(0,15))
  63. MovementLoopAddLocation(NPC, 66.18, 0, -128.22, 2, math.random(0,15))
  64. MovementLoopAddLocation(NPC, 70.73, -0.15, -128.61, 2, math.random(0,15))
  65. MovementLoopAddLocation(NPC, 68.65, 0.04, -132.53, 2, math.random(0,15))
  66. MovementLoopAddLocation(NPC, 68.83, 0.1, -126.44, 2, math.random(0,15))
  67. MovementLoopAddLocation(NPC, 68.51, -0.14, -128.88, 2, math.random(0,15))
  68. MovementLoopAddLocation(NPC, 65.7, 0, -128.62, 2, math.random(0,15))
  69. MovementLoopAddLocation(NPC, 64.52, 0.04, -132.68, 2, math.random(0,15))
  70. MovementLoopAddLocation(NPC, 65.26, 0, -129.91, 2, math.random(0,15))
  71. MovementLoopAddLocation(NPC, 70.08, -0.17, -130.66, 2, math.random(0,15))
  72. MovementLoopAddLocation(NPC, 70.08, 0, -132.77, 2, math.random(0,15))
  73. MovementLoopAddLocation(NPC, 67.29, 0.04, -132.78, 2, math.random(0,15))
  74. MovementLoopAddLocation(NPC, 69.12, 0.04, -127.09, 2, math.random(0,15))
  75. MovementLoopAddLocation(NPC, 67.12, -0.04, -128.56, 2, math.random(0,15))
  76. MovementLoopAddLocation(NPC, 65.12, 0, -126.62, 2, math.random(0,15))
  77. end