forgotten_soul3061.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : SpawnScripts/DownBelow/forgotten_soul3061.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.04.24 07:04:56
  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, -199.54, 0, -37.52, 2, 0)
  38. MovementLoopAddLocation(NPC, -216.63, 0.02, -55.18, 2, 0)
  39. MovementLoopAddLocation(NPC, -218.73, -0.01, -62.73, 2, 0)
  40. MovementLoopAddLocation(NPC, -217.76, -0.1, -83.71, 2, 0)
  41. MovementLoopAddLocation(NPC, -208.06, -0.07, -92.51, 2, 0)
  42. MovementLoopAddLocation(NPC, -188.84, -0.04, -93.37, 2, 5)
  43. MovementLoopAddLocation(NPC, -180.13, -0.3, -87.34, 2, 0)
  44. MovementLoopAddLocation(NPC, -176.22, -0.23, -77.72, 2, 0)
  45. MovementLoopAddLocation(NPC, -176.17, -0.24, -74.87, 2, 0)
  46. MovementLoopAddLocation(NPC, -186.59, -0.09, -73.54, 2, 0)
  47. MovementLoopAddLocation(NPC, -191.26, -0.05, -66.75, 2, 5)
  48. MovementLoopAddLocation(NPC, -189.88, 0.46, -47.75, 2, 0)
  49. MovementLoopAddLocation(NPC, -181.1, -0.16, -38.61, 2, 0)
  50. MovementLoopAddLocation(NPC, -190.32, 0, -30.58, 2, 0)
  51. MovementLoopAddLocation(NPC, -199.54, 0, -37.52, 2, 5)
  52. end