aLonetuskguardPath2.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. --[[
  2. Script Name : SpawnScripts/TheRuins_Classic/aLonetuskguardPath2.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.06.27 02:06:46
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 6
  11. local level2 = 7
  12. local difficulty1 = 6
  13. local hp1 = 150
  14. local power1 = 80
  15. local difficulty2 = 6
  16. local hp2 = 200
  17. local power2 = 90
  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, -90.61, -2.69, 16.64, 2, math.random(5,10))
  38. MovementLoopAddLocation(NPC, -90.61, -2.69, 16.64, 2, 0)
  39. MovementLoopAddLocation(NPC, -89.1, -2.67, 21.35, 2, 0)
  40. MovementLoopAddLocation(NPC, -86.19, -2.68, 22.44, 2, 0)
  41. MovementLoopAddLocation(NPC, -82.36, -2.69, 22.42, 2, 0)
  42. MovementLoopAddLocation(NPC, -79.09, -2.7, 22.88, 2, 0)
  43. MovementLoopAddLocation(NPC, -77.05, -2.72, 25.86, 2, 0)
  44. MovementLoopAddLocation(NPC, -76.45, -2.72, 27.8, 2, math.random(5,10))
  45. MovementLoopAddLocation(NPC, -76.45, -2.72, 27.8, 2, 0)
  46. MovementLoopAddLocation(NPC, -76.74, -2.72, 26.04, 2, 0)
  47. MovementLoopAddLocation(NPC, -76.4, -2.69, 19.78, 2, 0)
  48. MovementLoopAddLocation(NPC, -74.62, -2.81, 14.01, 2, 0)
  49. MovementLoopAddLocation(NPC, -71.78, -2.87, 12.58, 2, 0)
  50. MovementLoopAddLocation(NPC, -70.21, -2.71, 13.14, 2, math.random(5,10))
  51. MovementLoopAddLocation(NPC, -70.21, -2.71, 13.14, 2, 0)
  52. MovementLoopAddLocation(NPC, -72.97, -2.84, 12.23, 2, 0)
  53. MovementLoopAddLocation(NPC, -75.26, -2.71, 15.66, 2, 0)
  54. MovementLoopAddLocation(NPC, -76.66, -2.69, 19.92, 2, 0)
  55. MovementLoopAddLocation(NPC, -78.88, -2.7, 23.24, 2, 0)
  56. MovementLoopAddLocation(NPC, -82.66, -2.69, 22.77, 2, 0)
  57. MovementLoopAddLocation(NPC, -86.82, -2.68, 23.03, 2, 0)
  58. MovementLoopAddLocation(NPC, -90.5, -2.68, 24.95, 2, math.random(5,10))
  59. MovementLoopAddLocation(NPC, -90.5, -2.68, 24.95, 2, 0)
  60. MovementLoopAddLocation(NPC, -89.15, -2.68, 22.84, 2, 0)
  61. MovementLoopAddLocation(NPC, -86.96, -2.65, 17.3, 2, 0)
  62. MovementLoopAddLocation(NPC, -82.3, -2.67, 10.96, 2, 0)
  63. MovementLoopAddLocation(NPC, -82.93, -2.67, 9.4, 2, 0)
  64. MovementLoopAddLocation(NPC, -84.26, -2.51, 8.38, 2, 0)
  65. MovementLoopAddLocation(NPC, -84.26, -2.51, 8.38, 2, 0)
  66. MovementLoopAddLocation(NPC, -91.11, -2.7, 28.27, 2, math.random(5,10))
  67. MovementLoopAddLocation(NPC, -91.11, -2.7, 28.27, 2, 0)
  68. MovementLoopAddLocation(NPC, -89.34, -2.69, 26.69, 2, 0)
  69. MovementLoopAddLocation(NPC, -87.94, -2.67, 20.5, 2, 0)
  70. MovementLoopAddLocation(NPC, -90.2, -2.69, 14.37, 2, 0)
  71. MovementLoopAddLocation(NPC, -90.61, -2.69, 16.64, 2, 0)
  72. end