9
3

aGruttoothhunterPatrol1.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/aGruttoothhunterPatrol1.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.09.14 05:09:28
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseGoblin1.lua")
  9. function spawn(NPC)
  10. local Level = GetLevel(NPC)
  11. local level1 = 4
  12. local level2 = 5
  13. local difficulty1 = 6
  14. local hp1 = 110
  15. local power1 = 55
  16. local difficulty2 = 6
  17. local hp2 = 130
  18. local power2 = 65
  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, 22.71, 2, -248.69, 2, 5)
  39. MovementLoopAddLocation(NPC, 22.15, 2.01, -248.65, 2, 0)
  40. MovementLoopAddLocation(NPC, 24.71, 1.98, -249.08, 2, 0)
  41. MovementLoopAddLocation(NPC, 25.58, 1.96, -248.02, 2, 0)
  42. MovementLoopAddLocation(NPC, 24.55, 1.96, -245.69, 2, 0)
  43. MovementLoopAddLocation(NPC, 22.71, 1.82, -239.91, 2, 0)
  44. MovementLoopAddLocation(NPC, 21.06, 1.92, -236.05, 2, 0)
  45. MovementLoopAddLocation(NPC, 16.92, 1.59, -232.89, 2, 0)
  46. MovementLoopAddLocation(NPC, 14.36, 2.01, -230.9, 2, 0)
  47. MovementLoopAddLocation(NPC, 13.91, 2.15, -228.92, 2, 0)
  48. MovementLoopAddLocation(NPC, 10.28, 2.2, -225.08, 2, 0)
  49. MovementLoopAddLocation(NPC, 8.97, 2.33, -225.16, 2, 0)
  50. MovementLoopAddLocation(NPC, 7.85, 3.01, -224.57, 2, 0)
  51. MovementLoopAddLocation(NPC, 6.52, 3.01, -223.93, 2, math.random(5,10))
  52. MovementLoopAddLocation(NPC, 6.52, 3.01, -223.93, 2, 0)
  53. MovementLoopAddLocation(NPC, 8.04, 2.99, -224.77, 2, 0)
  54. MovementLoopAddLocation(NPC, 13.7, 2.17, -229.26, 2, 0)
  55. MovementLoopAddLocation(NPC, 14.67, 1.95, -231.22, 2, 0)
  56. MovementLoopAddLocation(NPC, 20.22, 1.88, -235.07, 2, 0)
  57. MovementLoopAddLocation(NPC, 21.87, 2.02, -237.25, 2, 0)
  58. MovementLoopAddLocation(NPC, 24.6, 1.91, -242.66, 2, 0)
  59. MovementLoopAddLocation(NPC, 25.86, 1.96, -247.11, 2, 0)
  60. MovementLoopAddLocation(NPC, 25.18, 1.96, -248.72, 2, 0)
  61. MovementLoopAddLocation(NPC, 22.71, 2, -248.69, 2, 0)
  62. end