forgotten_soul3055.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : SpawnScripts/DownBelow/forgotten_soul3055.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.04.24 07:04:53
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 10
  11. local level2 = 9
  12. local difficulty1 = 6
  13. local hp1 = 370
  14. local power1 = 130
  15. local difficulty2 = 6
  16. local hp2 = 275
  17. local power2 = 110
  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, -189.26, 0.32, -47.02, 2, 0)
  38. MovementLoopAddLocation(NPC, -191.47, -0.12, -53.65, 2, 0)
  39. MovementLoopAddLocation(NPC, -191.33, -0.07, -66, 2, 0)
  40. MovementLoopAddLocation(NPC, -186.79, -0.09, -73.02, 2, 0)
  41. MovementLoopAddLocation(NPC, -176.75, -0.27, -73.44, 2, 7)
  42. MovementLoopAddLocation(NPC, -177.41, -0.26, -84.62, 2, 0)
  43. MovementLoopAddLocation(NPC, -185.92, -0.02, -92.03, 2, 0)
  44. MovementLoopAddLocation(NPC, -196.96, -0.05, -93.43, 2, 0)
  45. MovementLoopAddLocation(NPC, -208.74, -0.1, -91.94, 2, 0)
  46. MovementLoopAddLocation(NPC, -212.65, -0.05, -87.93, 2, 2)
  47. MovementLoopAddLocation(NPC, -219.17, -0.1, -93.25, 2, 7)
  48. MovementLoopAddLocation(NPC, -213.18, -0.05, -88.98, 2, 0)
  49. MovementLoopAddLocation(NPC, -218.95, -0.09, -81.92, 2, 0)
  50. MovementLoopAddLocation(NPC, -218.38, 0.02, -57.63, 2, 0)
  51. MovementLoopAddLocation(NPC, -209.03, -0.9, -47.12, 2, 0)
  52. MovementLoopAddLocation(NPC, -191.83, 0, -29.67, 2, 0)
  53. MovementLoopAddLocation(NPC, -182.6, -0.12, -38.11, 2, 5)
  54. MovementLoopAddLocation(NPC, -184.64, -0.15, -41.73, 2, 0)
  55. MovementLoopAddLocation(NPC, -189.35, 0.36, -47.14, 2, 0)
  56. end