analbinoarachnid5.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : SpawnScripts/Caves/analbinoarachnid5.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.05 11:10:18
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 10
  11. local level2 = 11
  12. local difficulty1 = 6
  13. local hp1 = 370
  14. local power1 = 130
  15. local difficulty2 = 6
  16. local hp2 = 430
  17. local power2 = 160
  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, 5.74, 37.62, -52.29, 2, math.random(5,10))
  38. MovementLoopAddLocation(NPC, -8.89, 37.49, -71.26, 2, math.random(5,10))
  39. MovementLoopAddLocation(NPC, -8.89, 37.49, -71.26, 2, 0)
  40. MovementLoopAddLocation(NPC, -7.15, 37.78, -75.67, 2, math.random(5,10))
  41. MovementLoopAddLocation(NPC, -7.15, 37.78, -75.67, 2, 0)
  42. MovementLoopAddLocation(NPC, -13.28, 38.72, -53.63, 2, math.random(5,10))
  43. MovementLoopAddLocation(NPC, -13.28, 38.72, -53.63, 2, 0)
  44. MovementLoopAddLocation(NPC, -4.73, 38.3, -43.08, 2, math.random(5,10))
  45. MovementLoopAddLocation(NPC, -4.73, 38.3, -43.08, 2, 0)
  46. MovementLoopAddLocation(NPC, -4.49, 38.72, -48.29, 2, math.random(5,10))
  47. MovementLoopAddLocation(NPC, -4.49, 38.72, -48.29, 2, 0)
  48. MovementLoopAddLocation(NPC, 9.41, 37.34, -41, 2, math.random(5,10))
  49. MovementLoopAddLocation(NPC, 9.41, 37.34, -41, 2, 0)
  50. MovementLoopAddLocation(NPC, -0.45, 37.87, -37.73, 2, math.random(5,10))
  51. MovementLoopAddLocation(NPC, -0.45, 37.87, -37.73, 2, 0)
  52. MovementLoopAddLocation(NPC, 10.54, 37.64, -52.85, 2, math.random(5,10))
  53. MovementLoopAddLocation(NPC, 10.54, 37.64, -52.85, 2, 0)
  54. MovementLoopAddLocation(NPC, 5.74, 37.62, -52.29, 2, 0)
  55. end