9
3

anOakmystgreatbearPatrol1.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/anOakmystgreatbearPatrol1.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.19 03:10:06
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 11
  11. local level2 = 12
  12. local level3 = 13
  13. local difficulty1 = 8
  14. local hp1 = 930
  15. local power1 = 360
  16. local difficulty2 = 8
  17. local hp2 = 1205
  18. local power2 = 400
  19. local difficulty3 =8
  20. local hp3 = 1420
  21. local power3 = 485
  22. if Level == level1 then
  23. SpawnSet(NPC, "difficulty", difficulty1)
  24. SpawnSet(NPC, "hp", hp1)
  25. SpawnSet(NPC, "power", power1)
  26. elseif Level == level2
  27. then
  28. SpawnSet(NPC, "difficulty", difficulty2)
  29. SpawnSet(NPC, "hp", hp2)
  30. SpawnSet(NPC, "power", power2)
  31. elseif Level == level3
  32. then
  33. SpawnSet(NPC, "difficulty", difficulty3)
  34. SpawnSet(NPC, "hp", hp3)
  35. SpawnSet(NPC, "power", power3)
  36. end
  37. waypoints(NPC)
  38. end
  39. function hailed(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. end
  42. function respawn(NPC)
  43. spawn(NPC)
  44. end
  45. function waypoints(NPC)
  46. MovementLoopAddLocation(NPC, 1001.29, 12.89, -249.44, 2, 5)
  47. MovementLoopAddLocation(NPC, 994.9, 12.88, -253.22, 2, math.random(8,12))
  48. MovementLoopAddLocation(NPC, 994.9, 12.88, -253.22, 2, 0)
  49. MovementLoopAddLocation(NPC, 1001.76, 12.92, -246.86, 2, 0)
  50. MovementLoopAddLocation(NPC, 1002.94, 13.26, -241.87, 2, math.random(8,12))
  51. MovementLoopAddLocation(NPC, 1002.94, 13.26, -241.87, 2, 0)
  52. MovementLoopAddLocation(NPC, 1001.83, 12.97, -244.99, 2, 0)
  53. MovementLoopAddLocation(NPC, 1004.02, 13.38, -253.47, 2, math.random(8,12))
  54. MovementLoopAddLocation(NPC, 1004.02, 13.38, -253.47, 2, 0)
  55. MovementLoopAddLocation(NPC, 998.27, 12.89, -252.32, 2, 0)
  56. MovementLoopAddLocation(NPC, 995.84, 12.88, -253.08, 2, 0)
  57. MovementLoopAddLocation(NPC, 994.92, 12.86, -256.52, 2, math.random(8,12))
  58. MovementLoopAddLocation(NPC, 994.92, 12.86, -256.52, 2, 0)
  59. MovementLoopAddLocation(NPC, 996.36, 12.88, -251.57, 2, math.random(8,12))
  60. MovementLoopAddLocation(NPC, 996.36, 12.88, -251.57, 2, 0)
  61. MovementLoopAddLocation(NPC, 994.47, 12.89, -254.24, 2, math.random(8,12))
  62. MovementLoopAddLocation(NPC, 994.47, 12.89, -254.24, 2, 0)
  63. MovementLoopAddLocation(NPC, 998.5, 12.89, -248.45, 2, 0)
  64. MovementLoopAddLocation(NPC, 1006.31, 13.17, -245.43, 2, 0)
  65. MovementLoopAddLocation(NPC, 1003.97, 13.12, -246.4, 2, math.random(8,12))
  66. MovementLoopAddLocation(NPC, 1003.97, 13.12, -246.4, 2, 0)
  67. MovementLoopAddLocation(NPC, 997, 12.88, -250.75, 2, math.random(8,12))
  68. MovementLoopAddLocation(NPC, 997, 12.88, -250.75, 2, 0)
  69. MovementLoopAddLocation(NPC, 1002.23, 13.05, -251.07, 2, 0)
  70. MovementLoopAddLocation(NPC, 1004.2, 13.41, -253.76, 2, math.random(8,12))
  71. MovementLoopAddLocation(NPC, 1004.2, 13.41, -253.76, 2, 0)
  72. MovementLoopAddLocation(NPC, 1001.29, 12.89, -249.44, 2, 5)
  73. end