9
3

anOakmystpoacher4.lua 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/anOakmystpoacher4.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.20 05:10:11
  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, 794.23, 12.78, -265.02, 2, math.random(5,10))
  38. MovementLoopAddLocation(NPC, 794.46, 12.86, -275.63, 2, 0)
  39. MovementLoopAddLocation(NPC, 798.07, 12.48, -278.5, 2, 0)
  40. MovementLoopAddLocation(NPC, 803.85, 10.95, -279.4, 2, 0)
  41. MovementLoopAddLocation(NPC, 811.22, 9.54, -283.53, 2, 0)
  42. MovementLoopAddLocation(NPC, 814.05, 9.32, -285.62, 2, 0)
  43. MovementLoopAddLocation(NPC, 815.87, 9.15, -287.89, 2, math.random(5,10))
  44. MovementLoopAddLocation(NPC, 815.87, 9.15, -287.89, 2, 0)
  45. MovementLoopAddLocation(NPC, 814.44, 8.46, -283.16, 2, 0)
  46. MovementLoopAddLocation(NPC, 826.87, 5.62, -267.17, 2, 0)
  47. MovementLoopAddLocation(NPC, 831.13, 4.8, -266.52, 2, math.random(5,10))
  48. MovementLoopAddLocation(NPC, 831.13, 4.8, -266.52, 2, 0)
  49. MovementLoopAddLocation(NPC, 823.92, 5.59, -275.37, 2, 0)
  50. MovementLoopAddLocation(NPC, 815.28, 8.28, -276.65, 2, 0)
  51. MovementLoopAddLocation(NPC, 804.44, 11.5, -269.81, 2, 0)
  52. MovementLoopAddLocation(NPC, 798.9, 12.72, -261.11, 2, math.random(5,10))
  53. MovementLoopAddLocation(NPC, 798.9, 12.72, -261.11, 2, 0)
  54. MovementLoopAddLocation(NPC, 784.22, 13.35, -257.33, 2, math.random(5,10))
  55. MovementLoopAddLocation(NPC, 784.22, 13.35, -257.33, 2, 0)
  56. MovementLoopAddLocation(NPC, 781.47, 13.37, -261.65, 2, 0)
  57. MovementLoopAddLocation(NPC, 781.97, 13.35, -260.11, 2, math.random(5,10))
  58. MovementLoopAddLocation(NPC, 781.97, 13.35, -260.11, 2, 0)
  59. MovementLoopAddLocation(NPC, 788.45, 13.35, -247.19, 2, 0)
  60. MovementLoopAddLocation(NPC, 790.39, 13.34, -245.92, 2, 0)
  61. MovementLoopAddLocation(NPC, 793.7, 13.35, -246.78, 2, 0)
  62. MovementLoopAddLocation(NPC, 797.53, 13.52, -245.14, 2, 0)
  63. MovementLoopAddLocation(NPC, 796.83, 13.37, -245.95, 2, math.random(5,10))
  64. MovementLoopAddLocation(NPC, 796.83, 13.37, -245.95, 2, 0)
  65. MovementLoopAddLocation(NPC, 795.9, 13.35, -248.19, 2, 0)
  66. MovementLoopAddLocation(NPC, 796.46, 13.35, -251.7, 2, 0)
  67. MovementLoopAddLocation(NPC, 807.98, 11.76, -263.6, 2, 0)
  68. MovementLoopAddLocation(NPC, 823.3, 6.4, -269.76, 2, math.random(5,10))
  69. MovementLoopAddLocation(NPC, 823.3, 6.4, -269.76, 2, 0)
  70. MovementLoopAddLocation(NPC, 815.73, 8.52, -266.81, 2, 0)
  71. MovementLoopAddLocation(NPC, 805.13, 11.3, -270.08, 2, 0)
  72. MovementLoopAddLocation(NPC, 794.23, 12.78, -265.02, 2, 4)
  73. end