9
3

abonecutterfishRoam6.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/abonecutterfishRoam6.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.13 03:10:11
  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, 1035.38, -24.37, -724.27, 1, 0)
  38. MovementLoopAddLocation(NPC, 1035.49, -24.34, -720.21, 1, math.random(5,10))
  39. MovementLoopAddLocation(NPC, 1035.49, -24.37, -720.21, 1, 0)
  40. MovementLoopAddLocation(NPC, 1034.8, -24.36, -728.7, 1, 0)
  41. MovementLoopAddLocation(NPC, 1027.69, -24.37, -736.42, 1, math.random(5,10))
  42. MovementLoopAddLocation(NPC, 1027.69, -24.37, -736.42, 1, 0)
  43. MovementLoopAddLocation(NPC, 1034.45, -24.34, -737.01, 1, math.random(5,10))
  44. MovementLoopAddLocation(NPC, 1034.45, -24.37, -737.01, 1, 0)
  45. MovementLoopAddLocation(NPC, 1034.15, -24.33, -728.77, 1, 0)
  46. MovementLoopAddLocation(NPC, 1037.82, -24.32, -722.17, 1, 0)
  47. MovementLoopAddLocation(NPC, 1047.06, -24.34, -721.89, 1, 0)
  48. MovementLoopAddLocation(NPC, 1055.91, -24.32, -720.29, 1, math.random(5,10))
  49. MovementLoopAddLocation(NPC, 1055.91, -24.37, -720.29, 1, 0)
  50. MovementLoopAddLocation(NPC, 1046.3, -24.37, -722.91, 1, math.random(5,10))
  51. MovementLoopAddLocation(NPC, 1046.3, -24.37, -722.91, 1, 0)
  52. MovementLoopAddLocation(NPC, 1037.02, -24.33, -719.2, 1, 0)
  53. MovementLoopAddLocation(NPC, 1027.35, -24.33, -722.21, 1, math.random(5,10))
  54. MovementLoopAddLocation(NPC, 1027.35, -24.37, -722.21, 1, 0)
  55. MovementLoopAddLocation(NPC, 1031.93, -24.33, -721.33, 1, 0)
  56. MovementLoopAddLocation(NPC, 1035.38, -24.37, -724.27, 1, math.random(5,10))
  57. end