astoneshellsnapper10.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/astoneshellsnapper10.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.12 07:10:03
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local level1 = 5
  10. local level2 = 6
  11. local level3 = 7
  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. local difficulty3 =6
  19. local hp3 = 200
  20. local power3 = 90
  21. if Level == level1 then
  22. SpawnSet(NPC, "difficulty", difficulty1)
  23. SpawnSet(NPC, "hp", hp1)
  24. SpawnSet(NPC, "power", power1)
  25. elseif Level == level2
  26. then
  27. SpawnSet(NPC, "difficulty", difficulty2)
  28. SpawnSet(NPC, "hp", hp2)
  29. SpawnSet(NPC, "power", power2)
  30. elseif Level == level3
  31. then
  32. SpawnSet(NPC, "difficulty", difficulty3)
  33. SpawnSet(NPC, "hp", hp3)
  34. SpawnSet(NPC, "power", power3)
  35. end
  36. waypoints(NPC)
  37. end
  38. function hailed(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. end
  41. function respawn(NPC)
  42. spawn(NPC)
  43. end
  44. function waypoints(NPC)
  45. MovementLoopAddLocation(NPC, 1133.82, -22.61, -660.65, 1, 0)
  46. MovementLoopAddLocation(NPC, 1131.61, -20.28, -656.25, 1, math.random(5,10))
  47. MovementLoopAddLocation(NPC, 1131.61, -20.28, -656.25, 1, 0)
  48. MovementLoopAddLocation(NPC, 1129.37, -23.23, -661.36, 1, math.random(5,10))
  49. MovementLoopAddLocation(NPC, 1129.37, -23.23, -661.36, 1, 0)
  50. MovementLoopAddLocation(NPC, 1138.37, -23.22, -661.82, 1, 0)
  51. MovementLoopAddLocation(NPC, 1140.71, -22.26, -658.99, 1, math.random(5,10))
  52. MovementLoopAddLocation(NPC, 1140.71, -22.26, -658.99, 1, 0)
  53. MovementLoopAddLocation(NPC, 1135.71, -21.58, -658.65, 1, 0)
  54. MovementLoopAddLocation(NPC, 1127.28, -21.49, -657.56, 1, 0)
  55. MovementLoopAddLocation(NPC, 1122.88, -20.34, -655.3, 1, math.random(5,10))
  56. MovementLoopAddLocation(NPC, 1122.88, -20.34, -655.3, 1, 0)
  57. MovementLoopAddLocation(NPC, 1122.08, -23.91, -661.36, 1, math.random(5,10))
  58. MovementLoopAddLocation(NPC, 1122.08, -23.91, -661.36, 1, 0)
  59. MovementLoopAddLocation(NPC, 1126.48, -23.55, -660.64, 1, 0)
  60. MovementLoopAddLocation(NPC, 1129.45, -22.13, -659.39, 1, 0)
  61. MovementLoopAddLocation(NPC, 1133.82, -22.61, -660.65, 1, math.random(5,10))
  62. end