aspectralinstructor.lua 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --[[
  2. Script Name : SpawnScripts/ForestRuins/aspectralinstructor.lua
  3. Script Author : Dorbin/LordPazuzu
  4. Script Date : 2022.02.26 11:02:09
  5. Script Purpose : Looping instructor pathing/emotes
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 =11
  11. local level2 = 12
  12. local difficulty1 = 6
  13. local hp1 = 430
  14. local power1 = 160
  15. local difficulty2 = 6
  16. local hp2 = 450
  17. local power2 = 190
  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. end
  35. function waypoints(NPC)
  36. if GetSpawnLocationID(NPC)==424804 then
  37. MovementLoopAddLocation(NPC, 1070.56, -4.3, -765.76, 2, 0)
  38. MovementLoopAddLocation(NPC, 1083.47, -4.3, -759.94, 2, 0)
  39. MovementLoopAddLocation(NPC, 1087.85, -5.5, -753.82, 2, 0)
  40. MovementLoopAddLocation(NPC, 1090.39, -10.05, -744.45, 2, 0)
  41. MovementLoopAddLocation(NPC, 1083.6, -10.25, -736.13, 2, 0)
  42. MovementLoopAddLocation(NPC, 1071.57, -10.25, -731.76, 2, 0)
  43. MovementLoopAddLocation(NPC, 1057.64, -10.25, -738.46, 2, 0)
  44. MovementLoopAddLocation(NPC, 1054.39, -10.25, -748.41, 2, 0)
  45. MovementLoopAddLocation(NPC, 1050.12, -10.25, -767.95, 2, 0)
  46. MovementLoopAddLocation(NPC, 1055.54, -10.25, -772.17, 2, 0)
  47. MovementLoopAddLocation(NPC, 1056.9, -10.25, -781.29, 2, 0)
  48. MovementLoopAddLocation(NPC, 1063.09, -10.25, -789.2, 2, 0)
  49. MovementLoopAddLocation(NPC, 1062.33, -10.25, -790.59, 2, 0)
  50. MovementLoopAddLocation(NPC, 1056.98, -10.25, -780.3, 2, 0)
  51. MovementLoopAddLocation(NPC, 1055.73, -10.25, -772.32, 2, 0)
  52. MovementLoopAddLocation(NPC, 1046.37, -10.25, -767.82, 2, 0)
  53. MovementLoopAddLocation(NPC, 1037.32, -10.25, -769.86, 2, 0)
  54. MovementLoopAddLocation(NPC, 1034.95, -10.25, -769.62, 2, 0)
  55. MovementLoopAddLocation(NPC, 1034.38, -10.25, -767.39, 2, 0)
  56. MovementLoopAddLocation(NPC, 1040.4, -10.25, -765.13, 2, 0)
  57. MovementLoopAddLocation(NPC, 1042.44, -10.25, -754.56, 2, 0)
  58. MovementLoopAddLocation(NPC, 1054.32, -10.25, -755.92, 2, 0)
  59. else if GetSpawnLocationID(NPC)==424825 then
  60. MovementLoopAddLocation(NPC, 1111.34, -10.25, -724.74, 2, 0)
  61. MovementLoopAddLocation(NPC, 1090.59, -10.25, -734.93, 2, 0)
  62. MovementLoopAddLocation(NPC, 1087.82, -7.68, -748.95, 2, 0)
  63. MovementLoopAddLocation(NPC, 1083.25, -4.3, -757.96, 2, 0)
  64. MovementLoopAddLocation(NPC, 1070.91, -4.31, -771.59, 2, 0)
  65. MovementLoopAddLocation(NPC, 1071.26, -4.31, -782.76, 2, 0)
  66. MovementLoopAddLocation(NPC, 1080.1, -4.3, -787.17, 2, 0)
  67. MovementLoopAddLocation(NPC, 1096.85, -4.3, -780.46, 2, 0)
  68. MovementLoopAddLocation(NPC, 1096.53, -4.31, -770.27, 2, 0)
  69. MovementLoopAddLocation(NPC, 1088.14, -4.31, -762.58, 2, 0)
  70. MovementLoopAddLocation(NPC, 1069.82, -4.3, -762.9, 2, 0)
  71. MovementLoopAddLocation(NPC, 1060.85, -8.1, -759.86, 2, 0)
  72. MovementLoopAddLocation(NPC, 1053.36, -10.25, -753.97, 2, 0)
  73. MovementLoopAddLocation(NPC, 1057.18, -10.25, -748.81, 2, 0)
  74. MovementLoopAddLocation(NPC, 1065.7, -10.25, -755.94, 2, 0)
  75. MovementLoopAddLocation(NPC, 1077.96, -10.25, -751.21, 2, 0)
  76. MovementLoopAddLocation(NPC, 1080.84, -10.25, -739.33, 2, 0)
  77. end
  78. end
  79. end