LindyDawn.lua 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/LindyDawn.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.11 10:06:40
  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 Drink(NPC)
  21. PlayAnimation(NPC,11422)
  22. AddTimer(NPC,8000, "Drink2")
  23. end
  24. function Drink2(NPC)
  25. choice = math.random(1,3)
  26. if choice == 1 then
  27. PlayAnimation(NPC,891)
  28. elseif choice == 2 then
  29. PlayAnimation(NPC,11422)
  30. else
  31. PlayAnimation(NPC,11668)
  32. end
  33. AddTimer(NPC,6000, "Drink3")
  34. end
  35. function Drink3(NPC)
  36. PlayAnimation(NPC,11422)
  37. end
  38. function Door1(NPC,Spawn)
  39. local door = GetSpawn(NPC, 2210350)
  40. UseWidget(door)
  41. end
  42. function waypoints(NPC)
  43. MovementLoopAddLocation(NPC, 899.41, -25.32, 84.68, 2, 0)
  44. MovementLoopAddLocation(NPC, 917.59, -25.49, 66.37, 2, 1)
  45. MovementLoopAddLocation(NPC, 917.59, -25.49, 66.37, 2, 12,"EcologyEmotes")
  46. MovementLoopAddLocation(NPC, 917.59, -25.49, 66.37, 2, 12,"EcologyEmotes")
  47. MovementLoopAddLocation(NPC, 924.19, -25.49, 51.11, 2, 0)
  48. MovementLoopAddLocation(NPC, 923.68, -25.49, 46.84, 2, 0)
  49. MovementLoopAddLocation(NPC, 929.93, -25.58, 31.28, 2, 0)
  50. MovementLoopAddLocation(NPC, 920.41, -25.5, 24.15, 2, 0)
  51. MovementLoopAddLocation(NPC, 915.97, -25.52, 24.37, 2, 0)
  52. MovementLoopAddLocation(NPC, 904.62, -25.46, 24.36, 2, 0)
  53. MovementLoopAddLocation(NPC, 900.6, -25.43, 33.86, 2, 0)
  54. MovementLoopAddLocation(NPC, 891.3, -25.37, 44.94, 2, 0)
  55. MovementLoopAddLocation(NPC, 879.47, -25.37, 45.44, 2, 0)
  56. MovementLoopAddLocation(NPC, 859.71, -25.37, 41.86, 2, 0)
  57. MovementLoopAddLocation(NPC, 836.72, -23.28, 44.49, 2, 0)
  58. MovementLoopAddLocation(NPC, 820.85, -23.31, 42.71, 2, 0)
  59. MovementLoopAddLocation(NPC, 815.47, -23.24, 41.07, 2, 2,"Door1")
  60. MovementLoopAddLocation(NPC, 812.97, -23.27, 45.49, 2, 0)
  61. MovementLoopAddLocation(NPC, 812.97, -23.27, 45.49, 2, 0)
  62. MovementLoopAddLocation(NPC, 814.7, -23.27, 49.8, 2, 2)
  63. MovementLoopAddLocation(NPC, 814.85, -23.27, 53.93, 2, 0)
  64. MovementLoopAddLocation(NPC, 810.07, -23.77, 57.17, 2, 0)
  65. MovementLoopAddLocation(NPC, 807.11, -23.77, 56.19, 2, 1)
  66. MovementLoopAddLocation(NPC, 807.11, -23.77, 56.19, 2, 30,"Drink")
  67. MovementLoopAddLocation(NPC, 807.11, -23.77, 56.19, 2, 0)
  68. MovementLoopAddLocation(NPC, 808.36, -23.77, 56.7, 2, 0)
  69. MovementLoopAddLocation(NPC, 808.36, -23.77, 56.7, 2, 0)
  70. MovementLoopAddLocation(NPC, 813.86, -23.27, 57, 2, 0)
  71. MovementLoopAddLocation(NPC, 813.71, -23.27, 48.17, 2, 0)
  72. MovementLoopAddLocation(NPC, 811.43, -23.27, 44.5, 2, 2,"Door1")
  73. MovementLoopAddLocation(NPC, 814.26, -23.23, 39.78, 2, 0)
  74. MovementLoopAddLocation(NPC, 811.05, -23.35, 24.46, 2, 2)
  75. MovementLoopAddLocation(NPC, 819, -23.35, 18.24, 2, 0)
  76. MovementLoopAddLocation(NPC, 825.19, -23.37, 17.11, 2, 0)
  77. MovementLoopAddLocation(NPC, 832.61, -23.37, 21.34, 2, 0)
  78. MovementLoopAddLocation(NPC, 839.03, -23.36, 28.37, 2, 0)
  79. MovementLoopAddLocation(NPC, 839.03, -23.36, 28.37, 2, 15,"EcologyEmotes")
  80. MovementLoopAddLocation(NPC, 839.03, -23.36, 28.37, 2, 15,"EcologyEmotes")
  81. MovementLoopAddLocation(NPC, 839.03, -23.36, 28.37, 2, 1)
  82. MovementLoopAddLocation(NPC, 832.95, -23.36, 35.7, 2, 0)
  83. MovementLoopAddLocation(NPC, 830.5, -23.39, 38.74, 2, 0)
  84. MovementLoopAddLocation(NPC, 832.67, -23.35, 41.32, 2, 0)
  85. MovementLoopAddLocation(NPC, 855.55, -25.04, 39.17, 2, 0)
  86. MovementLoopAddLocation(NPC, 884.74, -25.38, 42.31, 2, 0)
  87. MovementLoopAddLocation(NPC, 891.00, -25.42, 37.34, 2, 0)
  88. MovementLoopAddLocation(NPC, 900.87, -25.43, 5.13, 2, 0)
  89. MovementLoopAddLocation(NPC, 897.63, -24.65, -28.64, 2, 0)
  90. MovementLoopAddLocation(NPC, 890.31, -25.36, -52.19, 2, 0)
  91. MovementLoopAddLocation(NPC, 882.75, -25.37, -58.42, 2, 0)
  92. MovementLoopAddLocation(NPC, 846.15, -25.4, -60.08, 2, 0)
  93. MovementLoopAddLocation(NPC, 813.93, -20.89, -60.47, 2, 0)
  94. MovementLoopAddLocation(NPC, 791.81, -21.08, -59.27, 2, 0)
  95. MovementLoopAddLocation(NPC, 740.66, -21.39, -46.77, 2, 0)
  96. MovementLoopAddLocation(NPC, 740.66, -21.39, -46.77, 2, 1)
  97. MovementLoopAddLocation(NPC, 740.66, -21.39, -46.77, 2, 15,"EcologyEmotes")
  98. MovementLoopAddLocation(NPC, 740.66, -21.39, -46.77, 2, 15,"EcologyEmotes")
  99. MovementLoopAddLocation(NPC, 740.7, -20.87, -67.58, 2, 0)
  100. MovementLoopAddLocation(NPC, 740.94, -20.91, -66.89, 2, 1)
  101. MovementLoopAddLocation(NPC, 740.94, -20.91, -66.89, 2, 10,"EcologyEmotes")
  102. MovementLoopAddLocation(NPC, 762.82, -20.69, -29.41, 2, 0)
  103. MovementLoopAddLocation(NPC, 758.59, -20.64, 11.96, 2, 0)
  104. MovementLoopAddLocation(NPC, 767, -20.64, 25.65, 2, 0)
  105. MovementLoopAddLocation(NPC, 767.41, -20.64, 35.72, 2, 0)
  106. MovementLoopAddLocation(NPC, 767, -20.64, 25.65, 2, 10)
  107. MovementLoopAddLocation(NPC, 758.59, -20.64, 11.96, 2, 0)
  108. MovementLoopAddLocation(NPC, 762.82, -20.69, -29.41, 2, 0)
  109. MovementLoopAddLocation(NPC, 740.94, -20.91, -66.89, 2, 1)
  110. MovementLoopAddLocation(NPC, 740.94, -20.91, -66.89, 2, 10,"EcologyEmotes")
  111. MovementLoopAddLocation(NPC, 740.7, -20.87, -67.58, 2, 0)
  112. MovementLoopAddLocation(NPC, 740.66, -21.39, -46.77, 2, 15,"EcologyEmotes")
  113. MovementLoopAddLocation(NPC, 740.66, -21.39, -46.77, 2, 15,"EcologyEmotes")
  114. MovementLoopAddLocation(NPC, 740.66, -21.39, -46.77, 2, 0)
  115. MovementLoopAddLocation(NPC, 791.81, -21.08, -59.27, 2, 0)
  116. MovementLoopAddLocation(NPC, 813.93, -20.89, -60.47, 2, 0)
  117. MovementLoopAddLocation(NPC, 846.15, -25.4, -60.08, 2, 0)
  118. MovementLoopAddLocation(NPC, 882.75, -25.37, -58.42, 2, 0)
  119. MovementLoopAddLocation(NPC, 890.31, -25.36, -52.19, 2, 0)
  120. MovementLoopAddLocation(NPC, 897.63, -24.65, -28.64, 2, 0)
  121. MovementLoopAddLocation(NPC, 900.87, -25.43, 5.13, 2, 0)
  122. MovementLoopAddLocation(NPC, 891.00, -25.42, 37.34, 2, 0)
  123. MovementLoopAddLocation(NPC, 884.74, -25.38, 42.31, 2, 0)
  124. MovementLoopAddLocation(NPC, 855.55, -25.04, 39.17, 2, 0)
  125. MovementLoopAddLocation(NPC, 832.67, -23.35, 41.32, 2, 0)
  126. MovementLoopAddLocation(NPC, 830.5, -23.39, 38.74, 2, 0)
  127. MovementLoopAddLocation(NPC, 832.95, -23.36, 35.7, 2, 0)
  128. MovementLoopAddLocation(NPC, 839.03, -23.36, 28.37, 2, 15,"EcologyEmotes")
  129. MovementLoopAddLocation(NPC, 839.03, -23.36, 28.37, 2, 15,"EcologyEmotes")
  130. MovementLoopAddLocation(NPC, 839.03, -23.36, 28.37, 2, 0)
  131. MovementLoopAddLocation(NPC, 832.61, -23.37, 21.34, 2, 0)
  132. MovementLoopAddLocation(NPC, 825.19, -23.37, 17.11, 2, 0)
  133. MovementLoopAddLocation(NPC, 819, -23.35, 18.24, 2, 0)
  134. MovementLoopAddLocation(NPC, 811.05, -23.35, 24.46, 2, 2,"Door1")
  135. MovementLoopAddLocation(NPC, 814.26, -23.23, 39.78, 2, 2)
  136. MovementLoopAddLocation(NPC, 811.43, -23.27, 44.5, 2, 0)
  137. MovementLoopAddLocation(NPC, 813.71, -23.27, 48.17, 2, 0)
  138. MovementLoopAddLocation(NPC, 813.86, -23.27, 57, 2, 0)
  139. MovementLoopAddLocation(NPC, 808.36, -23.77, 56.7, 2, 1)
  140. MovementLoopAddLocation(NPC, 808.36, -23.77, 56.7, 2, 30,"Drink")
  141. MovementLoopAddLocation(NPC, 808.36, -23.77, 56.7, 2, 0)
  142. MovementLoopAddLocation(NPC, 807.11, -23.77, 56.19, 2, 0)
  143. MovementLoopAddLocation(NPC, 810.07, -23.77, 57.17, 2, 0)
  144. MovementLoopAddLocation(NPC, 814.85, -23.27, 53.93, 2, 0)
  145. MovementLoopAddLocation(NPC, 814.7, -23.27, 49.8, 2, 0)
  146. MovementLoopAddLocation(NPC, 812.97, -23.27, 45.49, 2, 2,"Door1")
  147. MovementLoopAddLocation(NPC, 812.97, -23.27, 45.49, 2, 2)
  148. MovementLoopAddLocation(NPC, 815.47, -23.24, 41.07, 2, 0)
  149. MovementLoopAddLocation(NPC, 820.85, -23.31, 42.71, 2, 0)
  150. MovementLoopAddLocation(NPC, 836.72, -23.28, 44.49, 2, 0)
  151. MovementLoopAddLocation(NPC, 859.71, -25.37, 41.86, 2, 0)
  152. MovementLoopAddLocation(NPC, 879.47, -25.37, 45.44, 2, 0)
  153. MovementLoopAddLocation(NPC, 891.3, -25.37, 44.94, 2, 0)
  154. MovementLoopAddLocation(NPC, 900.6, -25.43, 33.86, 2, 0)
  155. MovementLoopAddLocation(NPC, 904.62, -25.46, 24.36, 2, 0)
  156. MovementLoopAddLocation(NPC, 915.97, -25.52, 24.37, 2, 0)
  157. MovementLoopAddLocation(NPC, 920.41, -25.5, 24.15, 2, 0)
  158. MovementLoopAddLocation(NPC, 929.93, -25.58, 31.28, 2, 0)
  159. MovementLoopAddLocation(NPC, 923.68, -25.49, 46.84, 2, 0)
  160. MovementLoopAddLocation(NPC, 924.19, -25.49, 51.11, 2, 0)
  161. MovementLoopAddLocation(NPC, 917.59, -25.49, 66.37, 2, 12,"EcologyEmotes")
  162. MovementLoopAddLocation(NPC, 917.59, -25.49, 66.37, 2, 12,"EcologyEmotes")
  163. end