9
3

tomb_sentry4.lua 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --[[
  2. Script Name : tomb_sentry4.lua
  3. Script Purpose : Waypoint Path for tomb_sentry4.lua
  4. Script Author : Devn00b
  5. Script Date : 06/19/2020 01:33:38 AM
  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, 63.04, 0.28, -33.71, 2, math.random(0,10))
  37. MovementLoopAddLocation(NPC, 60.2, 0.09, -46.27, 2, math.random(0,10))
  38. MovementLoopAddLocation(NPC, 51.3, 0.08, -50.48, 2, math.random(0,10))
  39. MovementLoopAddLocation(NPC, 46.7, -0.07, -47.34, 2, math.random(0,10))
  40. MovementLoopAddLocation(NPC, 41.84, 0.06, -37.34, 2, math.random(0,10))
  41. MovementLoopAddLocation(NPC, 28.46, 0.1, -24.24, 2, math.random(0,10))
  42. MovementLoopAddLocation(NPC, 27.18, -0.07, -0.87, 2, math.random(0,10))
  43. MovementLoopAddLocation(NPC, 12.55, 0.01, -0.45, 2, math.random(0,10))
  44. MovementLoopAddLocation(NPC, 28.49, -0.09, 0.06, 2, math.random(0,10))
  45. MovementLoopAddLocation(NPC, 27.84, 0.6, 13.32, 2, math.random(0,10))
  46. MovementLoopAddLocation(NPC, 27.95, 0.15, -25.18, 2, math.random(0,10))
  47. MovementLoopAddLocation(NPC, 38.73, 0, -27.52, 2, math.random(0,10))
  48. MovementLoopAddLocation(NPC, 37.65, 0, -35.03, 2, math.random(0,10))
  49. MovementLoopAddLocation(NPC, 46.22, 0, -38.61, 2, math.random(0,10))
  50. MovementLoopAddLocation(NPC, 34.02, 0.01, -29.81, 2, math.random(0,10))
  51. MovementLoopAddLocation(NPC, 26.68, 0.18, -21.59, 2, math.random(0,10))
  52. MovementLoopAddLocation(NPC, 42.4, -0.01, -34.38, 2, math.random(0,10))
  53. MovementLoopAddLocation(NPC, 26.68, 0.18, -21.59, 2, math.random(0,10))
  54. MovementLoopAddLocation(NPC, 34.02, 0.01, -29.81, 2, math.random(0,10))
  55. MovementLoopAddLocation(NPC, 46.22, 0, -38.61, 2, math.random(0,10))
  56. MovementLoopAddLocation(NPC, 37.65, 0, -35.03, 2, math.random(0,10))
  57. MovementLoopAddLocation(NPC, 38.73, 0, -27.52, 2, math.random(0,10))
  58. MovementLoopAddLocation(NPC, 27.95, 0.15, -25.18, 2, math.random(0,10))
  59. MovementLoopAddLocation(NPC, 27.84, 0.6, 13.32, 2, math.random(0,10))
  60. MovementLoopAddLocation(NPC, 28.49, -0.09, 0.06, 2, math.random(0,10))
  61. MovementLoopAddLocation(NPC, 12.55, 0.01, -0.45, 2, math.random(0,10))
  62. MovementLoopAddLocation(NPC, 27.18, -0.07, -0.87, 2, math.random(0,10))
  63. MovementLoopAddLocation(NPC, 28.46, 0.1, -24.24, 2, math.random(0,10))
  64. MovementLoopAddLocation(NPC, 41.84, 0.06, -37.34, 2, math.random(0,10))
  65. MovementLoopAddLocation(NPC, 46.7, -0.07, -47.34, 2, math.random(0,10))
  66. MovementLoopAddLocation(NPC, 51.3, 0.08, -50.48, 2, math.random(0,10))
  67. MovementLoopAddLocation(NPC, 60.2, 0.09, -46.27, 2, math.random(0,10))
  68. MovementLoopAddLocation(NPC, 63.04, 0.28, -33.71, 2, math.random(0,10))
  69. end