9
3

anOakmystpoacher5.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/anOakmystpoacher5.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.20 05:10:58
  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, 784.47, 13.59, -241.9, 2, math.random(5,10))
  38. MovementLoopAddLocation(NPC, 785.58, 13.87, -234.29, 2, math.random(5,10))
  39. MovementLoopAddLocation(NPC, 785.58, 13.87, -234.29, 2, 0)
  40. MovementLoopAddLocation(NPC, 785.36, 13.35, -244.65, 2, 0)
  41. MovementLoopAddLocation(NPC, 778.54, 13.35, -251.47, 2, 0)
  42. MovementLoopAddLocation(NPC, 766.36, 13.92, -256.4, 2, 0)
  43. MovementLoopAddLocation(NPC, 767.15, 13.91, -255.84, 2, math.random(5,10))
  44. MovementLoopAddLocation(NPC, 767.15, 13.91, -255.84, 2, 0)
  45. MovementLoopAddLocation(NPC, 771.61, 13.36, -242.37, 2, 0)
  46. MovementLoopAddLocation(NPC, 779.21, 13.55, -241.3, 2, 0)
  47. MovementLoopAddLocation(NPC, 788.24, 13.36, -244.33, 2, 0)
  48. MovementLoopAddLocation(NPC, 790.02, 14.01, -242.9, 2, 0)
  49. MovementLoopAddLocation(NPC, 791.88, 16.1, -241.42, 2, 0)
  50. MovementLoopAddLocation(NPC, 793.72, 17.93, -239.94, 2, 0)
  51. MovementLoopAddLocation(NPC, 796.57, 18.67, -237.65, 2, 0)
  52. MovementLoopAddLocation(NPC, 795.78, 18.6, -238.58, 2, math.random(5,10))
  53. MovementLoopAddLocation(NPC, 795.78, 18.6, -238.58, 2, 0)
  54. MovementLoopAddLocation(NPC, 794.39, 17.55, -240.74, 2, 0)
  55. MovementLoopAddLocation(NPC, 793.9, 14.58, -243.48, 2, 0)
  56. MovementLoopAddLocation(NPC, 793.82, 13.5, -245.71, 2, 0)
  57. MovementLoopAddLocation(NPC, 795.81, 13.34, -253.7, 2, 0)
  58. MovementLoopAddLocation(NPC, 793, 13.34, -256.2, 2, 0)
  59. MovementLoopAddLocation(NPC, 774.83, 13.35, -253.72, 2, 0)
  60. MovementLoopAddLocation(NPC, 769.1, 13.35, -248.7, 2, math.random(5,10))
  61. MovementLoopAddLocation(NPC, 769.1, 13.35, -248.7, 2, 0)
  62. MovementLoopAddLocation(NPC, 766.04, 13.35, -240.66, 2, 0)
  63. MovementLoopAddLocation(NPC, 766.82, 13.35, -241.43, 2, math.random(5,10))
  64. MovementLoopAddLocation(NPC, 766.82, 13.35, -241.43, 2, 0)
  65. MovementLoopAddLocation(NPC, 774.31, 13.35, -248.84, 2, 0)
  66. MovementLoopAddLocation(NPC, 778.22, 13.35, -249.56, 2, 0)
  67. MovementLoopAddLocation(NPC, 780.96, 13.35, -247.96, 2, 0)
  68. MovementLoopAddLocation(NPC, 784.47, 13.59, -241.9, 2, 4)
  69. end