abonecutterfishRoam4.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/abonecutterfishRoam4.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.13 03:10:52
  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, 993.56, -24.38, -768.25, 1, 0)
  38. MovementLoopAddLocation(NPC, 994.45, -24.32, -764.43, 1, 0)
  39. MovementLoopAddLocation(NPC, 1000.74, -23.91, -757.57, 1, 0)
  40. MovementLoopAddLocation(NPC, 1011.55, -23.88, -748.17, 1, 0)
  41. MovementLoopAddLocation(NPC, 1020.09, -24.14, -742.89, 1, math.random(5,10))
  42. MovementLoopAddLocation(NPC, 1020.09, -24.14, -742.89, 1, 0)
  43. MovementLoopAddLocation(NPC, 1015.36, -23.9, -742.29, 1, math.random(5,10))
  44. MovementLoopAddLocation(NPC, 1015.36, -23.9, -742.29, 1, 0)
  45. MovementLoopAddLocation(NPC, 1020.01, -24.01, -745.14, 1, math.random(5,10))
  46. MovementLoopAddLocation(NPC, 1020.01, -24.01, -745.14, 1, 0)
  47. MovementLoopAddLocation(NPC, 1011.44, -23.89, -747.89, 1, 0)
  48. MovementLoopAddLocation(NPC, 1004.1, -23.82, -753.92, 1, 0)
  49. MovementLoopAddLocation(NPC, 996.82, -23.93, -760.65, 1, 0)
  50. MovementLoopAddLocation(NPC, 991.69, -24.37, -769.97, 1, math.random(5,10))
  51. MovementLoopAddLocation(NPC, 991.69, -24.37, -769.97, 1, 0)
  52. MovementLoopAddLocation(NPC, 985.58, -24.32, -772.37, 1, math.random(5,10))
  53. MovementLoopAddLocation(NPC, 985.58, -24.37, -772.37, 1, 0)
  54. MovementLoopAddLocation(NPC, 993.56, -24.37, -768.25, 1, math.random(5,10))
  55. end