morgessa.lua 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. --[[
  2. Script Name : morgessa.lua
  3. Script Purpose : Waypoint Path for morgessa.lua
  4. Script Author : Devn00b
  5. Script Date : 04/11/2020 06:08:55 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. SetPlayerProximityFunction(NPC, 7, "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 LeaveRange(NPC, Spawn)
  24. end
  25. function waypoints(NPC)
  26. MovementLoopAddLocation(NPC, 704.12, -19.53, 193.02, 2, 0)
  27. MovementLoopAddLocation(NPC, 689.53, -19.52, 198.07, 2, 0)
  28. MovementLoopAddLocation(NPC, 677.71, -19.31, 186, 2, 0)
  29. MovementLoopAddLocation(NPC, 620.14, -16.54, 199.73, 2, 0)
  30. MovementLoopAddLocation(NPC, 616.91, -12.11, 142.62, 2, 0)
  31. MovementLoopAddLocation(NPC, 587.17, -10.44, 147.91, 2, 0)
  32. MovementLoopAddLocation(NPC, 548.05, -10.55, 150.62, 2, 2,"Door1")
  33. MovementLoopAddLocation(NPC, 548.55, -9.56, 135.51, 2, 0)
  34. MovementLoopAddLocation(NPC, 538.43, -9.56, 133.71, 2, 0)
  35. MovementLoopAddLocation(NPC, 536.8, -9.56, 131.87, 2, 0)
  36. MovementLoopAddLocation(NPC, 530.82, -9.56, 133.29, 2, 0)
  37. MovementLoopAddLocation(NPC, 517.32, -9.57, 131.67, 2, 1)
  38. MovementLoopAddLocation(NPC, 517.32, -9.57, 131.67, 2, 30,"Drink")
  39. MovementLoopAddLocation(NPC, 517.32, -9.57, 131.67, 2, 1)
  40. MovementLoopAddLocation(NPC, 524.31, -9.56, 132.51, 2, 0)
  41. MovementLoopAddLocation(NPC, 546.59, -9.56, 134.99, 2, 2,"Door")
  42. MovementLoopAddLocation(NPC, 546.66, -10.56, 150.83, 2, 0)
  43. MovementLoopAddLocation(NPC, 503.39, -11.43, 143.13, 2, 0)
  44. MovementLoopAddLocation(NPC, 507.44, -10.22, 117.68, 2, 0)
  45. MovementLoopAddLocation(NPC, 489.85, -11.47, 134.57, 2, 0)
  46. MovementLoopAddLocation(NPC, 490.98, -12.08, 147.47, 2, 1)
  47. MovementLoopAddLocation(NPC, 490.98, -12.08, 147.47, 2, 8,"EcologyEmotes")
  48. MovementLoopAddLocation(NPC, 456.49, -22.12, 234.19, 2, 0)
  49. MovementLoopAddLocation(NPC, 501.47, -19.69, 242.25, 2, 0)
  50. MovementLoopAddLocation(NPC, 540.32, -18.02, 242.34, 2, 0)
  51. MovementLoopAddLocation(NPC, 576.91, -17.97, 242.65, 2, 0)
  52. MovementLoopAddLocation(NPC, 608.97, -18.16, 238.46, 2, 0)
  53. MovementLoopAddLocation(NPC, 637.01, -19.08, 231.29, 2, 0)
  54. MovementLoopAddLocation(NPC, 635.3, -17.14, 223.83, 2, 0)
  55. MovementLoopAddLocation(NPC, 662, -17.95, 216.49, 2, 0)
  56. MovementLoopAddLocation(NPC, 679.4, -17.95, 210.68, 2, 0)
  57. MovementLoopAddLocation(NPC, 674.02, -17.95, 194.05, 2, 0)
  58. MovementLoopAddLocation(NPC, 681.46, -19.3, 193.12, 2, 0)
  59. MovementLoopAddLocation(NPC, 691.63, -19.52, 195.08, 2, 0)
  60. MovementLoopAddLocation(NPC, 704.38, -19.53, 191.82, 2, 0)
  61. MovementLoopAddLocation(NPC, 701.02, -19.49, 177.69, 2, 0)
  62. MovementLoopAddLocation(NPC, 682.19, -20.54, 161.17, 2, 0)
  63. MovementLoopAddLocation(NPC, 675.84, -21.06, 146.15, 2, 0)
  64. MovementLoopAddLocation(NPC, 673.27, -21.16, 136.85, 2, 0)
  65. MovementLoopAddLocation(NPC, 677.07, -21, 135.21, 2, 2)
  66. MovementLoopAddLocation(NPC, 677.07, -21, 135.21, 2, 8,"EcologyEmotes")
  67. MovementLoopAddLocation(NPC, 677.07, -21, 135.21, 2, 1)
  68. MovementLoopAddLocation(NPC, 662.02, -20.96, 103.28, 2, 2)
  69. MovementLoopAddLocation(NPC, 662.02, -20.96, 103.28, 2, 8,"EcologyEmotes")
  70. MovementLoopAddLocation(NPC, 662.02, -20.96, 103.28, 2, 1)
  71. MovementLoopAddLocation(NPC, 677.07, -21, 135.21, 2, 0)
  72. MovementLoopAddLocation(NPC, 673.27, -21.16, 136.85, 2, 0)
  73. MovementLoopAddLocation(NPC, 675.84, -21.06, 146.15, 2, 0)
  74. MovementLoopAddLocation(NPC, 682.19, -20.54, 161.17, 2, 0)
  75. MovementLoopAddLocation(NPC, 701.02, -19.49, 177.69, 2, 0)
  76. MovementLoopAddLocation(NPC, 704.38, -19.53, 191.82, 2, 0)
  77. MovementLoopAddLocation(NPC, 691.63, -19.52, 195.08, 2, 0)
  78. MovementLoopAddLocation(NPC, 681.46, -19.3, 193.12, 2, 0)
  79. MovementLoopAddLocation(NPC, 674.02, -17.95, 194.05, 2, 0)
  80. MovementLoopAddLocation(NPC, 679.4, -17.95, 210.68, 2, 0)
  81. MovementLoopAddLocation(NPC, 662, -17.95, 216.49, 2, 0)
  82. MovementLoopAddLocation(NPC, 635.3, -17.14, 223.83, 2, 0)
  83. MovementLoopAddLocation(NPC, 637.01, -19.08, 231.29, 2, 0)
  84. MovementLoopAddLocation(NPC, 608.97, -18.16, 238.46, 2, 0)
  85. MovementLoopAddLocation(NPC, 576.91, -17.97, 242.65, 2, 0)
  86. MovementLoopAddLocation(NPC, 540.32, -18.02, 242.34, 2, 0)
  87. MovementLoopAddLocation(NPC, 501.47, -19.69, 242.25, 2, 0)
  88. MovementLoopAddLocation(NPC, 456.49, -22.12, 234.19, 2, 0)
  89. MovementLoopAddLocation(NPC, 490.98, -12.08, 147.47, 2, 0)
  90. MovementLoopAddLocation(NPC, 489.85, -11.47, 134.57, 2, 0)
  91. MovementLoopAddLocation(NPC, 507.44, -10.22, 117.68, 2, 0)
  92. MovementLoopAddLocation(NPC, 503.39, -11.43, 143.13, 2, 0)
  93. MovementLoopAddLocation(NPC, 546.66, -10.56, 150.83, 2, 2,"Door")
  94. MovementLoopAddLocation(NPC, 546.59, -9.56, 134.99, 2, 0)
  95. MovementLoopAddLocation(NPC, 524.31, -9.56, 132.51, 2, 0)
  96. MovementLoopAddLocation(NPC, 517.32, -9.57, 131.67, 2, 1)
  97. MovementLoopAddLocation(NPC, 517.32, -9.57, 131.67, 2, 28,"Drink")
  98. MovementLoopAddLocation(NPC, 517.32, -9.57, 131.67, 2, 1)
  99. MovementLoopAddLocation(NPC, 530.82, -9.56, 133.29, 2, 0)
  100. MovementLoopAddLocation(NPC, 536.8, -9.56, 131.87, 2, 0)
  101. MovementLoopAddLocation(NPC, 538.43, -9.56, 133.71, 2, 0)
  102. MovementLoopAddLocation(NPC, 548.55, -9.56, 135.51, 2, 0,"Door1")
  103. MovementLoopAddLocation(NPC, 548.05, -10.55, 150.62, 2, 0)
  104. MovementLoopAddLocation(NPC, 587.17, -10.44, 147.91, 2, 0)
  105. MovementLoopAddLocation(NPC, 616.91, -12.11, 142.62, 2, 0)
  106. MovementLoopAddLocation(NPC, 620.14, -16.54, 199.73, 2, 0)
  107. MovementLoopAddLocation(NPC, 677.71, -19.31, 186, 2, 0)
  108. MovementLoopAddLocation(NPC, 689.53, -19.52, 198.07, 2, 0)
  109. MovementLoopAddLocation(NPC, 704.12, -19.53, 193.02, 2, 0)
  110. end
  111. function Door(NPC,Spawn)
  112. local door = GetSpawn(NPC, 2310200)
  113. UseWidget(door)
  114. end
  115. function Door1(NPC,Spawn)
  116. local door = GetSpawn(NPC, 2310203)
  117. UseWidget(door)
  118. end
  119. function Drink(NPC)
  120. PlayFlavor(NPC,"","","drinking_idle",0,0)
  121. AddTimer(NPC,8000, "Drink2")
  122. end
  123. function Drink2(NPC)
  124. choice = math.random(1,3)
  125. if choice == 1 then
  126. PlayFlavor(NPC,"","","yawn",0,0)
  127. elseif choice == 2 then
  128. PlayFlavor(NPC,"","","drinking_idle",0,0)
  129. elseif choice == 3 then
  130. PlayFlavor(NPC,"","","happy",0,0)
  131. end
  132. AddTimer(NPC,6000, "Drink3")
  133. end
  134. function Drink3(NPC)
  135. PlayFlavor(NPC,"","","drinking_idle",0,0)
  136. end