crypt_substance12.lua 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. --[[
  2. Script Name : crypt_substance12.lua
  3. Script Purpose : Waypoint Path for crypt_substance12.lua
  4. Script Author : Devn00b
  5. Script Date : 05/13/2020 12:41:58 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 5
  11. local level2 = 6
  12. local difficulty1 = 6
  13. local hp1 = 130
  14. local power1 = 65
  15. local difficulty2 = 6
  16. local hp2 = 150
  17. local power2 = 80
  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. spawn(NPC)
  35. end
  36. function waypoints(NPC)
  37. MovementLoopAddLocation(NPC, -182.74, -0.13, -189.32, 1, math.random(0,10))
  38. MovementLoopAddLocation(NPC, -183, -0.04, -186.94, 1, math.random(0,10))
  39. MovementLoopAddLocation(NPC, -183.04, -0.09, -193.12, 1, math.random(0,10))
  40. MovementLoopAddLocation(NPC, -183.38, -0.09, -190.41, 1, math.random(0,10))
  41. MovementLoopAddLocation(NPC, -176.05, -0.12, -188.15, 1, math.random(0,10))
  42. MovementLoopAddLocation(NPC, -173.91, -0.18, -185.37, 1, math.random(0,10))
  43. MovementLoopAddLocation(NPC, -173.77, -0.02, -176.62, 1, math.random(0,10))
  44. MovementLoopAddLocation(NPC, -166.87, 0.26, -171.63, 1, math.random(0,10))
  45. MovementLoopAddLocation(NPC, -154.76, -0.31, -172.57, 1, math.random(0,10))
  46. MovementLoopAddLocation(NPC, -143.91, -0.36, -178.18, 1, math.random(0,10))
  47. MovementLoopAddLocation(NPC, -132.44, 0.48, -181.8, 1, math.random(0,10))
  48. MovementLoopAddLocation(NPC, -121.31, 0.54, -180.9, 1, math.random(0,10))
  49. MovementLoopAddLocation(NPC, -118.02, -0.12, -168.19, 1, math.random(0,10))
  50. MovementLoopAddLocation(NPC, -120.82, 0.44, -151.95, 1, math.random(0,10))
  51. MovementLoopAddLocation(NPC, -126.49, -0.07, -146.98, 1, math.random(0,10))
  52. MovementLoopAddLocation(NPC, -129.07, -0.06, -137.61, 1, math.random(0,10))
  53. MovementLoopAddLocation(NPC, -125.1, -0.12, -123.18, 1, math.random(0,10))
  54. MovementLoopAddLocation(NPC, -123.04, 0.54, -119.89, 1, math.random(0,10))
  55. MovementLoopAddLocation(NPC, -115.8, -0.08, -116.77, 1, math.random(0,10))
  56. MovementLoopAddLocation(NPC, -108.04, -0.11, -114.56, 1, math.random(0,10))
  57. MovementLoopAddLocation(NPC, -83.15, -0.09, -139.11, 1, math.random(0,10))
  58. MovementLoopAddLocation(NPC, -108.04, -0.11, -114.56, 1, math.random(0,10))
  59. MovementLoopAddLocation(NPC, -115.8, -0.08, -116.77, 1, math.random(0,10))
  60. MovementLoopAddLocation(NPC, -123.04, 0.54, -119.89, 1, math.random(0,10))
  61. MovementLoopAddLocation(NPC, -125.1, -0.12, -123.18, 2, math.random(0,10))
  62. MovementLoopAddLocation(NPC, -129.07, -0.06, -137.61, 2, math.random(0,10))
  63. MovementLoopAddLocation(NPC, -126.49, -0.07, -146.98, 2, math.random(0,10))
  64. MovementLoopAddLocation(NPC, -120.82, 0.44, -151.95, 2, math.random(0,10))
  65. MovementLoopAddLocation(NPC, -118.02, -0.12, -168.19, 2, math.random(0,10))
  66. MovementLoopAddLocation(NPC, -121.31, 0.54, -180.9, 2, math.random(0,10))
  67. MovementLoopAddLocation(NPC, -132.44, 0.48, -181.8, 2, math.random(0,10))
  68. MovementLoopAddLocation(NPC, -143.91, -0.36, -178.18, 2, math.random(0,10))
  69. MovementLoopAddLocation(NPC, -154.76, -0.31, -172.57, 2, math.random(0,10))
  70. MovementLoopAddLocation(NPC, -166.87, 0.26, -171.63, 2, math.random(0,10))
  71. MovementLoopAddLocation(NPC, -173.77, -0.02, -176.62, 2, math.random(0,10))
  72. MovementLoopAddLocation(NPC, -173.91, -0.18, -185.37, 2, math.random(0,10))
  73. MovementLoopAddLocation(NPC, -176.05, -0.12, -188.15, 2, math.random(0,10))
  74. MovementLoopAddLocation(NPC, -183.38, -0.09, -190.41, 2, math.random(0,10))
  75. MovementLoopAddLocation(NPC, -183.04, -0.09, -193.12, 2, math.random(0,10))
  76. MovementLoopAddLocation(NPC, -183, -0.04, -186.94, 2, math.random(0,10))
  77. MovementLoopAddLocation(NPC, -182.74, -0.13, -189.32, 2, math.random(0,10))
  78. end