AvilonBlueheart.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. --[[
  2. Script Name : SpawnScripts/WillowWood/AvilonBlueheart.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.07 03:07:15
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. SetPlayerProximityFunction(NPC, 5, "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, 839.94, -22.2, -640.4, 2, 0)
  22. MovementLoopAddLocation(NPC, 833.4, -21.54, -638.17, 2, 0)
  23. MovementLoopAddLocation(NPC, 832.69, -21.45, -638.11, 2, 2,"Door")
  24. MovementLoopAddLocation(NPC, 827.7, -21.25, -638.5, 2, 0)
  25. MovementLoopAddLocation(NPC, 825.28, -21.25, -640.19, 2, 0)
  26. MovementLoopAddLocation(NPC, 821.05, -21.25, -643.67, 2, 1)
  27. MovementLoopAddLocation(NPC, 821.05, -21.25, -643.67, 2, 40,"EcologyEmotes")
  28. MovementLoopAddLocation(NPC, 820.57, -21.25, -644.13, 2, 0)
  29. MovementLoopAddLocation(NPC, 822.04, -21.25, -643.21, 2, 0)
  30. MovementLoopAddLocation(NPC, 823.53, -21.25, -642.18, 2, 0)
  31. MovementLoopAddLocation(NPC, 825.68, -21.25, -644.53, 2, 1)
  32. MovementLoopAddLocation(NPC, 825.68, -21.25, -644.53, 2, 16,"EcologyEmotes")
  33. MovementLoopAddLocation(NPC, 826, -21.25, -643.53, 2, 0)
  34. MovementLoopAddLocation(NPC, 828.57, -21.25, -638.76, 2, 0)
  35. MovementLoopAddLocation(NPC, 828.99, -21.21, -638.69, 2, 2,"Door")
  36. MovementLoopAddLocation(NPC, 834.38, -21.77, -637.75, 2, 0)
  37. MovementLoopAddLocation(NPC, 837.3, -22.14, -637.8, 2, 0)
  38. MovementLoopAddLocation(NPC, 840.46, -22.43, -635.58, 2, 0)
  39. MovementLoopAddLocation(NPC, 842.34, -22.43, -629.97, 2, 0)
  40. MovementLoopAddLocation(NPC, 846.28, -21.12, -623.14, 2, 0)
  41. MovementLoopAddLocation(NPC, 849.05, -20.99, -616.69, 2, 0)
  42. MovementLoopAddLocation(NPC, 850.55, -20.69, -613.21, 2, 0)
  43. MovementLoopAddLocation(NPC, 851.28, -20.51, -609.44, 2, 0)
  44. MovementLoopAddLocation(NPC, 845.32, -20.83, -604.7, 2, 0)
  45. MovementLoopAddLocation(NPC, 840.84, -19.63, -597.77, 2, 1)
  46. MovementLoopAddLocation(NPC, 840.84, -19.63, -597.77, 2, 16,"EcologyEmotes")
  47. MovementLoopAddLocation(NPC, 841.65, -20.88, -604.06, 2, 0)
  48. MovementLoopAddLocation(NPC, 851.18, -20.63, -608.36, 2, 0)
  49. MovementLoopAddLocation(NPC, 863.13, -18.82, -607.77, 2, 0)
  50. MovementLoopAddLocation(NPC, 870.53, -18.41, -604.13, 2, 0)
  51. MovementLoopAddLocation(NPC, 880.79, -16.86, -603.5, 2, 15)
  52. MovementLoopAddLocation(NPC, 870.61, -18.38, -601.92, 2, 0)
  53. MovementLoopAddLocation(NPC, 864.86, -18.68, -607.3, 2, 0)
  54. MovementLoopAddLocation(NPC, 852.83, -20.34, -608.57, 2, 0)
  55. MovementLoopAddLocation(NPC, 851.03, -20.64, -608.31, 2, 0)
  56. MovementLoopAddLocation(NPC, 848.2, -21.03, -615.84, 2, 0)
  57. MovementLoopAddLocation(NPC, 843.74, -21.71, -625.37, 2, 0)
  58. MovementLoopAddLocation(NPC, 840.05, -22.37, -631.78, 2, 0)
  59. MovementLoopAddLocation(NPC, 842.23, -21.42, -646.13, 2, 0)
  60. MovementLoopAddLocation(NPC, 842.61, -20.03, -655.12, 2, 1)
  61. MovementLoopAddLocation(NPC, 842.61, -20.03, -655.12, 2, 40,"EcologyEmotes")
  62. MovementLoopAddLocation(NPC, 841.85, -19.99, -655.94, 2, 0)
  63. MovementLoopAddLocation(NPC, 843.97, -20.19, -659.36, 2, 0)
  64. MovementLoopAddLocation(NPC, 845.73, -21.12, -667.9, 2, 0)
  65. MovementLoopAddLocation(NPC, 848.06, -20.72, -678.29, 2, 0)
  66. MovementLoopAddLocation(NPC, 849.22, -20.61, -685.54, 2, 0)
  67. MovementLoopAddLocation(NPC, 849.61, -20.61, -693.51, 2, 0)
  68. MovementLoopAddLocation(NPC, 847.43, -20.61, -701.19, 2, 0)
  69. MovementLoopAddLocation(NPC, 842.61, -20.61, -707.65, 2, 0)
  70. MovementLoopAddLocation(NPC, 836.71, -20.61, -715.91, 2, 0)
  71. MovementLoopAddLocation(NPC, 831.09, -20.61, -724.1, 2, 1)
  72. MovementLoopAddLocation(NPC, 831.09, -20.61, -724.1, 2, 33,"EcologyEmotes")
  73. MovementLoopAddLocation(NPC, 830.55, -20.61, -727.28, 2, 0)
  74. MovementLoopAddLocation(NPC, 832.65, -20.61, -727.95, 2, 0)
  75. MovementLoopAddLocation(NPC, 837.7, -20.61, -722.3, 2, 0)
  76. MovementLoopAddLocation(NPC, 848.72, -20.61, -708.39, 2, 0)
  77. MovementLoopAddLocation(NPC, 851.34, -20.61, -703.62, 2, 0)
  78. MovementLoopAddLocation(NPC, 853.75, -20.61, -693.64, 2, 0)
  79. MovementLoopAddLocation(NPC, 852.86, -20.61, -681.73, 2, 0)
  80. MovementLoopAddLocation(NPC, 848.12, -21.02, -668.04, 2, 0)
  81. MovementLoopAddLocation(NPC, 844.63, -20.01, -654.37, 2, 0)
  82. MovementLoopAddLocation(NPC, 847.13, -21.14, -647.58, 2, 0)
  83. MovementLoopAddLocation(NPC, 850.84, -21.29, -643.75, 2, 0)
  84. MovementLoopAddLocation(NPC, 854.42, -20.92, -640.66, 2, 1)
  85. MovementLoopAddLocation(NPC, 854.42, -20.92, -640.66, 2, 33,"EcologyEmotes")
  86. MovementLoopAddLocation(NPC, 849.54, -21.82, -640.28, 2, 0)
  87. MovementLoopAddLocation(NPC, 842.73, -22.21, -640.82, 2, 0)
  88. end
  89. function Door(NPC,Spawn)
  90. local door = GetSpawn(NPC, 2370047)
  91. UseWidget(door)
  92. end