ashiningnibbler.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/ashiningnibbler.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.01 04:07:20
  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)==419736 then
  46. MovementLoopAddLocation(NPC, 716.05, -41.46, 287.16, 2, 0)
  47. MovementLoopAddLocation(NPC, 722.21, -41.46, 290.16, 2, 2)
  48. MovementLoopAddLocation(NPC, 726.37, -41.46, 303.99, 2, 0)
  49. MovementLoopAddLocation(NPC, 728.12, -41.46, 306.92, 2, 0)
  50. MovementLoopAddLocation(NPC, 722.04, -41.46, 298.78, 2, 0)
  51. MovementLoopAddLocation(NPC, 720.53, -41.46, 288.79, 2, 0)
  52. elseif GetSpawnLocationID(NPC)==419753 then
  53. MovementLoopAddLocation(NPC, 728.99, -41.28, 310.56, 2, 0)
  54. MovementLoopAddLocation(NPC, 725.95, -41.44, 297.9, 2, 0)
  55. MovementLoopAddLocation(NPC, 727.94, -41.48, 315.8, 2, 0)
  56. MovementLoopAddLocation(NPC, 737.14, -42.32, 330.59, 2, 0)
  57. MovementLoopAddLocation(NPC, 737.34, -40.95, 341.25, 2, 2)
  58. MovementLoopAddLocation(NPC, 735.04, -41.49, 339.11, 2, 0)
  59. MovementLoopAddLocation(NPC, 734.26, -41.76, 318.82, 2, 0)
  60. MovementLoopAddLocation(NPC, 727.83, -40.59, 303.85, 2, 0)
  61. MovementLoopAddLocation(NPC, 724.24, -42.13, 295.5, 2, 0)
  62. elseif GetSpawnLocationID(NPC)==419776 then
  63. MovementLoopAddLocation(NPC, 741.03, -41.72, 357.53, 2, 0)
  64. MovementLoopAddLocation(NPC, 729.65, -40.81, 326.97, 2, 0)
  65. MovementLoopAddLocation(NPC, 730.18, -42.33, 320.47, 2, 0)
  66. MovementLoopAddLocation(NPC, 738.52, -41.51, 340.68, 2, 0)
  67. MovementLoopAddLocation(NPC, 743.85, -40.64, 359.42, 2, 2)
  68. MovementLoopAddLocation(NPC, 738.72, -40.65, 345.46, 2, 0)
  69. MovementLoopAddLocation(NPC, 738.83, -41.85, 340.21, 2, 0)
  70. MovementLoopAddLocation(NPC, 738.79, -42.06, 354.92, 2, 0)
  71. MovementLoopAddLocation(NPC, 745.49, -41.29, 363.08, 2, 0)
  72. MovementLoopAddLocation(NPC, 733.78, -40.56, 338.73, 2, 0)
  73. end
  74. end