JarcolynOGallothen.lua 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/JarcolynOGallothen.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.11 06:06:38
  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, 931.92, -19.56, 61.18, 2, 1)
  22. MovementLoopAddLocation(NPC, 931.92, -19.56, 61.18, 2, 12,"Action")
  23. MovementLoopAddLocation(NPC, 946.66, -19.53, 67.21, 2, 0)
  24. MovementLoopAddLocation(NPC, 954.61, -19.57, 70.72, 2, 0)
  25. MovementLoopAddLocation(NPC, 970.28, -25.56, 77.8, 2, 0)
  26. MovementLoopAddLocation(NPC, 962.85, -25.48, 95.31, 2, 0)
  27. MovementLoopAddLocation(NPC, 949.95, -25.44, 94.59, 2, 0)
  28. MovementLoopAddLocation(NPC, 950.4, -25.44, 93.26, 2, 0)
  29. MovementLoopAddLocation(NPC, 959.35, -22.59, 92.18, 2, 0)
  30. MovementLoopAddLocation(NPC, 961.47, -22.46, 92.53, 2, 0)
  31. MovementLoopAddLocation(NPC, 966.29, -20.69, 92.63, 2, 0)
  32. MovementLoopAddLocation(NPC, 969.73, -20.69, 94.33, 2, 0)
  33. MovementLoopAddLocation(NPC, 972.21, -20.69, 91.19, 2, 1)
  34. MovementLoopAddLocation(NPC, 972.21, -20.69, 91.19, 2, 12,"Animate")
  35. MovementLoopAddLocation(NPC, 970.43, -20.69, 94.83, 2, 1)
  36. MovementLoopAddLocation(NPC, 970.43, -20.69, 94.83, 2, 12,"Animate")
  37. MovementLoopAddLocation(NPC, 970.43, -20.69, 94.83, 2, 1)
  38. MovementLoopAddLocation(NPC, 965.98, -20.69, 92.71, 2, 0)
  39. MovementLoopAddLocation(NPC, 959.88, -22.64, 92.33, 2, 0)
  40. MovementLoopAddLocation(NPC, 950.64, -25.44, 93.23, 2, 0)
  41. MovementLoopAddLocation(NPC, 941.27, -25.43, 91.2, 2, 0)
  42. MovementLoopAddLocation(NPC, 936.24, -25.27, 94.52, 2, 0)
  43. MovementLoopAddLocation(NPC, 934.64, -25.27, 92.8, 2, 0)
  44. MovementLoopAddLocation(NPC, 937.86, -22.07, 85.07, 2, 0)
  45. MovementLoopAddLocation(NPC, 932.89, -22.08, 82.67, 2, 0)
  46. MovementLoopAddLocation(NPC, 923.49, -19.53, 78.1, 2, 0)
  47. MovementLoopAddLocation(NPC, 925.45, -19.49, 74.46, 2, 0)
  48. MovementLoopAddLocation(NPC, 931.26, -19.56, 60.65, 2, 1)
  49. MovementLoopAddLocation(NPC, 931.26, -19.56, 60.65, 2, 10,"Animate")
  50. MovementLoopAddLocation(NPC, 931.26, -19.56, 60.65, 2, 10,"Animate")
  51. MovementLoopAddLocation(NPC, 939.17, -19.67, 64.39, 2, 0)
  52. MovementLoopAddLocation(NPC, 939.2, -19.67, 64.61, 2, 0)
  53. MovementLoopAddLocation(NPC, 931.91, -19.56, 61.23, 2, 1)
  54. MovementLoopAddLocation(NPC, 931.91, -19.56, 61.23, 2, 1)
  55. MovementLoopAddLocation(NPC, 931.91, -19.56, 61.23, 2, 10,"Animate")
  56. MovementLoopAddLocation(NPC, 931.91, -19.56, 61.23, 2, 10,"Animate")
  57. MovementLoopAddLocation(NPC, 924.11, -19.55, 78.15, 2, 0)
  58. MovementLoopAddLocation(NPC, 938.19, -22.06, 84.09, 2, 0)
  59. MovementLoopAddLocation(NPC, 934.13, -25.27, 93.4, 2, 0)
  60. MovementLoopAddLocation(NPC, 929.5, -25.27, 96.24, 2, 0)
  61. MovementLoopAddLocation(NPC, 915.36, -25.34, 90.48, 2, 0)
  62. MovementLoopAddLocation(NPC, 924.56, -25.56, 62.41, 2, 0)
  63. MovementLoopAddLocation(NPC, 922.32, -25.49, 46.1, 2, 0)
  64. MovementLoopAddLocation(NPC, 922.32, -25.49, 46.1, 2, 1)
  65. MovementLoopAddLocation(NPC, 922.32, -25.49, 46.1, 2, 30,"Drink")
  66. MovementLoopAddLocation(NPC, 922.32, -25.49, 46.1, 2, 0)
  67. MovementLoopAddLocation(NPC, 924.56, -25.56, 62.41, 2, 0)
  68. MovementLoopAddLocation(NPC, 915.36, -25.34, 90.48, 2, 0)
  69. MovementLoopAddLocation(NPC, 929.5, -25.27, 96.24, 2, 0)
  70. MovementLoopAddLocation(NPC, 934.13, -25.27, 93.4, 2, 0)
  71. MovementLoopAddLocation(NPC, 938.19, -22.06, 84.09, 2, 0)
  72. MovementLoopAddLocation(NPC, 924.11, -19.55, 78.15, 2, 0)
  73. MovementLoopAddLocation(NPC, 931.91, -19.56, 61.23, 2, 1)
  74. MovementLoopAddLocation(NPC, 931.91, -19.56, 61.23, 2, 10,"Animate")
  75. MovementLoopAddLocation(NPC, 931.91, -19.56, 61.23, 2, 10,"Animate")
  76. MovementLoopAddLocation(NPC, 939.2, -19.67, 64.61, 2, 0)
  77. MovementLoopAddLocation(NPC, 939.17, -19.67, 64.39, 2, 0)
  78. MovementLoopAddLocation(NPC, 931.26, -19.56, 60.65, 2, 1)
  79. MovementLoopAddLocation(NPC, 931.26, -19.56, 60.65, 2, 10,"Animate")
  80. MovementLoopAddLocation(NPC, 931.26, -19.56, 60.65, 2, 10,"Animate")
  81. MovementLoopAddLocation(NPC, 925.45, -19.49, 74.46, 2, 0)
  82. MovementLoopAddLocation(NPC, 923.49, -19.53, 78.1, 2, 0)
  83. MovementLoopAddLocation(NPC, 932.89, -22.08, 82.67, 2, 0)
  84. MovementLoopAddLocation(NPC, 937.86, -22.07, 85.07, 2, 0)
  85. MovementLoopAddLocation(NPC, 934.64, -25.27, 92.8, 2, 0)
  86. MovementLoopAddLocation(NPC, 936.24, -25.27, 94.52, 2, 0)
  87. MovementLoopAddLocation(NPC, 941.27, -25.43, 91.2, 2, 0)
  88. MovementLoopAddLocation(NPC, 950.64, -25.44, 93.23, 2, 0)
  89. MovementLoopAddLocation(NPC, 959.88, -22.64, 92.33, 2, 0)
  90. MovementLoopAddLocation(NPC, 965.98, -20.69, 92.71, 2, 0)
  91. MovementLoopAddLocation(NPC, 970.43, -20.69, 94.83, 2, 1)
  92. MovementLoopAddLocation(NPC, 970.43, -20.69, 94.83, 2, 12,"Animate")
  93. MovementLoopAddLocation(NPC, 972.21, -20.69, 91.19, 2, 0)
  94. MovementLoopAddLocation(NPC, 969.73, -20.69, 94.33, 2, 0)
  95. MovementLoopAddLocation(NPC, 966.29, -20.69, 92.63, 2, 0)
  96. MovementLoopAddLocation(NPC, 961.47, -22.46, 92.53, 2, 0)
  97. MovementLoopAddLocation(NPC, 959.35, -22.59, 92.18, 2, 0)
  98. MovementLoopAddLocation(NPC, 950.4, -25.44, 93.26, 2, 0)
  99. MovementLoopAddLocation(NPC, 949.95, -25.44, 94.59, 2, 0)
  100. MovementLoopAddLocation(NPC, 962.85, -25.48, 95.31, 2, 0)
  101. MovementLoopAddLocation(NPC, 970.28, -25.56, 77.8, 2, 0)
  102. MovementLoopAddLocation(NPC, 954.61, -19.57, 70.72, 2, 0)
  103. MovementLoopAddLocation(NPC, 946.66, -19.53, 67.21, 2, 0)
  104. MovementLoopAddLocation(NPC, 931.92, -19.56, 61.18, 2, 8)
  105. end
  106. function Animate(NPC)
  107. choice = math.random(1,4)
  108. if choice == 1 then
  109. PlayFlavor(NPC,"","","square",0,0)
  110. elseif choice == 2 then
  111. PlayFlavor(NPC,"","","ponder",0,0)
  112. elseif choice == 3 then
  113. PlayFlavor(NPC,"","","tapfoot",0,0)
  114. else
  115. PlayFlavor(NPC,"","","sniff",0,0)
  116. end
  117. end
  118. function Drink(NPC)
  119. PlayFlavor(NPC,"","","drinking_idle",0,0)
  120. AddTimer(NPC,8000, "Drink2")
  121. end
  122. function Drink2(NPC)
  123. choice = math.random(1,3)
  124. if choice == 1 then
  125. PlayFlavor(NPC,"","","yawn",0,0)
  126. elseif choice == 2 then
  127. PlayFlavor(NPC,"","","drinking_idle",0,0)
  128. else
  129. PlayFlavor(NPC,"","","happy",0,0)
  130. end
  131. AddTimer(NPC,6000, "Drink3")
  132. end
  133. function Drink3(NPC)
  134. PlayFlavor(NPC,"","","drinking_idle",0,0)
  135. end