astoneshellsnapper14.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/astoneshellsnapper14.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.12 07:10:59
  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, 1143.22, -22.25, -715.03, 1, 0)
  46. MovementLoopAddLocation(NPC, 1148.32, -21.65, -713.9, 1, math.random(5,10))
  47. MovementLoopAddLocation(NPC, 1148.32, -21.65, -713.9, 1, 0)
  48. MovementLoopAddLocation(NPC, 1142.7, -22.84, -714.25, 1, 0)
  49. MovementLoopAddLocation(NPC, 1140.42, -22.95, -721.4, 1, math.random(5,10))
  50. MovementLoopAddLocation(NPC, 1140.42, -22.95, -721.4, 1, 0)
  51. MovementLoopAddLocation(NPC, 1136.08, -22.83, -721.82, 1, math.random(5,10))
  52. MovementLoopAddLocation(NPC, 1136.08, -22.83, -721.82, 1, 0)
  53. MovementLoopAddLocation(NPC, 1140.27, -22.37, -724.02, 1, math.random(5,10))
  54. MovementLoopAddLocation(NPC, 1140.27, -22.37, -724.02, 1, 0)
  55. MovementLoopAddLocation(NPC, 1130.32, -22.86, -717.15, 1, math.random(5,10))
  56. MovementLoopAddLocation(NPC, 1130.32, -22.86, -717.15, 1, 0)
  57. MovementLoopAddLocation(NPC, 1134.81, -22.9, -720.71, 1, 0)
  58. MovementLoopAddLocation(NPC, 1140.3, -22.81, -721.85, 1, 0)
  59. MovementLoopAddLocation(NPC, 1141.71, -22.85, -715.78, 1, 0)
  60. MovementLoopAddLocation(NPC, 1143.22, -22.25, -715.03, 1, math.random(5,10))
  61. end