9
3

MitchellMcNolan.lua 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/MitchellMcNolan.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.11 02:06:42
  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. GenericRaceCheckHail(NPC, Spawn, faction)
  16. end
  17. function InRange(NPC,Spawn)
  18. GenericRaceCheckCallout(NPC, Spawn, faction)
  19. end
  20. function Drink(NPC)
  21. PlayFlavor(NPC,"","","drinking_idle",0,0)
  22. AddTimer(NPC,8000, "Drink2")
  23. end
  24. function Drink2(NPC)
  25. choice = math.random(1,3)
  26. if choice == 1 then
  27. PlayFlavor(NPC,"","","yawn",0,0)
  28. elseif choice == 2 then
  29. PlayFlavor(NPC,"","","drinking_idle",0,0)
  30. else
  31. PlayFlavor(NPC,"","","happy",0,0)
  32. end
  33. AddTimer(NPC,6000, "Drink3")
  34. end
  35. function Drink3(NPC)
  36. PlayFlavor(NPC,"","","drinking_idle",0,0)
  37. end
  38. function Door1(NPC,Spawn)
  39. local door = GetSpawn(NPC, 2210346)
  40. UseWidget(door)
  41. end
  42. function Door2(NPC,Spawn)
  43. local door = GetSpawn(NPC, 2210361)
  44. UseWidget(door)
  45. end
  46. function waypoints(NPC)
  47. MovementLoopAddLocation(NPC, 788, -23.05, 64.21, 2, 8)
  48. MovementLoopAddLocation(NPC, 802.95, -23.37, 36.26, 2, 25)
  49. MovementLoopAddLocation(NPC, 812.84, -23.28, 31.13, 2, 22)
  50. MovementLoopAddLocation(NPC, 826.2, -23.37, 42.56, 2, 0)
  51. MovementLoopAddLocation(NPC, 857.75, -25.39, 38.55, 2, 0)
  52. MovementLoopAddLocation(NPC, 879.77, -25.42, 41.52, 2, 0)
  53. MovementLoopAddLocation(NPC, 887.38, -25.39, 41.14, 2, 0)
  54. MovementLoopAddLocation(NPC, 896.78, -25.38, 27.65, 2, 0)
  55. MovementLoopAddLocation(NPC, 918.45, -25.5, 24.65, 2, 0)
  56. MovementLoopAddLocation(NPC, 939.57, -25.51, 23.59, 2, 2,"Door1")
  57. MovementLoopAddLocation(NPC, 941.67, -25.55, 22.64, 2, 0)
  58. MovementLoopAddLocation(NPC, 943.32, -25.55, 16.07, 2, 0)
  59. MovementLoopAddLocation(NPC, 949.06, -25.55, 13.96, 2, 0)
  60. MovementLoopAddLocation(NPC, 953.77, -25.55, 12.22, 2, 0)
  61. MovementLoopAddLocation(NPC, 953.76, -22.55, 2.26, 2, 0)
  62. MovementLoopAddLocation(NPC, 947.29, -19.55, 2.43, 2, 0)
  63. MovementLoopAddLocation(NPC, 946.79, -19.55, 0.54, 2, 0)
  64. MovementLoopAddLocation(NPC, 937.19, -19.55, 0.75, 2, 0)
  65. MovementLoopAddLocation(NPC, 937.21, -19.55, 1.35, 2, 1)
  66. MovementLoopAddLocation(NPC, 937.21, -19.55, 1.35, 2, 30,"Drink")
  67. MovementLoopAddLocation(NPC, 939.96, -19.55, 0.88, 2, 4)
  68. MovementLoopAddLocation(NPC, 939.96, -19.55, 0.88, 2, 0)
  69. MovementLoopAddLocation(NPC, 946.93, -19.55, 0.91, 2, 0)
  70. MovementLoopAddLocation(NPC, 949.27, -19.6, 2.6, 2, 0)
  71. MovementLoopAddLocation(NPC, 954.15, -22.55, 2.94, 2, 0)
  72. MovementLoopAddLocation(NPC, 954.49, -25.55, 10.3, 2, 0)
  73. MovementLoopAddLocation(NPC, 946.31, -25.55, 15.31, 2, 0)
  74. MovementLoopAddLocation(NPC, 942.69, -25.55, 17.05, 2, 2,"Door1")
  75. MovementLoopAddLocation(NPC, 942.34, -25.55, 22.07, 2, 0)
  76. MovementLoopAddLocation(NPC, 930.08, -25.49, 21.97, 2, 2)
  77. MovementLoopAddLocation(NPC, 920.41, -25.46, 18.23, 2, 0)
  78. MovementLoopAddLocation(NPC, 916.71, -25.45, 17.14, 2, 0)
  79. MovementLoopAddLocation(NPC, 908.19, -25.44, 8.28, 2, 0)
  80. MovementLoopAddLocation(NPC, 909.31, -25.4, -9.04, 2, 0)
  81. MovementLoopAddLocation(NPC, 906.41, -25.38, -22.51, 2, 0)
  82. MovementLoopAddLocation(NPC, 899.97, -23.42, -38.05, 2, 0)
  83. MovementLoopAddLocation(NPC, 893, -25.36, -55.66, 2, 0)
  84. MovementLoopAddLocation(NPC, 881.19, -25.36, -62.5, 2, 0)
  85. MovementLoopAddLocation(NPC, 859.74, -25.4, -60.19, 2, 0)
  86. MovementLoopAddLocation(NPC, 832.36, -25.06, -59.3, 2, 0)
  87. MovementLoopAddLocation(NPC, 794.68, -21.04, -58.06, 2, 0)
  88. MovementLoopAddLocation(NPC, 791.27, -20.95, -48.79, 2, 0)
  89. MovementLoopAddLocation(NPC, 792.97, -20.88, -47.72, 2, 25)
  90. MovementLoopAddLocation(NPC, 792.97, -20.88, -47.72, 2, 0)
  91. MovementLoopAddLocation(NPC, 792.27, -20.87, -47.38, 2, 0)
  92. MovementLoopAddLocation(NPC, 771.3, -20.64, -22.65, 2, 0)
  93. MovementLoopAddLocation(NPC, 766.26, -20.9, -17.62, 2, 8)
  94. MovementLoopAddLocation(NPC, 739.94, -20.99, -9.15, 2, 0)
  95. MovementLoopAddLocation(NPC, 738.21, -21.17, -14.91, 2, 25)
  96. MovementLoopAddLocation(NPC, 690.46, -20.64, -23.32, 2, 0)
  97. MovementLoopAddLocation(NPC, 684.96, -20.64, -18.23, 2, 0)
  98. MovementLoopAddLocation(NPC, 684.94, -20.81, 0.12, 2, 2,"Door2")
  99. MovementLoopAddLocation(NPC, 679.56, -20.66, 9.82, 2, 2)
  100. MovementLoopAddLocation(NPC, 676.45, -20.63, 17.39, 2, 0)
  101. MovementLoopAddLocation(NPC, 686.12, -20.66, 25.15, 2, 35)
  102. MovementLoopAddLocation(NPC, 685.97, -20.66, 27.07, 2, 0)
  103. MovementLoopAddLocation(NPC, 686.12, -20.66, 25.15, 2, 0)
  104. MovementLoopAddLocation(NPC, 676.45, -20.63, 17.39, 2, 0)
  105. MovementLoopAddLocation(NPC, 679.56, -20.66, 9.82, 2,"Door2")
  106. MovementLoopAddLocation(NPC, 684.94, -20.81, 0.12, 2, 2)
  107. MovementLoopAddLocation(NPC, 684.96, -20.64, -18.23, 2, 0)
  108. MovementLoopAddLocation(NPC, 690.46, -20.64, -23.32, 2, 0)
  109. MovementLoopAddLocation(NPC, 738.21, -21.17, -14.91, 2, 0)
  110. MovementLoopAddLocation(NPC, 739.94, -20.99, -9.15, 2, 25)
  111. MovementLoopAddLocation(NPC, 739.94, -20.99, -9.15, 2, 0)
  112. MovementLoopAddLocation(NPC, 766.26, -20.9, -17.62, 2, 0)
  113. MovementLoopAddLocation(NPC, 771.3, -20.64, -22.65, 2, 0)
  114. MovementLoopAddLocation(NPC, 792.27, -20.87, -47.38, 2, 25)
  115. MovementLoopAddLocation(NPC, 792.27, -20.87, -47.38, 2, 0)
  116. MovementLoopAddLocation(NPC, 792.97, -20.88, -47.72, 2, 0)
  117. MovementLoopAddLocation(NPC, 791.27, -20.95, -48.79, 2, 0)
  118. MovementLoopAddLocation(NPC, 794.68, -21.04, -58.06, 2, 0)
  119. MovementLoopAddLocation(NPC, 832.36, -25.06, -59.3, 2, 0)
  120. MovementLoopAddLocation(NPC, 859.74, -25.4, -60.19, 2, 0)
  121. MovementLoopAddLocation(NPC, 881.19, -25.36, -62.5, 2, 0)
  122. MovementLoopAddLocation(NPC, 893, -25.36, -55.66, 2, 0)
  123. MovementLoopAddLocation(NPC, 899.97, -23.42, -38.05, 2, 0)
  124. MovementLoopAddLocation(NPC, 906.41, -25.38, -22.51, 2, 0)
  125. MovementLoopAddLocation(NPC, 909.31, -25.4, -9.04, 2, 0)
  126. MovementLoopAddLocation(NPC, 908.19, -25.44, 8.28, 2, 0)
  127. MovementLoopAddLocation(NPC, 916.71, -25.45, 17.14, 2, 0)
  128. MovementLoopAddLocation(NPC, 920.41, -25.46, 18.23, 2, 0)
  129. MovementLoopAddLocation(NPC, 930.08, -25.49, 21.97, 2, 2)
  130. MovementLoopAddLocation(NPC, 942.34, -25.55, 22.07, 2, 2,"Door1")
  131. MovementLoopAddLocation(NPC, 942.69, -25.55, 17.05, 2, 0)
  132. MovementLoopAddLocation(NPC, 946.31, -25.55, 15.31, 2, 0)
  133. MovementLoopAddLocation(NPC, 954.49, -25.55, 10.3, 2, 0)
  134. MovementLoopAddLocation(NPC, 954.15, -22.55, 2.94, 2, 0)
  135. MovementLoopAddLocation(NPC, 949.27, -19.6, 2.6, 2, 0)
  136. MovementLoopAddLocation(NPC, 946.93, -19.55, 0.91, 2, 0)
  137. MovementLoopAddLocation(NPC, 939.96, -19.55, 0.88, 2, 0)
  138. MovementLoopAddLocation(NPC, 937.21, -19.55, 1.35, 2, 1)
  139. MovementLoopAddLocation(NPC, 937.21, -19.55, 1.35, 2, 30,"Drink")
  140. MovementLoopAddLocation(NPC, 937.21, -19.55, 1.35, 2, 0)
  141. MovementLoopAddLocation(NPC, 937.19, -19.55, 0.75, 2, 0)
  142. MovementLoopAddLocation(NPC, 946.79, -19.55, 0.54, 2, 0)
  143. MovementLoopAddLocation(NPC, 947.29, -19.55, 2.43, 2, 0)
  144. MovementLoopAddLocation(NPC, 953.76, -22.55, 2.26, 2, 0)
  145. MovementLoopAddLocation(NPC, 953.77, -25.55, 12.22, 2, 0)
  146. MovementLoopAddLocation(NPC, 949.06, -25.55, 13.96, 2, 0)
  147. MovementLoopAddLocation(NPC, 943.32, -25.55, 16.07, 2, 2,"Door1")
  148. MovementLoopAddLocation(NPC, 941.67, -25.55, 22.64, 2, 0)
  149. MovementLoopAddLocation(NPC, 939.57, -25.51, 23.59, 2, 0)
  150. MovementLoopAddLocation(NPC, 918.45, -25.5, 24.65, 2, 0)
  151. MovementLoopAddLocation(NPC, 896.78, -25.38, 27.65, 2, 0)
  152. MovementLoopAddLocation(NPC, 887.38, -25.39, 41.14, 2, 0)
  153. MovementLoopAddLocation(NPC, 879.77, -25.42, 41.52, 2, 0)
  154. MovementLoopAddLocation(NPC, 857.75, -25.39, 38.55, 2, 0)
  155. MovementLoopAddLocation(NPC, 826.2, -23.37, 42.56, 2, 25)
  156. MovementLoopAddLocation(NPC, 826.2, -23.37, 42.56, 2, 0)
  157. MovementLoopAddLocation(NPC, 812.84, -23.28, 31.13, 2, 0)
  158. MovementLoopAddLocation(NPC, 802.95, -23.37, 36.26, 2, 25)
  159. MovementLoopAddLocation(NPC, 788, -23.05, 64.21, 2, 8)
  160. end