9
3

astoneshellsnapper9.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/astoneshellsnapper9.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.12 06:10:06
  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, 1117.85, -22.91, -660.81, 1, 0)
  47. MovementLoopAddLocation(NPC, 1115.06, -22.84, -661.54, 1, math.random(5,10))
  48. MovementLoopAddLocation(NPC, 1115.06, -22.84, -661.54, 1, 0)
  49. MovementLoopAddLocation(NPC, 1120.84, -22.57, -659.72, 1, math.random(5,10))
  50. MovementLoopAddLocation(NPC, 1120.84, -22.57, -659.72, 1, 0)
  51. MovementLoopAddLocation(NPC, 1123.91, -21.27, -657.26, 1, 0)
  52. MovementLoopAddLocation(NPC, 1127.22, -21.07, -656.96, 1, math.random(5,10))
  53. MovementLoopAddLocation(NPC, 1127.22, -21.07, -656.96, 1, 0)
  54. MovementLoopAddLocation(NPC, 1128.81, -23.2, -661.06, 1, math.random(5,10))
  55. MovementLoopAddLocation(NPC, 1128.81, -23.2, -661.06, 1, 0)
  56. MovementLoopAddLocation(NPC, 1123.13, -23.02, -659.92, 1, math.random(5,10))
  57. MovementLoopAddLocation(NPC, 1123.13, -23.02, -659.92, 1, 0)
  58. MovementLoopAddLocation(NPC, 1117.35, -21.18, -657.81, 1, math.random(5,10))
  59. MovementLoopAddLocation(NPC, 1117.35, -21.18, -657.81, 1, 0)
  60. MovementLoopAddLocation(NPC, 1113.76, -23.06, -662.75, 1, math.random(5,10))
  61. MovementLoopAddLocation(NPC, 1113.76, -23.06, -662.75, 1, 0)
  62. MovementLoopAddLocation(NPC, 1117.85, -22.91, -660.81, 1, math.random(5,10))
  63. end