9
3

anOakmystpoacher1.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/anOakmystpoacher1.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.20 04:10:40
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 5
  11. local level2 = 6
  12. local difficulty1 = 6
  13. local hp1 = 130
  14. local power1 = 65
  15. local difficulty2 = 6
  16. local hp2 = 150
  17. local power2 = 80
  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, 767.36, 13.35, -237.81, 2, math.random(5,10))
  38. MovementLoopAddLocation(NPC, 770.01, 13.35, -246.84, 2, 0)
  39. MovementLoopAddLocation(NPC, 773.12, 13.35, -249.11, 2, math.random(5,10))
  40. MovementLoopAddLocation(NPC, 773.12, 13.35, -249.11, 2, 0)
  41. MovementLoopAddLocation(NPC, 788.72, 13.35, -256.66, 2, math.random(5,10))
  42. MovementLoopAddLocation(NPC, 788.72, 13.35, -256.66, 2, 0)
  43. MovementLoopAddLocation(NPC, 784.75, 13.35, -253.85, 2, 0)
  44. MovementLoopAddLocation(NPC, 783.59, 13.35, -247.28, 2, 0)
  45. MovementLoopAddLocation(NPC, 780.88, 13.54, -242.02, 2, 0)
  46. MovementLoopAddLocation(NPC, 777.72, 13.43, -241.05, 2, 0)
  47. MovementLoopAddLocation(NPC, 772.4, 13.38, -242.16, 2, math.random(5,10))
  48. MovementLoopAddLocation(NPC, 772.4, 13.38, -242.16, 2, 0)
  49. MovementLoopAddLocation(NPC, 764.81, 13.35, -239.27, 2, 0)
  50. MovementLoopAddLocation(NPC, 758.27, 13.35, -232.06, 2, 0)
  51. MovementLoopAddLocation(NPC, 754.04, 13.56, -230.65, 2, 0)
  52. MovementLoopAddLocation(NPC, 756.03, 13.38, -231.57, 2, math.random(5,10))
  53. MovementLoopAddLocation(NPC, 756.03, 13.38, -231.57, 2, 0)
  54. MovementLoopAddLocation(NPC, 759.33, 13.39, -235.01, 2, 0)
  55. MovementLoopAddLocation(NPC, 759.8, 13.53, -242.86, 2, 0)
  56. MovementLoopAddLocation(NPC, 761.87, 13.78, -246.81, 2, 0)
  57. MovementLoopAddLocation(NPC, 778.96, 13.35, -250.2, 2, math.random(5,10))
  58. MovementLoopAddLocation(NPC, 778.96, 13.35, -250.2, 2, 0)
  59. MovementLoopAddLocation(NPC, 772.47, 13.35, -248.85, 2, 0)
  60. MovementLoopAddLocation(NPC, 772.7, 13.38, -242.34, 2, 0)
  61. MovementLoopAddLocation(NPC, 778.68, 13.58, -240.74, 2, math.random(5,10))
  62. MovementLoopAddLocation(NPC, 778.68, 13.58, -240.74, 2, 0)
  63. MovementLoopAddLocation(NPC, 772.84, 13.4, -241.59, 2, 0)
  64. MovementLoopAddLocation(NPC, 767.36, 13.35, -237.81, 2, 4)
  65. end