9
3

Frublestump.lua 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/Frublestump.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.12 08:06:12
  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 waypoints(NPC)
  21. MovementLoopAddLocation(NPC, 803.53, -20.64, -63.73, 2, 0)
  22. MovementLoopAddLocation(NPC, 812.62, -20.46, -63.6, 2, 0)
  23. MovementLoopAddLocation(NPC, 830.3, -24.52, -64.21, 2, 0)
  24. MovementLoopAddLocation(NPC, 849.69, -25.36, -65.27, 2, 0)
  25. MovementLoopAddLocation(NPC, 865.69, -25.51, -70.22, 2, 15)
  26. MovementLoopAddLocation(NPC, 865.7, -25.42, -68.36, 2, 0)
  27. MovementLoopAddLocation(NPC, 878.06, -25.36, -65.49, 2, 0)
  28. MovementLoopAddLocation(NPC, 888.32, -25.41, -62.65, 2, 0)
  29. MovementLoopAddLocation(NPC, 896.07, -25.4, -55.6, 2, 0)
  30. MovementLoopAddLocation(NPC, 900.19, -23.48, -42.03, 2, 0)
  31. MovementLoopAddLocation(NPC, 909.11, -25.41, -17.44, 2, 0)
  32. MovementLoopAddLocation(NPC, 910.04, -25.43, -4.81, 2, 0)
  33. MovementLoopAddLocation(NPC, 908.5, -25.43, 4.85, 2, 0)
  34. MovementLoopAddLocation(NPC, 904.14, -25.42, 23.17, 2, 0)
  35. MovementLoopAddLocation(NPC, 901.34, -25.42, 31.32, 2, 0)
  36. MovementLoopAddLocation(NPC, 909.63, -25.39, 36.97, 2, 20)
  37. MovementLoopAddLocation(NPC, 910.37, -25.39, 36.83, 2, 0)
  38. MovementLoopAddLocation(NPC, 909.63, -25.31, 43.03, 2, 0)
  39. MovementLoopAddLocation(NPC, 914.07, -25.36, 47.84, 2, 0)
  40. MovementLoopAddLocation(NPC, 917.88, -25.4, 49.39, 2, 0)
  41. MovementLoopAddLocation(NPC, 920.11, -25.49, 60.74, 2, 0)
  42. MovementLoopAddLocation(NPC, 908.67, -25.44, 74.29, 2, 0)
  43. MovementLoopAddLocation(NPC, 901.12, -25.33, 84.26, 2, 20)
  44. MovementLoopAddLocation(NPC, 920.71, -25.38, 86.89, 2, 15)
  45. MovementLoopAddLocation(NPC, 921.33, -25.47, 72.95, 2, 0)
  46. MovementLoopAddLocation(NPC, 924.37, -25.56, 62.02, 2, 0)
  47. MovementLoopAddLocation(NPC, 924.27, -25.49, 56.65, 2, 0)
  48. MovementLoopAddLocation(NPC, 902.77, -25.37, 47.91, 2, 0)
  49. MovementLoopAddLocation(NPC, 892.93, -25.39, 44.35, 2, 0)
  50. MovementLoopAddLocation(NPC, 886.74, -25.38, 47.18, 2, 0)
  51. MovementLoopAddLocation(NPC, 877.09, -25.41, 47.16, 2, 0)
  52. MovementLoopAddLocation(NPC, 865.11, -25.37, 55.39, 2, 20)
  53. MovementLoopAddLocation(NPC, 864.66, -25.43, 27.11, 2, 0)
  54. MovementLoopAddLocation(NPC, 864.81, -25.43, 23.99, 2, 1,"Face")
  55. MovementLoopAddLocation(NPC, 864.12, -25.43, 23.88, 2, 15,"EcologyEmotes")
  56. MovementLoopAddLocation(NPC, 857.65, -25.47, 21.59, 2, 0)
  57. MovementLoopAddLocation(NPC, 849.17, -25.46, 13.7, 2, 0)
  58. MovementLoopAddLocation(NPC, 844.85, -25.46, 7.13, 2, 0)
  59. MovementLoopAddLocation(NPC, 839.6, -25.44, -4.14, 2, 0)
  60. MovementLoopAddLocation(NPC, 835.99, -25.43, -8.46, 2, 0)
  61. MovementLoopAddLocation(NPC, 833.07, -25.43, -10.83, 2, 15)
  62. MovementLoopAddLocation(NPC, 832.36, -25.43, -10.98, 2, 0)
  63. MovementLoopAddLocation(NPC, 832.19, -25.43, -12.36, 2, 0)
  64. MovementLoopAddLocation(NPC, 834.47, -25.43, -20.59, 2, 0)
  65. MovementLoopAddLocation(NPC, 838.95, -25.43, -24.95, 2, 0)
  66. MovementLoopAddLocation(NPC, 845.56, -25.44, -27.19, 2, 0)
  67. MovementLoopAddLocation(NPC, 854.73, -25.47, -31.22, 2, 0)
  68. MovementLoopAddLocation(NPC, 869.01, -25.47, -33.81, 2, 0)
  69. MovementLoopAddLocation(NPC, 879.88, -25.46, -30.51, 2, 0)
  70. MovementLoopAddLocation(NPC, 894.9, -25.52, -23.65, 2, 0)
  71. MovementLoopAddLocation(NPC, 896.53, -25.46, -22.87, 2, 0)
  72. MovementLoopAddLocation(NPC, 892.7, -23.68, -41.56, 2, 0)
  73. MovementLoopAddLocation(NPC, 889.73, -25.38, -49.67, 2, 0)
  74. MovementLoopAddLocation(NPC, 880.11, -25.41, -46.07, 2, 0)
  75. MovementLoopAddLocation(NPC, 878.73, -25.57, -44.91, 2, 0)
  76. MovementLoopAddLocation(NPC, 872.02, -25.43, -46.79, 2, 0)
  77. MovementLoopAddLocation(NPC, 865.45, -25.43, -47.07, 2, 0)
  78. MovementLoopAddLocation(NPC, 854.2, -25.42, -45.96, 2, 0)
  79. MovementLoopAddLocation(NPC, 846.26, -25.43, -44.89, 2, 0)
  80. MovementLoopAddLocation(NPC, 833.15, -25.47, -44.28, 2, 1)
  81. MovementLoopAddLocation(NPC, 833.15, -25.47, -44.28, 2, 15,"EcologyEmotes")
  82. MovementLoopAddLocation(NPC, 834.73, -25.46, -45.14, 2, 0)
  83. MovementLoopAddLocation(NPC, 838.94, -25.4, -45.54, 2, 0)
  84. MovementLoopAddLocation(NPC, 843.28, -25.42, -44.9, 2, 20)
  85. MovementLoopAddLocation(NPC, 845.49, -25.44, -44.57, 2, 0)
  86. MovementLoopAddLocation(NPC, 856.31, -25.42, -46.45, 2, 0)
  87. MovementLoopAddLocation(NPC, 882.42, -25.44, -44.53, 2, 20)
  88. MovementLoopAddLocation(NPC, 882.79, -25.5, -43.92, 2, 0)
  89. MovementLoopAddLocation(NPC, 882.91, -25.31, -48.17, 2, 0)
  90. MovementLoopAddLocation(NPC, 882.37, -25.45, -54.84, 2, 0)
  91. MovementLoopAddLocation(NPC, 873.96, -25.45, -58.65, 2, 0)
  92. MovementLoopAddLocation(NPC, 854.18, -25.45, -58.72, 2, 0)
  93. MovementLoopAddLocation(NPC, 799.73, -20.8, -58.84, 2, 0)
  94. MovementLoopAddLocation(NPC, 790.06, -21.08, -51.09, 2, 0)
  95. MovementLoopAddLocation(NPC, 772.44, -21.53, -48.49, 2, 0)
  96. MovementLoopAddLocation(NPC, 775.64, -20.69, -37.64, 2, 0)
  97. MovementLoopAddLocation(NPC, 775.03, -20.69, -37.27, 2, 1)
  98. MovementLoopAddLocation(NPC, 775.03, -20.69, -37.27, 2, 30,"Drink")
  99. MovementLoopAddLocation(NPC, 775.03, -20.69, -37.27, 2, 1)
  100. MovementLoopAddLocation(NPC, 774.16, -20.7, -36.74, 2, 0)
  101. MovementLoopAddLocation(NPC, 769.19, -21.17, -43, 2, 0)
  102. MovementLoopAddLocation(NPC, 759.21, -20.75, -27.19, 2, 0)
  103. MovementLoopAddLocation(NPC, 752.6, -21.08, -15.37, 2, 0)
  104. MovementLoopAddLocation(NPC, 727.54, -20.94, -17.22, 2, 0)
  105. MovementLoopAddLocation(NPC, 733.19, -21.39, -29.43, 2, 15)
  106. MovementLoopAddLocation(NPC, 733.62, -21.39, -30.37, 2, 0)
  107. MovementLoopAddLocation(NPC, 728.71, -21.37, -56.93, 2, 0)
  108. MovementLoopAddLocation(NPC, 752.22, -21.13, -66.01, 2, 15)
  109. MovementLoopAddLocation(NPC, 751.10, -21.09, -66.43, 2, 0)
  110. end
  111. function Drink(NPC)
  112. PlayFlavor(NPC,"","","drinking_idle",0,0)
  113. AddTimer(NPC,8000, "Drink2")
  114. end
  115. function Face(NPC)
  116. SetHeading(NPC,205)
  117. end
  118. function Drink2(NPC)
  119. choice = math.random(1,3)
  120. if choice == 1 then
  121. PlayFlavor(NPC,"","","yawn",0,0)
  122. elseif choice == 2 then
  123. PlayFlavor(NPC,"","","drinking_idle",0,0)
  124. else
  125. PlayFlavor(NPC,"","","happy",0,0)
  126. end
  127. AddTimer(NPC,6000, "Drink3")
  128. end
  129. function Drink3(NPC)
  130. PlayFlavor(NPC,"","","drinking_idle",0,0)
  131. end