9
3

abonecutterfishRoam7.lua 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/abonecutterfishRoam7.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.13 03:10:20
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 7
  11. local level2 = 8
  12. local difficulty1 = 6
  13. local hp1 = 200
  14. local power1 = 90
  15. local difficulty2 = 6
  16. local hp2 = 240
  17. local power2 = 100
  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, 1058.27, -24.4, -721.66, 1, 0)
  38. MovementLoopAddLocation(NPC, 1060.48, -24.35, -723.04, 1, 0)
  39. MovementLoopAddLocation(NPC, 1069.93, -24.37, -721.3, 1, 0)
  40. MovementLoopAddLocation(NPC, 1074.44, -24.33, -721.42, 1, math.random(5,10))
  41. MovementLoopAddLocation(NPC, 1074.44, -24.37, -721.42, 1, 0)
  42. MovementLoopAddLocation(NPC, 1068.17, -24.32, -721.63, 1, 0)
  43. MovementLoopAddLocation(NPC, 1060.32, -24.33, -723.72, 1, 0)
  44. MovementLoopAddLocation(NPC, 1056.2, -24.37, -720.1, 1, 0)
  45. MovementLoopAddLocation(NPC, 1051.07, -24.32, -721.66, 1, 0)
  46. MovementLoopAddLocation(NPC, 1043.23, -24.34, -722.33, 1, math.random(5,10))
  47. MovementLoopAddLocation(NPC, 1043.23, -24.36, -722.33, 1, 0)
  48. MovementLoopAddLocation(NPC, 1047.97, -24.33, -722, 1, 0)
  49. MovementLoopAddLocation(NPC, 1055.11, -24.32, -720.47, 1, 0)
  50. MovementLoopAddLocation(NPC, 1057.61, -24.35, -722.69, 1, 0)
  51. MovementLoopAddLocation(NPC, 1055.81, -24.37, -725.46, 1, 0)
  52. MovementLoopAddLocation(NPC, 1047.09, -24.34, -732.62, 1, math.random(5,10))
  53. MovementLoopAddLocation(NPC, 1047.09, -24.36, -732.62, 1, 0)
  54. MovementLoopAddLocation(NPC, 1057.65, -24.31, -724.75, 1, 0)
  55. MovementLoopAddLocation(NPC, 1059.67, -24.36, -718.06, 1, 0)
  56. MovementLoopAddLocation(NPC, 1066.51, -24.3, -714.28, 1, 0)
  57. MovementLoopAddLocation(NPC, 1068.47, -24.33, -709.91, 1, math.random(5,10))
  58. MovementLoopAddLocation(NPC, 1068.47, -24.35, -709.91, 1, 0)
  59. MovementLoopAddLocation(NPC, 1066.12, -24.34, -713.87, 1, 0)
  60. MovementLoopAddLocation(NPC, 1059.28, -24.31, -718.38, 1, 0)
  61. MovementLoopAddLocation(NPC, 1058.27, -24.4, -721.66, 1, math.random(5,10))
  62. end