Junala.lua 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/Junala.lua
  3. Script Purpose : Junala
  4. Script Author : Dorbin
  5. Script Date : 2022.05.01
  6. Script Notes :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. GenericEcologyHail(NPC, Spawn, faction)
  16. end
  17. function InRange(NPC,Spawn)
  18. GenericEcologyCallout(NPC, Spawn, faction)
  19. end
  20. function waypoints(NPC)
  21. MovementLoopAddLocation(NPC, 605.96, -20.89, -259.09, 2, 0)
  22. MovementLoopAddLocation(NPC, 614, -20.95, -229.58, 2, 0)
  23. MovementLoopAddLocation(NPC, 634.96, -19.08, -234.01, 2, 0)
  24. MovementLoopAddLocation(NPC, 668.9, -17.01, -245.59, 2, 0)
  25. MovementLoopAddLocation(NPC, 695.49, -16.99, -266.47, 2, 0)
  26. MovementLoopAddLocation(NPC, 727.35, -17.06, -285.49, 2, 0)
  27. MovementLoopAddLocation(NPC, 734.16, -17.04, -294.26, 2, 0)
  28. MovementLoopAddLocation(NPC, 765.1, -18.47, -326.74, 2, 0)
  29. MovementLoopAddLocation(NPC, 782.61, -20.65, -340.07, 2, 1)
  30. MovementLoopAddLocation(NPC, 782.61, -20.65, -340.07, 2, math.random(8,12),"EcologyEmotes")
  31. MovementLoopAddLocation(NPC, 782.61, -20.65, -340.07, 2, 0)
  32. MovementLoopAddLocation(NPC, 770.4, -19.3, -332.35, 2, 0)
  33. MovementLoopAddLocation(NPC, 753.74, -20.15, -332.09, 2, math.random(0,8))
  34. MovementLoopAddLocation(NPC, 742.81, -20.21, -332.7, 2, 0)
  35. MovementLoopAddLocation(NPC, 712.98, -17.1, -329.32, 2, 0)
  36. MovementLoopAddLocation(NPC, 686.74, -19.94, -317.7, 2, 0)
  37. MovementLoopAddLocation(NPC, 657.75, -20.95, -289.69, 2, 0)
  38. MovementLoopAddLocation(NPC, 652.1, -21.54, -292.41, 2, 0)
  39. MovementLoopAddLocation(NPC, 647.82, -16.62, -334.4, 2, 0)
  40. MovementLoopAddLocation(NPC, 678.13, -13.8, -354.18, 2, math.random(0,8))
  41. MovementLoopAddLocation(NPC, 730.27, -20.06, -375.56, 2, 0)
  42. MovementLoopAddLocation(NPC, 707.55, -15.61, -383.54, 2, 0)
  43. MovementLoopAddLocation(NPC, 697.97, -14.96, -419.59, 2, 0)
  44. MovementLoopAddLocation(NPC, 702.31, -16.73, -428.28, 2, 0)
  45. MovementLoopAddLocation(NPC, 710.67, -20.53, -452.09, 2, 0)
  46. MovementLoopAddLocation(NPC, 746.91, -22.31, -474.65, 2, 0)
  47. MovementLoopAddLocation(NPC, 766, -21.8, -491.51, 2, 0)
  48. MovementLoopAddLocation(NPC, 781.11, -22.01, -508.27, 2, math.random(0,8))
  49. MovementLoopAddLocation(NPC, 797.01, -22.28, -536.9, 2, 0)
  50. MovementLoopAddLocation(NPC, 807.31, -21.34, -533.66, 2, 0)
  51. MovementLoopAddLocation(NPC, 798.56, -22.21, -535.94, 2, 0)
  52. MovementLoopAddLocation(NPC, 784.07, -21.95, -507.11, 2, 0)
  53. MovementLoopAddLocation(NPC, 770.84, -21.8, -491.93, 2, 0)
  54. MovementLoopAddLocation(NPC, 751.67, -22.16, -473.85, 2, 0)
  55. MovementLoopAddLocation(NPC, 713.99, -20.93, -455.41, 2, 0)
  56. MovementLoopAddLocation(NPC, 709.61, -19.78, -445.62, 2, 0)
  57. MovementLoopAddLocation(NPC, 702.09, -16.88, -427.62, 2, 0)
  58. MovementLoopAddLocation(NPC, 698.2, -13.79, -406.51, 2, 0)
  59. MovementLoopAddLocation(NPC, 678.26, -11.62, -394.41, 2, math.random(0,8))
  60. MovementLoopAddLocation(NPC, 648.9, -11.71, -398.5, 2, 0)
  61. MovementLoopAddLocation(NPC, 591.21, -18.51, -409.57, 2, 0)
  62. MovementLoopAddLocation(NPC, 589.83, -18.82, -394.65, 2, 0)
  63. MovementLoopAddLocation(NPC, 602.64, -18.96, -382, 2, 0)
  64. MovementLoopAddLocation(NPC, 600.09, -20.02, -368.1, 2, 0)
  65. MovementLoopAddLocation(NPC, 544.86, -19.53, -359.49, 2, 0)
  66. MovementLoopAddLocation(NPC, 542.58, -20.61, -338.53, 2, 0)
  67. MovementLoopAddLocation(NPC, 547.61, -21.13, -303.98, 2, math.random(0,8))
  68. MovementLoopAddLocation(NPC, 521.75, -20.73, -290.78, 2, 0)
  69. MovementLoopAddLocation(NPC, 547.61, -21.13, -303.98, 2, 0)
  70. MovementLoopAddLocation(NPC, 542.58, -20.61, -338.53, 2, 0)
  71. MovementLoopAddLocation(NPC, 544.86, -19.53, -359.49, 2, 0)
  72. MovementLoopAddLocation(NPC, 600.09, -20.02, -368.1, 2, 0)
  73. MovementLoopAddLocation(NPC, 602.64, -18.96, -382, 2, 0)
  74. MovementLoopAddLocation(NPC, 589.83, -18.82, -394.65, 2, 0)
  75. MovementLoopAddLocation(NPC, 591.21, -18.51, -409.57, 2, 0)
  76. MovementLoopAddLocation(NPC, 648.9, -11.71, -398.5, 2, 0)
  77. MovementLoopAddLocation(NPC, 678.26, -11.62, -394.41, 2, 0)
  78. MovementLoopAddLocation(NPC, 698.2, -13.79, -406.51, 2, 0)
  79. MovementLoopAddLocation(NPC, 702.09, -16.88, -427.62, 2, 0)
  80. MovementLoopAddLocation(NPC, 709.61, -19.78, -445.62, 2, 0)
  81. MovementLoopAddLocation(NPC, 713.99, -20.93, -455.41, 2, 0)
  82. MovementLoopAddLocation(NPC, 751.67, -22.16, -473.85, 2, 0)
  83. MovementLoopAddLocation(NPC, 770.84, -21.8, -491.93, 2, 0)
  84. MovementLoopAddLocation(NPC, 784.07, -21.95, -507.11, 2, math.random(0,8))
  85. MovementLoopAddLocation(NPC, 798.56, -22.21, -535.94, 2, 0)
  86. MovementLoopAddLocation(NPC, 807.31, -21.34, -533.66, 2, 0)
  87. MovementLoopAddLocation(NPC, 797.01, -22.28, -536.9, 2, 0)
  88. MovementLoopAddLocation(NPC, 781.11, -22.01, -508.27, 2, 0)
  89. MovementLoopAddLocation(NPC, 766, -21.8, -491.51, 2, 0)
  90. MovementLoopAddLocation(NPC, 746.91, -22.31, -474.65, 2, 0)
  91. MovementLoopAddLocation(NPC, 710.67, -20.53, -452.09, 2, 0)
  92. MovementLoopAddLocation(NPC, 702.31, -16.73, -428.28, 2, 0)
  93. MovementLoopAddLocation(NPC, 697.97, -14.96, -419.59, 2, 0)
  94. MovementLoopAddLocation(NPC, 707.55, -15.61, -383.54, 2, 0)
  95. MovementLoopAddLocation(NPC, 730.27, -20.06, -375.56, 2, 0)
  96. MovementLoopAddLocation(NPC, 678.13, -13.8, -354.18, 2, 0)
  97. MovementLoopAddLocation(NPC, 647.82, -16.62, -334.4, 2, 0)
  98. MovementLoopAddLocation(NPC, 652.1, -21.54, -292.41, 2, math.random(0,8))
  99. MovementLoopAddLocation(NPC, 657.75, -20.95, -289.69, 2, 0)
  100. MovementLoopAddLocation(NPC, 686.74, -19.94, -317.7, 2, 0)
  101. MovementLoopAddLocation(NPC, 712.98, -17.1, -329.32, 2, 0)
  102. MovementLoopAddLocation(NPC, 742.81, -20.21, -332.7, 2, 0)
  103. MovementLoopAddLocation(NPC, 753.74, -20.15, -332.09, 2, 0)
  104. MovementLoopAddLocation(NPC, 770.4, -19.3, -332.35, 2, 0)
  105. MovementLoopAddLocation(NPC, 782.61, -20.65, -340.07, 2, 0)
  106. MovementLoopAddLocation(NPC, 765.1, -18.47, -326.74, 2, 0)
  107. MovementLoopAddLocation(NPC, 734.16, -17.04, -294.26, 2, math.random(0,8))
  108. MovementLoopAddLocation(NPC, 727.35, -17.06, -285.49, 2, 0)
  109. MovementLoopAddLocation(NPC, 695.49, -16.99, -266.47, 2, 0)
  110. MovementLoopAddLocation(NPC, 668.9, -17.01, -245.59, 2, 0)
  111. MovementLoopAddLocation(NPC, 634.96, -19.08, -234.01, 2, 0)
  112. MovementLoopAddLocation(NPC, 614, -20.95, -229.58, 2, 0)
  113. MovementLoopAddLocation(NPC, 605.96, -20.89, -259.09, 2, 0)
  114. end