aridgerat.lua 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. --[[
  2. Script Name : SpawnScripts/Blackburrow/aridgerat.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.09 08:07:13
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 11
  11. local level2 = 12
  12. local difficulty1 = 5
  13. local hp1 = 290
  14. local power1 = 105
  15. local difficulty2 = 5
  16. local hp2 = 250
  17. local power2 = 125
  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. if GetSpawnLocationID(NPC)== 133771503 then
  38. MovementLoopAddLocation(NPC, 66.81, -0.63, 13.19, 2, math.random(8,20))
  39. MovementLoopAddLocation(NPC, 57.75, -1.07, 11.67, 2, math.random(8,20))
  40. MovementLoopAddLocation(NPC, 64.02, -0.99, 11.12, 2, math.random(8,20))
  41. MovementLoopAddLocation(NPC, 58.34, -1.08, 8.62, 2, math.random(8,20))
  42. MovementLoopAddLocation(NPC, 72.32, -1.24, 18.18, 2, math.random(8,20))
  43. MovementLoopAddLocation(NPC, 75.19, -1.79, 18.58, 2, math.random(8,20))
  44. MovementLoopAddLocation(NPC, 75.64, -2.14, 21.07, 2, math.random(8,20))
  45. MovementLoopAddLocation(NPC, 69.29, -0.52, 14.21, 2, math.random(8,20))
  46. elseif GetSpawnLocationID(NPC)== 413404 then
  47. MovementLoopAddLocation(NPC, 57.69, -1.06, 8.91, 2, math.random(8,20))
  48. MovementLoopAddLocation(NPC, 57.69, -1.06, 8.91, 2, math.random(8,20))
  49. MovementLoopAddLocation(NPC, 51.63, 0.42, 9.06, 2, math.random(8,20))
  50. MovementLoopAddLocation(NPC, 61.76, -1.03, 12.87, 2, math.random(8,20))
  51. MovementLoopAddLocation(NPC, 58.85, -1.1, 8.95, 2, math.random(8,20))
  52. MovementLoopAddLocation(NPC, 50.88, 0.52, 5.79, 2, math.random(8,20))
  53. elseif GetSpawnLocationID(NPC)== 133771504 then
  54. MovementLoopAddLocation(NPC, 47.91, 0.91, 7.45, 2, math.random(8,20))
  55. MovementLoopAddLocation(NPC, 43.85, 1.45, 6.14, 2, math.random(8,20))
  56. MovementLoopAddLocation(NPC, 49.44, 0.75, 5.55, 2, math.random(8,20))
  57. MovementLoopAddLocation(NPC, 44.22, 1.46, 9.42, 2, math.random(8,20))
  58. MovementLoopAddLocation(NPC, 48.2, 0.97, 9.2, 2, math.random(8,20))
  59. MovementLoopAddLocation(NPC, 50.37, 0.59, 8.77, 2, math.random(8,20))
  60. MovementLoopAddLocation(NPC, 42.41, 1.47, 6.64, 2, math.random(8,20))
  61. MovementLoopAddLocation(NPC, 48.14, 0.98, 9.22, 2, math.random(8,20))
  62. elseif GetSpawnLocationID(NPC)== 413398 then
  63. MovementLoopAddLocation(NPC, 41.01, -1.51, -52.57, 2, math.random(8,20))
  64. MovementLoopAddLocation(NPC, 42.57, -1.8, -56.5, 2, math.random(8,20))
  65. MovementLoopAddLocation(NPC, 46.78, -2.78, -56.35, 2, math.random(8,20))
  66. MovementLoopAddLocation(NPC, 51.66, -3.11, -56.06, 2, math.random(8,20))
  67. MovementLoopAddLocation(NPC, 47.24, -2.83, -56.25, 2, math.random(8,20))
  68. MovementLoopAddLocation(NPC, 42.48, -1.78, -56.37, 2, math.random(8,20))
  69. MovementLoopAddLocation(NPC, 41.11, -1.57, -53.32, 2, math.random(8,20))
  70. MovementLoopAddLocation(NPC, 44.68, -2.05, -54.98, 2, math.random(8,20))
  71. elseif GetSpawnLocationID(NPC)== 413386 then
  72. MovementLoopAddLocation(NPC, 30.1, 1.33, -38.27, 2, math.random(8,20))
  73. MovementLoopAddLocation(NPC, 30.33, 0.62, -42.32, 2, math.random(8,20))
  74. MovementLoopAddLocation(NPC, 32.81, 0.94, -39.64, 2, math.random(8,20))
  75. MovementLoopAddLocation(NPC, 33.44, 0.67, -41.37, 2, math.random(8,20))
  76. MovementLoopAddLocation(NPC, 36.9, -0.93, -48.83, 2, math.random(8,20))
  77. MovementLoopAddLocation(NPC, 35.93, -0.14, -44, 2, math.random(8,20))
  78. MovementLoopAddLocation(NPC, 30.18, 0.75, -41.58, 2, math.random(8,20))
  79. MovementLoopAddLocation(NPC, 32.6, 1.32, -35.69, 2, math.random(8,20))
  80. end
  81. end