crypt_substance15.lua 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. --[[
  2. Script Name : crypt_substance15.lua
  3. Script Purpose : Waypoint Path for crypt_substance15.lua
  4. Script Author : Devn00b
  5. Script Date : 05/13/2020 02:35:37 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 6
  11. local level2 = 5
  12. local difficulty1 = 6
  13. local hp1 = 150
  14. local power1 = 150
  15. local difficulty2 = 6
  16. local hp2 = 130
  17. local power2 = 130
  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. waypoints(NPC)
  35. end
  36. function waypoints(NPC)
  37. MovementLoopAddLocation(NPC, -127.43, -0.06, -145.4, 2, math.random(0,20))
  38. MovementLoopAddLocation(NPC, -118.4, -0.09, -153.31, 2, math.random(0,20))
  39. MovementLoopAddLocation(NPC, -119.07, -0.08, -178.9, 2, math.random(0,20))
  40. MovementLoopAddLocation(NPC, -131.35, 0.48, -181.6, 2, math.random(0,20))
  41. MovementLoopAddLocation(NPC, -165.98, 0.37, -170.21, 2, math.random(0,20))
  42. MovementLoopAddLocation(NPC, -173.53, -0.02, -176.23, 2, math.random(0,20))
  43. MovementLoopAddLocation(NPC, -172.95, -0.08, -187.58, 2, math.random(0,20))
  44. MovementLoopAddLocation(NPC, -179.32, -0.15, -190.03, 2, math.random(0,20))
  45. MovementLoopAddLocation(NPC, -185.03, -0.03, -189.91, 2, math.random(0,20))
  46. MovementLoopAddLocation(NPC, -173.98, -0.05, -188.16, 2, math.random(0,20))
  47. MovementLoopAddLocation(NPC, -173.29, -0.08, -174.29, 2, math.random(0,20))
  48. MovementLoopAddLocation(NPC, -166.3, 0.35, -172.71, 2, math.random(0,20))
  49. MovementLoopAddLocation(NPC, -160.9, -0.24, -172.57, 2, math.random(0,20))
  50. MovementLoopAddLocation(NPC, -135.03, -0.13, -182.73, 2, math.random(0,20))
  51. MovementLoopAddLocation(NPC, -121.6, 0.53, -180.75, 2, math.random(0,20))
  52. MovementLoopAddLocation(NPC, -118.71, -0.08, -175.02, 2, math.random(0,20))
  53. MovementLoopAddLocation(NPC, -119.67, -0.12, -153.48, 2, math.random(0,20))
  54. MovementLoopAddLocation(NPC, -127.47, -0.08, -144.64, 2, math.random(0,20))
  55. MovementLoopAddLocation(NPC, -129.47, -0.05, -136.75, 2, math.random(0,20))
  56. MovementLoopAddLocation(NPC, -155.12, -0.09, -137.85, 2, math.random(0,20))
  57. MovementLoopAddLocation(NPC, -159.1, -0.02, -134.79, 2, math.random(0,20))
  58. MovementLoopAddLocation(NPC, -160.33, -0.05, -125.55, 2, math.random(0,20))
  59. MovementLoopAddLocation(NPC, -157.4, 0.36, -107.63, 2, math.random(0,20))
  60. MovementLoopAddLocation(NPC, -148.06, -0.12, -83.53, 2, math.random(0,20))
  61. MovementLoopAddLocation(NPC, -157.4, 0.36, -107.63, 2, math.random(0,20))
  62. MovementLoopAddLocation(NPC, -160.33, -0.05, -125.55, 2, math.random(0,20))
  63. MovementLoopAddLocation(NPC, -159.1, -0.02, -134.79, 2, math.random(0,20))
  64. MovementLoopAddLocation(NPC, -155.12, -0.09, -137.85, 2, math.random(0,20))
  65. MovementLoopAddLocation(NPC, -129.47, -0.05, -136.75, 2, math.random(0,20))
  66. MovementLoopAddLocation(NPC, -127.47, -0.08, -144.64, 2, math.random(0,20))
  67. MovementLoopAddLocation(NPC, -119.67, -0.12, -153.48, 2, math.random(0,20))
  68. MovementLoopAddLocation(NPC, -118.71, -0.08, -175.02, 2, math.random(0,20))
  69. MovementLoopAddLocation(NPC, -121.6, 0.53, -180.75, 2, math.random(0,20))
  70. MovementLoopAddLocation(NPC, -135.03, -0.13, -182.73, 2, math.random(0,20))
  71. MovementLoopAddLocation(NPC, -160.9, -0.24, -172.57, 2, math.random(0,20))
  72. MovementLoopAddLocation(NPC, -166.3, 0.35, -172.71, 2, math.random(0,20))
  73. MovementLoopAddLocation(NPC, -173.29, -0.08, -174.29, 2, math.random(0,20))
  74. MovementLoopAddLocation(NPC, -173.98, -0.05, -188.16, 2, math.random(0,20))
  75. MovementLoopAddLocation(NPC, -185.03, -0.03, -189.91, 2, math.random(0,20))
  76. MovementLoopAddLocation(NPC, -179.32, -0.15, -190.03, 2, math.random(0,20))
  77. MovementLoopAddLocation(NPC, -172.95, -0.08, -187.58, 2, math.random(0,20))
  78. MovementLoopAddLocation(NPC, -173.53, -0.02, -176.23, 2, math.random(0,20))
  79. MovementLoopAddLocation(NPC, -165.98, 0.37, -170.21, 2, math.random(0,20))
  80. MovementLoopAddLocation(NPC, -131.35, 0.48, -181.6, 2, math.random(0,20))
  81. MovementLoopAddLocation(NPC, -119.07, -0.08, -178.9, 2, math.random(0,20))
  82. MovementLoopAddLocation(NPC, -118.4, -0.09, -153.31, 2, math.random(0,20))
  83. MovementLoopAddLocation(NPC, -127.43, -0.06, -145.4, 2, math.random(0,20))
  84. end