aGruttoothguardLongPatril1.lua 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/aGruttoothguardLongPatril1.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.09.07 08:09:36
  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, 215.84, -3.36, 141.45, 2, 0)
  38. MovementLoopAddLocation(NPC, 222.77, -4.69, 141.48, 2, 0)
  39. MovementLoopAddLocation(NPC, 242.84, -5.27, 133.04, 2, 0)
  40. MovementLoopAddLocation(NPC, 245.66, -5.28, 127.09, 2, 0)
  41. MovementLoopAddLocation(NPC, 245.37, -5.82, 122.26, 2, 0)
  42. MovementLoopAddLocation(NPC, 243.16, -6.85, 110.76, 2, 0)
  43. MovementLoopAddLocation(NPC, 243.73, -6.98, 102.48, 2, 0)
  44. MovementLoopAddLocation(NPC, 246.65, -7.23, 92.07, 2, 0)
  45. MovementLoopAddLocation(NPC, 248.62, -4.24, 59.52, 2, 0)
  46. MovementLoopAddLocation(NPC, 251.84, -4.13, 53.43, 2, 0)
  47. MovementLoopAddLocation(NPC, 252.44, -4.13, 47.5, 2, 0)
  48. MovementLoopAddLocation(NPC, 249.06, -4.12, 42.2, 2, 0)
  49. MovementLoopAddLocation(NPC, 244.14, -4.1, 36.62, 2, 0)
  50. MovementLoopAddLocation(NPC, 234.74, -4.06, 29.58, 2, 0)
  51. MovementLoopAddLocation(NPC, 232.08, -4.05, 24.86, 2, 0)
  52. MovementLoopAddLocation(NPC, 229.99, -4.04, 11.67, 2, 0)
  53. MovementLoopAddLocation(NPC, 230.1, -4.04, 8.51, 2, 0)
  54. MovementLoopAddLocation(NPC, 231.93, -4.05, 5.48, 2, 0)
  55. MovementLoopAddLocation(NPC, 236.08, -4.06, 1.04, 2, 0)
  56. MovementLoopAddLocation(NPC, 245.2, -4.09, -3.96, 2, 0)
  57. MovementLoopAddLocation(NPC, 255.09, -3.94, -5.09, 2, math.random(5,10))
  58. MovementLoopAddLocation(NPC, 255.09, -3.94, -5.09, 2, 0)
  59. MovementLoopAddLocation(NPC, 247.4, -4.1, -4.67, 2, 0)
  60. MovementLoopAddLocation(NPC, 237.02, -4.06, -0.27, 2, 0)
  61. MovementLoopAddLocation(NPC, 233.22, -4.01, 3.67, 2, 0)
  62. MovementLoopAddLocation(NPC, 230.16, -4.04, 9.28, 2, 0)
  63. MovementLoopAddLocation(NPC, 231.57, -4.05, 24.18, 2, 0)
  64. MovementLoopAddLocation(NPC, 233.93, -4.06, 28.12, 2, 0)
  65. MovementLoopAddLocation(NPC, 246.26, -4.11, 38.17, 2, 0)
  66. MovementLoopAddLocation(NPC, 252.16, -4.13, 46.81, 2, 0)
  67. MovementLoopAddLocation(NPC, 251.68, -4.13, 53.6, 2, 0)
  68. MovementLoopAddLocation(NPC, 249.25, -4.12, 57.49, 2, 0)
  69. MovementLoopAddLocation(NPC, 248.69, -4.5, 62.53, 2, 0)
  70. MovementLoopAddLocation(NPC, 246.69, -6.98, 84.92, 2, 0)
  71. MovementLoopAddLocation(NPC, 246.63, -7.23, 91.39, 2, 0)
  72. MovementLoopAddLocation(NPC, 243.49, -6.97, 103.01, 2, 0)
  73. MovementLoopAddLocation(NPC, 243.36, -6.67, 111.83, 2, 0)
  74. MovementLoopAddLocation(NPC, 246.05, -5.69, 123.22, 2, 0)
  75. MovementLoopAddLocation(NPC, 245.64, -5.28, 128.81, 2, 0)
  76. MovementLoopAddLocation(NPC, 243.24, -5.27, 132.73, 2, 0)
  77. MovementLoopAddLocation(NPC, 225.5, -5.2, 141.4, 2, 0)
  78. MovementLoopAddLocation(NPC, 215.84, -3.36, 141.45, 2, math.random(5,10))
  79. end