ashiningnibbler.lua 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/ashiningnibbler.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.20 04:06:30
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 1
  11. local level2 = 2
  12. local level3 = 3
  13. local difficulty1 = 6
  14. local hp1 = 30
  15. local power1 = 25
  16. local difficulty2 = 6
  17. local hp2 = 45
  18. local power2 = 35
  19. local difficulty3 =6
  20. local hp3 = 75
  21. local power3 = 45
  22. if Level == level1 then
  23. SpawnSet(NPC, "difficulty", difficulty1)
  24. SpawnSet(NPC, "hp", hp1)
  25. SpawnSet(NPC, "power", power1)
  26. elseif Level == level2
  27. then
  28. SpawnSet(NPC, "difficulty", difficulty2)
  29. SpawnSet(NPC, "hp", hp2)
  30. SpawnSet(NPC, "power", power2)
  31. elseif Level == level3
  32. then
  33. SpawnSet(NPC, "difficulty", difficulty3)
  34. SpawnSet(NPC, "hp", hp3)
  35. SpawnSet(NPC, "power", power3)
  36. end
  37. waypoints(NPC)
  38. end
  39. function hailed(NPC, Spawn)
  40. end
  41. function respawn(NPC)
  42. spawn(NPC)
  43. end
  44. function waypoints(NPC)
  45. if GetSpawnLocationID(NPC)== 419401 then
  46. MovementLoopAddLocation(NPC, 664.26, -41.16, 300.03, 2, 0)
  47. MovementLoopAddLocation(NPC, 669.49, -42.04, 316.97, 2, 0)
  48. MovementLoopAddLocation(NPC, 674.04, -42.35, 337.41, 2, 0)
  49. MovementLoopAddLocation(NPC, 677.88, -41.42, 354.67, 2, 0)
  50. MovementLoopAddLocation(NPC, 681.42, -41.44, 370.43, 2, 0)
  51. MovementLoopAddLocation(NPC, 684.14, -41.43, 370.61, 2, 0)
  52. MovementLoopAddLocation(NPC, 676.05, -41.75, 341.71, 2, 0)
  53. MovementLoopAddLocation(NPC, 673.52, -42.12, 313.23, 2, 0)
  54. MovementLoopAddLocation(NPC, 666.03, -41.55, 299.9, 2, 0)
  55. MovementLoopAddLocation(NPC, 673.52, -42.12, 313.23, 2, 0)
  56. MovementLoopAddLocation(NPC, 676.05, -41.75, 341.71, 2, 0)
  57. MovementLoopAddLocation(NPC, 684.14, -41.43, 370.61, 2, 0)
  58. MovementLoopAddLocation(NPC, 681.42, -41.44, 370.43, 2, 0)
  59. MovementLoopAddLocation(NPC, 677.88, -41.42, 354.67, 2, 0)
  60. MovementLoopAddLocation(NPC, 674.04, -42.35, 337.41, 2, 0)
  61. MovementLoopAddLocation(NPC, 669.49, -42.04, 316.97, 2, 0)
  62. MovementLoopAddLocation(NPC, 664.26, -41.16, 300.03, 2, 0)
  63. elseif GetSpawnLocationID(NPC)== 419437 then
  64. MovementLoopAddLocation(NPC, 678.43, -40.72, 356.29, 2, 2)
  65. MovementLoopAddLocation(NPC, 688.47, -40.95, 371.07, 2, 0)
  66. MovementLoopAddLocation(NPC, 683.6, -41.28, 375.63, 2, 0)
  67. MovementLoopAddLocation(NPC, 682.28, -42.69, 370.56, 2, 0)
  68. MovementLoopAddLocation(NPC, 680.09, -41.73, 355.53, 2, 0)
  69. MovementLoopAddLocation(NPC, 675.67, -41.86, 341.68, 2, 0)
  70. MovementLoopAddLocation(NPC, 677.5, -43.09, 335.51, 2, 0)
  71. MovementLoopAddLocation(NPC, 677.41, -42.09, 326.44, 2, 0)
  72. MovementLoopAddLocation(NPC, 675.05, -42.36, 318.94, 2, 0)
  73. MovementLoopAddLocation(NPC, 672.19, -42.72, 329.02, 2, 0)
  74. MovementLoopAddLocation(NPC, 673.43, -41.07, 339.52, 2, 0)
  75. MovementLoopAddLocation(NPC, 677.61, -41.63, 350.27, 2, 0)
  76. MovementLoopAddLocation(NPC, 682.11, -41.3, 361.82, 2, 0)
  77. MovementLoopAddLocation(NPC, 677.61, -41.63, 350.27, 2, 0)
  78. MovementLoopAddLocation(NPC, 673.43, -41.07, 339.52, 2, 0)
  79. MovementLoopAddLocation(NPC, 672.19, -42.72, 329.02, 2, 0)
  80. MovementLoopAddLocation(NPC, 675.05, -42.36, 318.94, 2, 0)
  81. MovementLoopAddLocation(NPC, 677.41, -42.09, 326.44, 2, 0)
  82. MovementLoopAddLocation(NPC, 677.5, -43.09, 335.51, 2, 0)
  83. MovementLoopAddLocation(NPC, 675.67, -41.86, 341.68, 2, 0)
  84. MovementLoopAddLocation(NPC, 680.09, -41.73, 355.53, 2, 0)
  85. MovementLoopAddLocation(NPC, 682.28, -42.69, 370.56, 2, 0)
  86. MovementLoopAddLocation(NPC, 683.6, -41.28, 375.63, 2, 0)
  87. MovementLoopAddLocation(NPC, 688.47, -40.95, 371.07, 2, 0)
  88. MovementLoopAddLocation(NPC, 678.43, -40.72, 356.29, 2, 2)
  89. elseif GetSpawnLocationID(NPC)== 133773402 then
  90. MovementLoopAddLocation(NPC, 688.73, -40.22, 379.2, 2, 2)
  91. MovementLoopAddLocation(NPC, 689.26, -41.06, 373.69, 2, 0)
  92. MovementLoopAddLocation(NPC, 681.26, -41.69, 367.01, 2, 2)
  93. MovementLoopAddLocation(NPC, 679.39, -40.83, 354.77, 2, 0)
  94. MovementLoopAddLocation(NPC, 676.38, -42.38, 341.15, 2, 0)
  95. MovementLoopAddLocation(NPC, 673.64, -39.99, 339.42, 2, 2)
  96. MovementLoopAddLocation(NPC, 675.21, -40.38, 346.64, 2, 0)
  97. MovementLoopAddLocation(NPC, 676.81, -41.72, 350.13, 2, 0)
  98. MovementLoopAddLocation(NPC, 683.36, -41.48, 357.71, 2, 0)
  99. MovementLoopAddLocation(NPC, 688.74, -40.48, 364.63, 2, 0)
  100. MovementLoopAddLocation(NPC, 684.6, -40.03, 376.74, 2, 0)
  101. MovementLoopAddLocation(NPC, 686.48, -40.37, 379.31, 2, 2)
  102. MovementLoopAddLocation(NPC, 688.99, -40.47, 366.88, 2, 0)
  103. MovementLoopAddLocation(NPC, 688.61, -40.64, 366.57, 2, 2)
  104. MovementLoopAddLocation(NPC, 682.64, -40.71, 374.52, 2, 0)
  105. MovementLoopAddLocation(NPC, 687.49, -41.35, 377.62, 2, 2)
  106. MovementLoopAddLocation(NPC, 682.64, -40.71, 374.52, 2, 0)
  107. MovementLoopAddLocation(NPC, 688.61, -40.64, 366.57, 2, 2)
  108. MovementLoopAddLocation(NPC, 688.99, -40.47, 366.88, 2, 0)
  109. MovementLoopAddLocation(NPC, 686.48, -40.37, 379.31, 2, 2)
  110. MovementLoopAddLocation(NPC, 684.6, -40.03, 376.74, 2, 0)
  111. MovementLoopAddLocation(NPC, 688.74, -40.48, 364.63, 2, 0)
  112. MovementLoopAddLocation(NPC, 683.36, -41.48, 357.71, 2, 0)
  113. MovementLoopAddLocation(NPC, 676.81, -41.72, 350.13, 2, 0)
  114. MovementLoopAddLocation(NPC, 675.21, -40.38, 346.64, 2, 0)
  115. MovementLoopAddLocation(NPC, 673.64, -39.99, 339.42, 2, 2)
  116. MovementLoopAddLocation(NPC, 676.38, -42.38, 341.15, 2, 0)
  117. MovementLoopAddLocation(NPC, 679.39, -40.83, 354.77, 2, 0)
  118. MovementLoopAddLocation(NPC, 681.26, -41.69, 367.01, 2, 2)
  119. MovementLoopAddLocation(NPC, 689.26, -41.06, 373.69, 2, 0)
  120. MovementLoopAddLocation(NPC, 688.73, -40.22, 379.2, 2, 2)
  121. end
  122. end