9
3

aGruttoothguardLongPatrol2.lua 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/aGruttoothguardLongPatrol2.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.09.07 09:09:00
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 3
  11. local level2 = 4
  12. local difficulty1 = 6
  13. local hp1 = 75
  14. local power1 = 45
  15. local difficulty2 = 6
  16. local hp2 = 110
  17. local power2 = 55
  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. MovementLoopAddLocation(NPC, 254.02, -3.93, -7.45, 2, 0)
  38. MovementLoopAddLocation(NPC, 248.86, -4.11, -7.79, 2, 0)
  39. MovementLoopAddLocation(NPC, 246.84, -4.1, -4.82, 2, 0)
  40. MovementLoopAddLocation(NPC, 237.22, -4.06, -0.25, 2, 0)
  41. MovementLoopAddLocation(NPC, 231.05, -4.04, 6.71, 2, 0)
  42. MovementLoopAddLocation(NPC, 230.29, -4.04, 11.09, 2, 0)
  43. MovementLoopAddLocation(NPC, 231.68, -4.05, 24.8, 2, 0)
  44. MovementLoopAddLocation(NPC, 234.27, -4.06, 29.08, 2, 0)
  45. MovementLoopAddLocation(NPC, 246.2, -4.1, 38.27, 2, 0)
  46. MovementLoopAddLocation(NPC, 251.93, -4.13, 45.71, 2, 0)
  47. MovementLoopAddLocation(NPC, 252.11, -4.13, 50.64, 2, 0)
  48. MovementLoopAddLocation(NPC, 251.49, -4.13, 54.4, 2, 0)
  49. MovementLoopAddLocation(NPC, 249.33, -4.12, 57.47, 2, 0)
  50. MovementLoopAddLocation(NPC, 247, -6.98, 85.22, 2, 0)
  51. MovementLoopAddLocation(NPC, 246.9, -7.23, 91.17, 2, 0)
  52. MovementLoopAddLocation(NPC, 244, -7.1, 101.03, 2, 0)
  53. MovementLoopAddLocation(NPC, 243.16, -6.75, 111.3, 2, 0)
  54. MovementLoopAddLocation(NPC, 245.8, -5.57, 123.63, 2, 0)
  55. MovementLoopAddLocation(NPC, 245.19, -5.27, 130, 2, 0)
  56. MovementLoopAddLocation(NPC, 243, -5.27, 132.75, 2, 0)
  57. MovementLoopAddLocation(NPC, 225.99, -5.21, 141.58, 2, 0)
  58. MovementLoopAddLocation(NPC, 215.18, -3.3, 141.56, 2, math.random(5,10))
  59. MovementLoopAddLocation(NPC, 215.18, -3.3, 141.56, 2, 0)
  60. MovementLoopAddLocation(NPC, 223.97, -4.98, 141.75, 2, 0)
  61. MovementLoopAddLocation(NPC, 243.54, -5.27, 132.55, 2, 0)
  62. MovementLoopAddLocation(NPC, 245.45, -5.28, 126.37, 2, 0)
  63. MovementLoopAddLocation(NPC, 245.1, -5.85, 121.63, 2, 0)
  64. MovementLoopAddLocation(NPC, 243.25, -6.56, 113.18, 2, 0)
  65. MovementLoopAddLocation(NPC, 243.59, -6.97, 103.38, 2, 0)
  66. MovementLoopAddLocation(NPC, 245.93, -7.23, 94.61, 2, 0)
  67. MovementLoopAddLocation(NPC, 246.66, -7.04, 86.87, 2, 0)
  68. MovementLoopAddLocation(NPC, 247.27, -6.88, 77.94, 2, 0)
  69. MovementLoopAddLocation(NPC, 248.9, -4.19, 59.35, 2, 0)
  70. MovementLoopAddLocation(NPC, 251.43, -4.13, 54.56, 2, 0)
  71. MovementLoopAddLocation(NPC, 252.42, -4.13, 48.54, 2, 0)
  72. MovementLoopAddLocation(NPC, 249.81, -4.12, 43.32, 2, 0)
  73. MovementLoopAddLocation(NPC, 244.62, -4.1, 37.02, 2, 0)
  74. MovementLoopAddLocation(NPC, 234.56, -4.06, 29.6, 2, 0)
  75. MovementLoopAddLocation(NPC, 232.26, -4.05, 25.99, 2, 0)
  76. MovementLoopAddLocation(NPC, 229.79, -4.04, 12.18, 2, 0)
  77. MovementLoopAddLocation(NPC, 230.48, -4.04, 7.75, 2, 0)
  78. MovementLoopAddLocation(NPC, 232.91, -3.98, 4.02, 2, 0)
  79. MovementLoopAddLocation(NPC, 243.76, -4.09, -3.45, 2, 0)
  80. MovementLoopAddLocation(NPC, 247.69, -4.1, -7.16, 2, 0)
  81. MovementLoopAddLocation(NPC, 254.02, -3.93, -7.45, 2, math.random(5,10))
  82. end