9
3

tomb_sentry9.lua 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : tomb_sentry9.lua
  3. Script Purpose : Waypoint Path for tomb_sentry9.lua
  4. Script Author : Devn00b
  5. Script Date : 06/30/2020 10:11:28 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, 200.62, -7.04, -164.48, 2, math.random(0,3))
  37. MovementLoopAddLocation(NPC, 208.23, -7.06, -170.97, 2, math.random(0,3))
  38. MovementLoopAddLocation(NPC, 209.05, -6.98, -174, 2, math.random(0,3))
  39. MovementLoopAddLocation(NPC, 209.77, -6.98, -189.12, 2, math.random(0,3))
  40. MovementLoopAddLocation(NPC, 217.9, -7.09, -197.18, 2, math.random(0,3))
  41. MovementLoopAddLocation(NPC, 228.18, -6.98, -201.25, 2, math.random(0,3))
  42. MovementLoopAddLocation(NPC, 231.96, -7.04, -203.05, 2, math.random(0,3))
  43. MovementLoopAddLocation(NPC, 251.8, -6.96, -203, 2, math.random(0,3))
  44. MovementLoopAddLocation(NPC, 256.03, -6.91, -200.72, 2, math.random(0,3))
  45. MovementLoopAddLocation(NPC, 255.89, -6.98, -193.9, 2, math.random(0,3))
  46. MovementLoopAddLocation(NPC, 253.84, -7.04, -186.97, 2, math.random(0,3))
  47. MovementLoopAddLocation(NPC, 249.56, -7.04, -178.18, 2, math.random(0,3))
  48. MovementLoopAddLocation(NPC, 248.59, -6.86, -171.64, 2, math.random(0,3))
  49. MovementLoopAddLocation(NPC, 237.92, -6.86, -170.01, 2, math.random(0,3))
  50. MovementLoopAddLocation(NPC, 237.77, -6.86, -157.36, 2, math.random(0,3))
  51. MovementLoopAddLocation(NPC, 237.92, -6.86, -170.01, 2, math.random(0,3))
  52. MovementLoopAddLocation(NPC, 248.59, -6.86, -171.64, 2, math.random(0,3))
  53. MovementLoopAddLocation(NPC, 249.56, -7.04, -178.18, 2, math.random(0,3))
  54. MovementLoopAddLocation(NPC, 253.84, -7.04, -186.97, 2, math.random(0,3))
  55. MovementLoopAddLocation(NPC, 255.89, -6.98, -193.9, 2, math.random(0,3))
  56. MovementLoopAddLocation(NPC, 256.03, -6.91, -200.72, 2, math.random(0,3))
  57. MovementLoopAddLocation(NPC, 251.8, -6.96, -203, 2, math.random(0,3))
  58. MovementLoopAddLocation(NPC, 231.96, -7.04, -203.05, 2, math.random(0,3))
  59. MovementLoopAddLocation(NPC, 228.18, -6.98, -201.25, 2, math.random(0,3))
  60. MovementLoopAddLocation(NPC, 217.9, -7.09, -197.18, 2, math.random(0,3))
  61. MovementLoopAddLocation(NPC, 209.77, -6.98, -189.12, 2, math.random(0,3))
  62. MovementLoopAddLocation(NPC, 209.05, -6.98, -174, 2, math.random(0,3))
  63. MovementLoopAddLocation(NPC, 208.23, -7.06, -170.97, 2, math.random(0,3))
  64. MovementLoopAddLocation(NPC, 200.62, -7.04, -164.48, 2, math.random(0,3))
  65. end