9
3

aravenousbogslug.lua 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. --[[
  2. Script Name : SpawnScripts/PeatBog/aravenousbogslug.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.05.18 04:05:34
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. local Level = GetLevel(NPC)
  11. local level1 = 7
  12. local level2 = 8
  13. local difficulty1 = 5
  14. local hp1 = 65
  15. local power1 = 40
  16. local difficulty2 = 5
  17. local hp2 = 70
  18. local power2 = 45
  19. if Level == level1 then
  20. SpawnSet(NPC, "difficulty", difficulty1)
  21. SpawnSet(NPC, "hp", hp1)
  22. SpawnSet(NPC, "power", power1)
  23. elseif Level == level2
  24. then
  25. SpawnSet(NPC, "difficulty", difficulty2)
  26. SpawnSet(NPC, "hp", hp2)
  27. SpawnSet(NPC, "power", power2)
  28. end
  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)== 329545 or GetSpawnLocationID(NPC)== 329539 then
  38. MovementLoopAddLocation(NPC, 592.1, -32.95, 548.13, 5, 0)
  39. MovementLoopAddLocation(NPC, 597.46, -32.95, 554.31, 5, 0)
  40. MovementLoopAddLocation(NPC, 598.64, -32.96, 563, 5, 0)
  41. MovementLoopAddLocation(NPC, 599.12, -33.12, 569.7, 5, 0)
  42. MovementLoopAddLocation(NPC, 601.07, -33.27, 576.74, 5, 0)
  43. MovementLoopAddLocation(NPC, 604.52, -33.27, 580.54, 5, 0)
  44. MovementLoopAddLocation(NPC, 607.26, -33.32, 580.84, 5, 0)
  45. MovementLoopAddLocation(NPC, 606.56, -33.36, 578.67, 5, 0)
  46. MovementLoopAddLocation(NPC, 603.94, -33.5, 576.8, 5, 0)
  47. MovementLoopAddLocation(NPC, 601.65, -33.18, 569.46, 5, 0)
  48. MovementLoopAddLocation(NPC, 598.79, -32.99, 564.51, 5, 0)
  49. MovementLoopAddLocation(NPC, 598.06, -32.93, 553.16, 5, 0)
  50. elseif GetSpawnLocationID(NPC)== 329559 then
  51. MovementLoopAddLocation(NPC, 606.34, -33, 608.67, 5, 0)
  52. MovementLoopAddLocation(NPC, 603.76, -33.06, 595.82, 5, 0)
  53. MovementLoopAddLocation(NPC, 602.55, -33.05, 588.89, 5, 0)
  54. MovementLoopAddLocation(NPC, 606.23, -33.24, 583.48, 5, 0)
  55. MovementLoopAddLocation(NPC, 606.58, -33.24, 584.79, 5, 0)
  56. MovementLoopAddLocation(NPC, 603.22, -33.05, 588.7, 5, 0)
  57. MovementLoopAddLocation(NPC, 604.41, -33.15, 599.64, 5, 0)
  58. MovementLoopAddLocation(NPC, 607.39, -32.92, 611.66, 5, 0)
  59. MovementLoopAddLocation(NPC, 608.77, -32.86, 615.36, 5, 0)
  60. MovementLoopAddLocation(NPC, 610.13, -32.89, 615.77, 5, 0)
  61. MovementLoopAddLocation(NPC, 609.44, -32.95, 612.82, 5, 0)
  62. elseif GetSpawnLocationID(NPC)==329566 then
  63. MovementLoopAddLocation(NPC, 620.97, -32.85, 624.64, 5, 0)
  64. MovementLoopAddLocation(NPC, 616.6, -32.9, 621.72, 5, 0)
  65. MovementLoopAddLocation(NPC, 611.17, -32.82, 620.32, 5, 0)
  66. MovementLoopAddLocation(NPC, 612.74, -32.84, 615.37, 5, 0)
  67. MovementLoopAddLocation(NPC, 612.74, -32.83, 613.01, 5, 0)
  68. MovementLoopAddLocation(NPC, 610.07, -32.91, 609.14, 5, 0)
  69. MovementLoopAddLocation(NPC, 614.28, -32.75, 612.68, 5, 0)
  70. MovementLoopAddLocation(NPC, 610.01, -32.81, 618.14, 5, 0)
  71. MovementLoopAddLocation(NPC, 626.06, -32.77, 627.01, 5, 0)
  72. MovementLoopAddLocation(NPC, 630.14, -32.88, 628.08, 5, 0)
  73. MovementLoopAddLocation(NPC, 629.62, -32.98, 630.59, 5, 0)
  74. MovementLoopAddLocation(NPC, 624.21, -32.81, 626.24, 5, 0)
  75. elseif GetSpawnLocationID(NPC)== 329571 then
  76. MovementLoopAddLocation(NPC, 636, -33, 636.9, 5, 0)
  77. MovementLoopAddLocation(NPC, 642.67, -32.95, 638.6, 5, 0)
  78. MovementLoopAddLocation(NPC, 647.22, -33.06, 638.48, 5, 0)
  79. MovementLoopAddLocation(NPC, 648.82, -33.17, 639.97, 5, 0)
  80. MovementLoopAddLocation(NPC, 647.43, -33.25, 640.68, 5, 0)
  81. MovementLoopAddLocation(NPC, 642.01, -32.9, 639.77, 5, 0)
  82. MovementLoopAddLocation(NPC, 637.93, -32.82, 640.61, 5, 0)
  83. MovementLoopAddLocation(NPC, 631.85, -33.01, 635.66, 5, 0)
  84. MovementLoopAddLocation(NPC, 626.34, -32.81, 630.96, 5, 0)
  85. MovementLoopAddLocation(NPC, 619.85, -32.74, 628.56, 5, 0)
  86. MovementLoopAddLocation(NPC, 618.45, -32.85, 626.25, 5, 0)
  87. MovementLoopAddLocation(NPC, 619.81, -32.86, 626.69, 5, 0)
  88. MovementLoopAddLocation(NPC, 629.3, -33.02, 632.04, 5, 0)
  89. end
  90. end