aGruttoothguardPatrol.lua 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/aGruttoothguardPatrol.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.09.06 08:09:52
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseGoblin2.lua")
  9. function spawn(NPC)
  10. local Level = GetLevel(NPC)
  11. local level1 = 3
  12. local level2 = 4
  13. local difficulty1 = 6
  14. local hp1 = 75
  15. local power1 = 45
  16. local difficulty2 = 6
  17. local hp2 = 110
  18. local power2 = 55
  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 hailed(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. end
  34. function respawn(NPC)
  35. spawn(NPC)
  36. end
  37. function waypoints(NPC)
  38. MovementLoopAddLocation(NPC, 236.07, -4.98, -13.29, 2, 5)
  39. MovementLoopAddLocation(NPC, 241.23, -3.88, -11.7, 2, 0)
  40. MovementLoopAddLocation(NPC, 248.24, -4.1, -16.27, 2, 0)
  41. MovementLoopAddLocation(NPC, 246.84, -4.09, -21.95, 2, 0)
  42. MovementLoopAddLocation(NPC, 237.62, -4.06, -31.12, 2, 0)
  43. MovementLoopAddLocation(NPC, 236.15, -4.05, -34.65, 2, 0)
  44. MovementLoopAddLocation(NPC, 234.66, -1.22, -51.2, 2, 0)
  45. MovementLoopAddLocation(NPC, 237.83, -1.05, -64.93, 2, 0)
  46. MovementLoopAddLocation(NPC, 237.26, -1.05, -71.26, 2, 0)
  47. MovementLoopAddLocation(NPC, 226.8, -1.01, -93.55, 2, 0)
  48. MovementLoopAddLocation(NPC, 218.61, -0.89, -99.58, 2, 0)
  49. MovementLoopAddLocation(NPC, 213.62, -0.96, -102.6, 2, 0)
  50. MovementLoopAddLocation(NPC, 209.35, -0.75, -112.45, 2, math.random(5,10))
  51. MovementLoopAddLocation(NPC, 209.35, -0.75, -112.45, 2, 0)
  52. MovementLoopAddLocation(NPC, 210.85, -0.75, -108.15, 2, 0)
  53. MovementLoopAddLocation(NPC, 214.66, -0.96, -102.82, 2, 0)
  54. MovementLoopAddLocation(NPC, 218.18, -0.89, -100.06, 2, 0)
  55. MovementLoopAddLocation(NPC, 224.6, -1, -96.03, 2, 0)
  56. MovementLoopAddLocation(NPC, 231.18, -1.02, -87.54, 2, 0)
  57. MovementLoopAddLocation(NPC, 237.18, -1.05, -68.58, 2, 0)
  58. MovementLoopAddLocation(NPC, 237.1, -1.05, -63.46, 2, 0)
  59. MovementLoopAddLocation(NPC, 235.12, -1.04, -56.15, 2, 0)
  60. MovementLoopAddLocation(NPC, 235.68, -4.05, -36.39, 2, 0)
  61. MovementLoopAddLocation(NPC, 237.94, -4.06, -31.08, 2, 0)
  62. MovementLoopAddLocation(NPC, 243.4, -4.08, -25.68, 2, 0)
  63. MovementLoopAddLocation(NPC, 247.8, -4.1, -19.6, 2, 0)
  64. MovementLoopAddLocation(NPC, 247.53, -4.1, -10.27, 2, 0)
  65. MovementLoopAddLocation(NPC, 242.35, -3.89, -10.1, 2, 0)
  66. end