VilnaDarkhart.lua 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/VilnaDarkhart.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.11.27 01:11:48
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. SetPlayerProximityFunction(NPC, 6, "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 respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function waypoints(NPC)
  24. MovementLoopAddLocation(NPC, -13.98, -2.95, 69.12, 2, 1)
  25. MovementLoopAddLocation(NPC, -13.98, -2.95, 69.12, 2, MakeRandomInt(18,25),"EcologyEmotes")
  26. MovementLoopAddLocation(NPC, -13.42, -3.28, 67.25, 2, 0)
  27. MovementLoopAddLocation(NPC, -11.16, -7, 58.85, 2, 0)
  28. MovementLoopAddLocation(NPC, -6.03, -7, 53.49, 2, 0)
  29. MovementLoopAddLocation(NPC, 2.27, -7, 49.75, 2, 0)
  30. MovementLoopAddLocation(NPC, 12.56, -7, 50.32, 2, 0)
  31. MovementLoopAddLocation(NPC, 15.03, -7, 50.59, 2, 0)
  32. MovementLoopAddLocation(NPC, 23.18, -7, 57.81, 2, 0)
  33. MovementLoopAddLocation(NPC, 25.9, -7.11, 60.83, 2, 0)
  34. MovementLoopAddLocation(NPC, 28.76, -5.92, 60.51, 2, 0)
  35. MovementLoopAddLocation(NPC, 35.23, -2.78, 58.94, 2, 0)
  36. MovementLoopAddLocation(NPC, 37.63, -2.78, 60.18, 2, 0)
  37. MovementLoopAddLocation(NPC, 38.07, -2.78, 63.1, 2, 0)
  38. MovementLoopAddLocation(NPC, 35.62, -1.9, 64.11, 2, 0)
  39. MovementLoopAddLocation(NPC, 29.59, -0.07, 64.22, 2, 1)
  40. MovementLoopAddLocation(NPC, 29.59, -0.07, 64.22, 2, 15,"EcologyEmotes")
  41. MovementLoopAddLocation(NPC, 29.59, -0.07, 64.22, 2, 15,"EcologyEmotes")
  42. MovementLoopAddLocation(NPC, 29.59, -0.07, 64.22, 2, 0)
  43. MovementLoopAddLocation(NPC, 31.94, -0.17, 63.74, 2, 0)
  44. MovementLoopAddLocation(NPC, 36.74, -2.25, 62.22, 2, 0)
  45. MovementLoopAddLocation(NPC, 37.2, -2.78, 62.18, 2, 0)
  46. MovementLoopAddLocation(NPC, 37.15, -2.78, 61.28, 2, 0)
  47. MovementLoopAddLocation(NPC, 36.53, -2.78, 60.06, 2, 0)
  48. MovementLoopAddLocation(NPC, 26.28, -7.19, 62.36, 2, 0)
  49. MovementLoopAddLocation(NPC, 20.6, -7, 60.02, 2, 0)
  50. MovementLoopAddLocation(NPC, 20.15, -6.77, 50.04, 2, 0)
  51. MovementLoopAddLocation(NPC, 22.11, -6.25, 45.68, 2, 0)
  52. MovementLoopAddLocation(NPC, 24.7, -6, 42.44, 2, 1)
  53. MovementLoopAddLocation(NPC, 24.7, -6, 42.44, 2, 20,"EcologyEmotes")
  54. MovementLoopAddLocation(NPC, 25.75, -6, 41.39, 2, 0)
  55. MovementLoopAddLocation(NPC, 26.85, -6, 40.92, 2, 0)
  56. MovementLoopAddLocation(NPC, 29.85, -5.75, 39.73, 2, 0)
  57. MovementLoopAddLocation(NPC, 32.46, -5.25, 35.2, 2, 0)
  58. MovementLoopAddLocation(NPC, 37.14, -5, 33.31, 2, 0)
  59. MovementLoopAddLocation(NPC, 51.36, -5, 29.88, 2, 2,"Door1")
  60. MovementLoopAddLocation(NPC, 56.01, -4.99, 29.61, 2, 0,"Door1")
  61. MovementLoopAddLocation(NPC, 57.37, -4.99, 27.95, 2, 0)
  62. MovementLoopAddLocation(NPC, 59.99, -4.99, 23.73, 2, 1)
  63. MovementLoopAddLocation(NPC, 59.99, -4.99, 23.73, 2, MakeRandomInt(20,35),"EcologyEmotes")
  64. MovementLoopAddLocation(NPC, 60.42, -4.99, 25.16, 2, 0)
  65. MovementLoopAddLocation(NPC, 60.36, -4.99, 27.29, 2, 0)
  66. MovementLoopAddLocation(NPC, 60.22, -4.99, 32.25, 2, 1)
  67. MovementLoopAddLocation(NPC, 60.22, -4.99, 32.25, 2, MakeRandomInt(20,35),"EcologyEmotes")
  68. MovementLoopAddLocation(NPC, 58.54, -4.99, 29.97, 2, 0)
  69. MovementLoopAddLocation(NPC, 56.17, -4.99, 29.69, 2, 2,"Door1")
  70. MovementLoopAddLocation(NPC, 51.19, -5, 29.41, 2, 0,"Door1")
  71. MovementLoopAddLocation(NPC, 48.48, -5, 31.82, 2, 0)
  72. MovementLoopAddLocation(NPC, 36.1, -5, 31.12, 2, 0)
  73. MovementLoopAddLocation(NPC, 31.59, -5, 29.45, 2, 0)
  74. MovementLoopAddLocation(NPC, 28.69, -5, 27.68, 2, 0)
  75. MovementLoopAddLocation(NPC, 24.46, -5, 27.64, 2, 0)
  76. MovementLoopAddLocation(NPC, 17.82, -5, 28.95, 2, 0)
  77. MovementLoopAddLocation(NPC, 11.18, -5, 27.4, 2, 0)
  78. MovementLoopAddLocation(NPC, 4.3, -5.75, 30.41, 2, 0)
  79. MovementLoopAddLocation(NPC, 0.54, -6, 32.04, 2, 1)
  80. MovementLoopAddLocation(NPC, 0.54, -6, 32.04, 2, MakeRandomInt(18,25),"EcologyEmotes")
  81. MovementLoopAddLocation(NPC, 0.98, -6, 35.29, 2, 0)
  82. MovementLoopAddLocation(NPC, -1.92, -7, 47.35, 2, 0)
  83. MovementLoopAddLocation(NPC, -7.18, -7, 73.4, 2, 1)
  84. MovementLoopAddLocation(NPC, -7.18, -7, 73.4, 2, MakeRandomInt(18,25),"EcologyEmotes")
  85. MovementLoopAddLocation(NPC, -6.06, -7, 71.99, 2, 0)
  86. MovementLoopAddLocation(NPC, -6.22, -7, 67.14, 2, 0)
  87. MovementLoopAddLocation(NPC, -5.33, -7, 60.3, 2, 0)
  88. MovementLoopAddLocation(NPC, -7.44, -7, 59.2, 2, 0)
  89. MovementLoopAddLocation(NPC, -8.79, -5.06, 64.26, 2, 0)
  90. MovementLoopAddLocation(NPC, -10.06, -3, 69.02, 2, 0)
  91. MovementLoopAddLocation(NPC, -12.48, -2.82, 71.68, 2, 2,"Door2")
  92. MovementLoopAddLocation(NPC, -13.41, -2.83, 76.45, 2, 0,"Door2")
  93. MovementLoopAddLocation(NPC, -13.41, -2.33, 78.95, 2, 0)
  94. MovementLoopAddLocation(NPC, -17.71, -2.33, 79.99, 2, 1)
  95. MovementLoopAddLocation(NPC, -17.71, -2.33, 79.99, 2, 30,"EcologyEmotes")
  96. MovementLoopAddLocation(NPC, -16.25, -2.33, 80.18, 2, 0)
  97. MovementLoopAddLocation(NPC, -12.88, -2.33, 80.57, 2, 1)
  98. MovementLoopAddLocation(NPC, -12.88, -2.33, 80.57, 2, 30,"EcologyEmotes")
  99. MovementLoopAddLocation(NPC, -13.25, -2.34, 78.82, 2, 0)
  100. MovementLoopAddLocation(NPC, -13.07, -2.83, 76.96, 2, 2,"Door2")
  101. MovementLoopAddLocation(NPC, -12.19, -2.82, 71.79, 2, 0,"Door2")
  102. MovementLoopAddLocation(NPC, -13.09, -2.86, 70.43, 2, 0)
  103. end
  104. function Door1(NPC,Spawn)
  105. local door = GetSpawn(NPC, 1370073)
  106. UseWidget(door)
  107. end
  108. function Door2(NPC,Spawn)
  109. local door = GetSpawn(NPC, 1370079)
  110. UseWidget(door)
  111. end