astoneshellsnapper5.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/astoneshellsnapper5.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.12 04:10:14
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 5
  11. local level2 = 6
  12. local level3 = 7
  13. local difficulty1 = 6
  14. local hp1 = 130
  15. local power1 = 65
  16. local difficulty2 = 6
  17. local hp2 = 150
  18. local power2 = 80
  19. local difficulty3 =6
  20. local hp3 = 200
  21. local power3 = 90
  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, 978.2, -26.75, -625.41, 1, 0)
  47. MovementLoopAddLocation(NPC, 983.38, -25.64, -623.13, 1, math.random(5,10))
  48. MovementLoopAddLocation(NPC, 983.38, -25.64, -623.13, 1, 0)
  49. MovementLoopAddLocation(NPC, 985.28, -25.46, -620.51, 1, 0)
  50. MovementLoopAddLocation(NPC, 985.48, -25.43, -616.28, 1, 0)
  51. MovementLoopAddLocation(NPC, 986.65, -25.77, -610.79, 1, math.random(5,10))
  52. MovementLoopAddLocation(NPC, 986.65, -25.77, -610.79, 1, 0)
  53. MovementLoopAddLocation(NPC, 987.61, -24.44, -613.73, 1, 0)
  54. MovementLoopAddLocation(NPC, 986.85, -24.41, -615.73, 1, math.random(5,10))
  55. MovementLoopAddLocation(NPC, 986.85, -24.41, -615.73, 1, 0)
  56. MovementLoopAddLocation(NPC, 984.23, -26.13, -620.43, 1, math.random(5,10))
  57. MovementLoopAddLocation(NPC, 984.23, -26.13, -620.43, 1, 0)
  58. MovementLoopAddLocation(NPC, 982.4, -24.32, -625.96, 1, math.random(5,10))
  59. MovementLoopAddLocation(NPC, 982.4, -24.32, -625.96, 1, 0)
  60. MovementLoopAddLocation(NPC, 973.66, -24.45, -631.17, 1, math.random(5,10))
  61. MovementLoopAddLocation(NPC, 973.66, -24.45, -631.17, 1, 0)
  62. MovementLoopAddLocation(NPC, 969.74, -27.44, -630.71, 1, math.random(5,10))
  63. MovementLoopAddLocation(NPC, 969.74, -27.44, -630.71, 1, 0)
  64. MovementLoopAddLocation(NPC, 978.2, -26.75, -625.41, 1, math.random(5,10))
  65. end