anOakmystpoacher2.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/anOakmystpoacher2.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.20 04:10:51
  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, 776.48, 13.35, -253.35, 2, math.random(5,10))
  38. MovementLoopAddLocation(NPC, 782.05, 13.35, -253.34, 2, 0)
  39. MovementLoopAddLocation(NPC, 794.6, 12.88, -261.49, 2, 0)
  40. MovementLoopAddLocation(NPC, 806.93, 11.29, -267.36, 2, math.random(5,10))
  41. MovementLoopAddLocation(NPC, 806.93, 11.29, -267.36, 2, 0)
  42. MovementLoopAddLocation(NPC, 791.15, 13.34, -258.58, 2, 0)
  43. MovementLoopAddLocation(NPC, 783.47, 13.35, -257.98, 2, 0)
  44. MovementLoopAddLocation(NPC, 781.23, 13.56, -264.38, 2, 0)
  45. MovementLoopAddLocation(NPC, 782.55, 13.64, -266.18, 2, 0)
  46. MovementLoopAddLocation(NPC, 784.87, 13.38, -266.82, 2, math.random(5,10))
  47. MovementLoopAddLocation(NPC, 784.87, 13.38, -266.82, 2, 0)
  48. MovementLoopAddLocation(NPC, 782.35, 13.5, -265, 2, 0)
  49. MovementLoopAddLocation(NPC, 781.39, 13.38, -261.62, 2, 0)
  50. MovementLoopAddLocation(NPC, 779.64, 13.35, -256.03, 2, 0)
  51. MovementLoopAddLocation(NPC, 771.01, 13.72, -254.64, 2, 0)
  52. MovementLoopAddLocation(NPC, 766.89, 13.91, -256.42, 2, 0)
  53. MovementLoopAddLocation(NPC, 767.43, 13.9, -255.91, 2, math.random(5,10))
  54. MovementLoopAddLocation(NPC, 767.43, 13.9, -255.91, 2, 0)
  55. MovementLoopAddLocation(NPC, 770.54, 13.58, -252.98, 2, 0)
  56. MovementLoopAddLocation(NPC, 770.32, 13.35, -246.83, 2, 0)
  57. MovementLoopAddLocation(NPC, 763.97, 13.35, -242, 2, 0)
  58. MovementLoopAddLocation(NPC, 758.54, 13.59, -242.75, 2, 0)
  59. MovementLoopAddLocation(NPC, 759.29, 13.54, -242.49, 2, math.random(5,10))
  60. MovementLoopAddLocation(NPC, 759.29, 13.54, -242.49, 2, 0)
  61. MovementLoopAddLocation(NPC, 760.75, 13.71, -245.9, 2, 0)
  62. MovementLoopAddLocation(NPC, 765.92, 13.48, -248.47, 2, 0)
  63. MovementLoopAddLocation(NPC, 782.06, 13.35, -249.98, 2, 0)
  64. MovementLoopAddLocation(NPC, 782.86, 13.94, -236.36, 2, math.random(5,10))
  65. MovementLoopAddLocation(NPC, 782.86, 13.94, -236.36, 2, 0)
  66. MovementLoopAddLocation(NPC, 782.55, 13.83, -237.75, 2, 0)
  67. MovementLoopAddLocation(NPC, 780.38, 13.72, -239.63, 2, 0)
  68. MovementLoopAddLocation(NPC, 773.98, 13.43, -240.95, 2, 0)
  69. MovementLoopAddLocation(NPC, 772.3, 13.36, -243, 2, 0)
  70. MovementLoopAddLocation(NPC, 772.79, 13.35, -246.74, 2, 0)
  71. MovementLoopAddLocation(NPC, 776.48, 13.35, -253.35, 2, 4)
  72. end