9
3

aboundwatcher.lua 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/aboundwatcher.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.14 03:10:46
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile ("SpawnScripts/Generic/MonsterCallouts/BaseWaterElemental1.lua")
  9. function spawn(NPC)
  10. local Level = GetLevel(NPC)
  11. local level1 = 10
  12. local level2 = 11
  13. local difficulty1 = 6
  14. local hp1 = 370
  15. local power1 = 130
  16. local difficulty2 = 6
  17. local hp2 = 430
  18. local power2 = 160
  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. waypoints(NPC)
  30. end
  31. function respawn(NPC)
  32. spawn(NPC)
  33. end
  34. function waypoints(NPC)
  35. if GetSpawnLocationID(NPC) == 133778186 or GetSpawnLocationID(NPC) == 133778187 then
  36. MovementLoopAddLocation(NPC, 1071.38, -7.6, -747.31, 1, 0)
  37. MovementLoopAddLocation(NPC, 1064.21, -5.87, -746.13, 1, 0)
  38. MovementLoopAddLocation(NPC, 1065.68, -5.87, -739.01, 1, 0)
  39. MovementLoopAddLocation(NPC, 1070.5, -5, -740.62, 1, 0)
  40. MovementLoopAddLocation(NPC, 1071.55, -5, -745.73, 1, 0)
  41. MovementLoopAddLocation(NPC, 1066.46, -4.14, -746.48, 1, 0)
  42. MovementLoopAddLocation(NPC, 1064.51, -3.01, -742.49, 1, 0)
  43. MovementLoopAddLocation(NPC, 1070.65, -3.01, -739.68, 1, 0)
  44. MovementLoopAddLocation(NPC, 1070.65, -3.01, -739.68, 1, 0)
  45. MovementLoopAddLocation(NPC, 1070.26, -3.01, -746.59, 1, 0)
  46. MovementLoopAddLocation(NPC, 1066.94, -3.01, -748.56, 1, 0)
  47. MovementLoopAddLocation(NPC, 1063.2, -3.01, -744.81, 1, 0)
  48. MovementLoopAddLocation(NPC, 1065.53, -3.39, -741.44, 1, 0)
  49. MovementLoopAddLocation(NPC, 1070.63, -6.64, -740.45, 1, 0)
  50. MovementLoopAddLocation(NPC, 1071, -6.64, -744.23, 1, 0)
  51. MovementLoopAddLocation(NPC, 1071.66, -10.07, -748.36, 1, 0)
  52. MovementLoopAddLocation(NPC, 1065.67, -10.07, -748.74, 1, 0)
  53. MovementLoopAddLocation(NPC, 1062.33, -10.07, -744.24, 1, 0)
  54. MovementLoopAddLocation(NPC, 1064.02, -10.07, -739.76, 1, 0)
  55. MovementLoopAddLocation(NPC, 1069.6, -10.07, -738.06, 1, 0)
  56. MovementLoopAddLocation(NPC, 1073.44, -10.07, -741.3, 1, 0)
  57. MovementLoopAddLocation(NPC, 1072.75, -10.07, -748.72, 1, 0)
  58. MovementLoopAddLocation(NPC, 1073.44, -10.07, -741.3, 1, 0)
  59. MovementLoopAddLocation(NPC, 1069.6, -10.07, -738.06, 1, 0)
  60. MovementLoopAddLocation(NPC, 1064.02, -10.07, -739.76, 1, 0)
  61. MovementLoopAddLocation(NPC, 1062.33, -10.07, -744.24, 1, 0)
  62. MovementLoopAddLocation(NPC, 1065.67, -10.07, -748.74, 1, 0)
  63. MovementLoopAddLocation(NPC, 1071.66, -10.07, -748.36, 1, 0)
  64. MovementLoopAddLocation(NPC, 1073, -6.64, -744.23, 1, 0)
  65. MovementLoopAddLocation(NPC, 1070.63, -6.64, -740.45, 1, 0)
  66. MovementLoopAddLocation(NPC, 1065.53, -3.39, -741.44, 1, 0)
  67. MovementLoopAddLocation(NPC, 1063.2, -3.01, -744.81, 1, 0)
  68. MovementLoopAddLocation(NPC, 1066.94, -3.01, -748.56, 1, 0)
  69. MovementLoopAddLocation(NPC, 1072.26, -3.01, -746.59, 1, 0)
  70. MovementLoopAddLocation(NPC, 1072.65, -3.01, -739.68, 1, 0)
  71. MovementLoopAddLocation(NPC, 1072.65, -3.01, -739.68, 1, 0)
  72. MovementLoopAddLocation(NPC, 1064.51, -3.01, -742.49, 1, 0)
  73. MovementLoopAddLocation(NPC, 1066.46, -4.14, -746.48, 1, 0)
  74. MovementLoopAddLocation(NPC, 1071.55, -5, -745.73, 1, 0)
  75. MovementLoopAddLocation(NPC, 1070.5, -5, -740.62, 1, 0)
  76. MovementLoopAddLocation(NPC, 1065.68, -5.87, -739.01, 1, 0)
  77. MovementLoopAddLocation(NPC, 1064.21, -5.87, -746.13, 1, 0)
  78. MovementLoopAddLocation(NPC, 1071.38, -7.6, -747.31, 1, 0)
  79. end
  80. end