forgotten_soul4.lua 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. --[[
  2. Script Name : forgotten_soul4.lua
  3. Script Purpose : Waypoint Path for forgotten_soul4.lua
  4. Script Author : Devn00b
  5. Script Date : 05/14/2020 12:19:19 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 10
  11. local level2 = 9
  12. local difficulty1 = 6
  13. local hp1 = 375
  14. local power1 = 375
  15. local difficulty2 = 6
  16. local hp2 = 285
  17. local power2 = 285
  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, -218.8, -0.09, -92.58, 2, math.random(0,15))
  38. MovementLoopAddLocation(NPC, -219.72, -0.08, -90.4, 2, math.random(0,15))
  39. MovementLoopAddLocation(NPC, -218.81, -0.1, -97.44, 2, math.random(0,15))
  40. MovementLoopAddLocation(NPC, -216.63, -0.08, -94.77, 2, math.random(0,15))
  41. MovementLoopAddLocation(NPC, -218.17, -0.09, -93.32, 2, math.random(0,15))
  42. MovementLoopAddLocation(NPC, -222.31, -0.08, -93.86, 2, math.random(0,15))
  43. MovementLoopAddLocation(NPC, -219.23, -0.09, -91.85, 2, math.random(0,15))
  44. MovementLoopAddLocation(NPC, -217.28, -0.09, -93.55, 2, math.random(0,15))
  45. MovementLoopAddLocation(NPC, -217.01, -0.09, -96.2, 2, math.random(0,15))
  46. MovementLoopAddLocation(NPC, -220.69, -0.08, -91.03, 2, math.random(0,15))
  47. MovementLoopAddLocation(NPC, -216.69, -0.08, -93.28, 2, math.random(0,15))
  48. MovementLoopAddLocation(NPC, -216.75, -0.1, -95.45, 2, math.random(0,15))
  49. MovementLoopAddLocation(NPC, -219.22, -0.11, -96.88, 2, math.random(0,15))
  50. MovementLoopAddLocation(NPC, -222.06, -0.08, -93.29, 2, math.random(0,15))
  51. MovementLoopAddLocation(NPC, -222.45, 0.08, -94.78, 2, math.random(0,15))
  52. MovementLoopAddLocation(NPC, -220.05, -0.1, -95.15, 2, math.random(0,15))
  53. MovementLoopAddLocation(NPC, -217.57, -0.09, -94.46, 2, math.random(0,15))
  54. MovementLoopAddLocation(NPC, -220.95, -0.08, -93.53, 2, math.random(0,15))
  55. MovementLoopAddLocation(NPC, -217.57, -0.09, -94.46, 2, math.random(0,15))
  56. MovementLoopAddLocation(NPC, -220.05, -0.1, -95.15, 2, math.random(0,15))
  57. MovementLoopAddLocation(NPC, -222.45, 0.08, -94.78, 2, math.random(0,15))
  58. MovementLoopAddLocation(NPC, -222.06, -0.08, -93.29, 2, math.random(0,15))
  59. MovementLoopAddLocation(NPC, -219.22, -0.11, -96.88, 2, math.random(0,15))
  60. MovementLoopAddLocation(NPC, -216.75, -0.1, -95.45, 2, math.random(0,15))
  61. MovementLoopAddLocation(NPC, -216.69, -0.08, -93.28, 2, math.random(0,15))
  62. MovementLoopAddLocation(NPC, -220.69, -0.08, -91.03, 2, math.random(0,15))
  63. MovementLoopAddLocation(NPC, -217.01, -0.09, -96.2, 2, math.random(0,15))
  64. MovementLoopAddLocation(NPC, -217.28, -0.09, -93.55, 2, math.random(0,15))
  65. MovementLoopAddLocation(NPC, -219.23, -0.09, -91.85, 2, math.random(0,15))
  66. MovementLoopAddLocation(NPC, -222.31, -0.08, -93.86, 2, math.random(0,15))
  67. MovementLoopAddLocation(NPC, -218.17, -0.09, -93.32, 2, math.random(0,15))
  68. MovementLoopAddLocation(NPC, -216.63, -0.08, -94.77, 2, math.random(0,15))
  69. MovementLoopAddLocation(NPC, -218.81, -0.1, -97.44, 2, math.random(0,15))
  70. MovementLoopAddLocation(NPC, -219.72, -0.08, -90.4, 2, math.random(0,15))
  71. MovementLoopAddLocation(NPC, -218.8, -0.09, -92.58, 2, math.random(0,15))
  72. end