9
3

morgessa.lua 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. function spawn(NPC)
  9. waypoints(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function InRange(NPC, Spawn)
  19. local choice = math.random(1,5)
  20. if choice == 1 then
  21. PlayFlavor(NPC, "voiceover/english/halfelf_eco_good_1/ft/halfelf/halfelf_eco_good_1_hail_gf_cbbaf023.mp3", "I've gotta get rid of these clothes; they're so one-hundred years ago.", "grumble", 3038038462, 3464193459, Spawn)
  22. elseif choice == 2 then
  23. PlayFlavor(NPC, "voiceover/english/halfelf_eco_good_1/ft/halfelf/halfelf_eco_good_1_hail_gf_5b0f480.mp3", "I'm tired of waiting! I want to make something of myself!", "pout", 3723196832, 16921270, Spawn)
  24. elseif choice == 3 then
  25. PlayFlavor(NPC, "voiceover/english/halfelf_eco_good_1/ft/halfelf/halfelf_eco_good_1_hail_gf_4a0665a0.mp3", "I'm so depressed! I had to work all day!", "sad", 3176397311, 2616932103, Spawn)
  26. elseif choice == 4 then
  27. PlayFlavor(NPC, "voiceover/english/halfelf_eco_good_1/ft/halfelf/halfelf_eco_good_1_hail_gf_1f61925a.mp3", "Are my roots showing? I think I'll go for a light blueberry mixed with jum-jum highlights.", "ponder", 4153154191, 497875539, Spawn)
  28. elseif choice == 5 then
  29. PlayFlavor(NPC, "voiceover/english/halfelf_eco_good_1/ft/halfelf/halfelf_eco_good_1_hail_gf_5c8eceae.mp3", "My ancestors don't understand me. They're from a completely different era.", "flustered", 2843616704, 1740340084, Spawn)
  30. else
  31. end
  32. end
  33. function LeaveRange(NPC, Spawn)
  34. end
  35. function waypoints(NPC)
  36. MovementLoopAddLocation(NPC, 704.12, -19.53, 193.02, 2, 0)
  37. MovementLoopAddLocation(NPC, 689.53, -19.52, 198.07, 2, 0)
  38. MovementLoopAddLocation(NPC, 677.71, -19.31, 186, 2, 0)
  39. MovementLoopAddLocation(NPC, 620.14, -16.54, 199.73, 2, 0)
  40. MovementLoopAddLocation(NPC, 616.91, -12.11, 142.62, 2, 0)
  41. MovementLoopAddLocation(NPC, 587.17, -10.44, 147.91, 2, 0)
  42. MovementLoopAddLocation(NPC, 548.05, -10.55, 150.62, 2, 0)
  43. MovementLoopAddLocation(NPC, 548.55, -9.56, 135.51, 2, 0)
  44. MovementLoopAddLocation(NPC, 538.43, -9.56, 133.71, 2, 0)
  45. MovementLoopAddLocation(NPC, 536.8, -9.56, 131.87, 2, 0)
  46. MovementLoopAddLocation(NPC, 530.82, -9.56, 133.29, 2, 0)
  47. MovementLoopAddLocation(NPC, 517.32, -9.57, 131.67, 2, 0)
  48. MovementLoopAddLocation(NPC, 524.31, -9.56, 132.51, 2, 0)
  49. MovementLoopAddLocation(NPC, 546.59, -9.56, 134.99, 2, 0)
  50. MovementLoopAddLocation(NPC, 546.66, -10.56, 150.83, 2, 0)
  51. MovementLoopAddLocation(NPC, 503.39, -11.43, 143.13, 2, 0)
  52. MovementLoopAddLocation(NPC, 507.44, -10.22, 117.68, 2, 0)
  53. MovementLoopAddLocation(NPC, 489.85, -11.47, 134.57, 2, 0)
  54. MovementLoopAddLocation(NPC, 490.98, -12.08, 147.47, 2, 0)
  55. MovementLoopAddLocation(NPC, 456.49, -22.12, 234.19, 2, 0)
  56. MovementLoopAddLocation(NPC, 501.47, -19.69, 242.25, 2, 0)
  57. MovementLoopAddLocation(NPC, 540.32, -18.02, 242.34, 2, 0)
  58. MovementLoopAddLocation(NPC, 576.91, -17.97, 242.65, 2, 0)
  59. MovementLoopAddLocation(NPC, 608.97, -18.16, 238.46, 2, 0)
  60. MovementLoopAddLocation(NPC, 637.01, -19.08, 231.29, 2, 0)
  61. MovementLoopAddLocation(NPC, 635.3, -17.14, 223.83, 2, 0)
  62. MovementLoopAddLocation(NPC, 662, -17.95, 216.49, 2, 0)
  63. MovementLoopAddLocation(NPC, 679.4, -17.95, 210.68, 2, 0)
  64. MovementLoopAddLocation(NPC, 674.02, -17.95, 194.05, 2, 0)
  65. MovementLoopAddLocation(NPC, 681.46, -19.3, 193.12, 2, 0)
  66. MovementLoopAddLocation(NPC, 691.63, -19.52, 195.08, 2, 0)
  67. MovementLoopAddLocation(NPC, 704.38, -19.53, 191.82, 2, 0)
  68. MovementLoopAddLocation(NPC, 701.02, -19.49, 177.69, 2, 0)
  69. MovementLoopAddLocation(NPC, 682.19, -20.54, 161.17, 2, 0)
  70. MovementLoopAddLocation(NPC, 675.84, -21.06, 146.15, 2, 0)
  71. MovementLoopAddLocation(NPC, 673.27, -21.16, 136.85, 2, 0)
  72. MovementLoopAddLocation(NPC, 677.07, -21, 135.21, 2, 0)
  73. MovementLoopAddLocation(NPC, 673.27, -21.16, 136.85, 2, 0)
  74. MovementLoopAddLocation(NPC, 675.84, -21.06, 146.15, 2, 0)
  75. MovementLoopAddLocation(NPC, 682.19, -20.54, 161.17, 2, 0)
  76. MovementLoopAddLocation(NPC, 701.02, -19.49, 177.69, 2, 0)
  77. MovementLoopAddLocation(NPC, 704.38, -19.53, 191.82, 2, 0)
  78. MovementLoopAddLocation(NPC, 691.63, -19.52, 195.08, 2, 0)
  79. MovementLoopAddLocation(NPC, 681.46, -19.3, 193.12, 2, 0)
  80. MovementLoopAddLocation(NPC, 674.02, -17.95, 194.05, 2, 0)
  81. MovementLoopAddLocation(NPC, 679.4, -17.95, 210.68, 2, 0)
  82. MovementLoopAddLocation(NPC, 662, -17.95, 216.49, 2, 0)
  83. MovementLoopAddLocation(NPC, 635.3, -17.14, 223.83, 2, 0)
  84. MovementLoopAddLocation(NPC, 637.01, -19.08, 231.29, 2, 0)
  85. MovementLoopAddLocation(NPC, 608.97, -18.16, 238.46, 2, 0)
  86. MovementLoopAddLocation(NPC, 576.91, -17.97, 242.65, 2, 0)
  87. MovementLoopAddLocation(NPC, 540.32, -18.02, 242.34, 2, 0)
  88. MovementLoopAddLocation(NPC, 501.47, -19.69, 242.25, 2, 0)
  89. MovementLoopAddLocation(NPC, 456.49, -22.12, 234.19, 2, 0)
  90. MovementLoopAddLocation(NPC, 490.98, -12.08, 147.47, 2, 0)
  91. MovementLoopAddLocation(NPC, 489.85, -11.47, 134.57, 2, 0)
  92. MovementLoopAddLocation(NPC, 507.44, -10.22, 117.68, 2, 0)
  93. MovementLoopAddLocation(NPC, 503.39, -11.43, 143.13, 2, 0)
  94. MovementLoopAddLocation(NPC, 546.66, -10.56, 150.83, 2, 0)
  95. MovementLoopAddLocation(NPC, 546.59, -9.56, 134.99, 2, 0)
  96. MovementLoopAddLocation(NPC, 524.31, -9.56, 132.51, 2, 0)
  97. MovementLoopAddLocation(NPC, 517.32, -9.57, 131.67, 2, 0)
  98. MovementLoopAddLocation(NPC, 530.82, -9.56, 133.29, 2, 0)
  99. MovementLoopAddLocation(NPC, 536.8, -9.56, 131.87, 2, 0)
  100. MovementLoopAddLocation(NPC, 538.43, -9.56, 133.71, 2, 0)
  101. MovementLoopAddLocation(NPC, 548.55, -9.56, 135.51, 2, 0)
  102. MovementLoopAddLocation(NPC, 548.05, -10.55, 150.62, 2, 0)
  103. MovementLoopAddLocation(NPC, 587.17, -10.44, 147.91, 2, 0)
  104. MovementLoopAddLocation(NPC, 616.91, -12.11, 142.62, 2, 0)
  105. MovementLoopAddLocation(NPC, 620.14, -16.54, 199.73, 2, 0)
  106. MovementLoopAddLocation(NPC, 677.71, -19.31, 186, 2, 0)
  107. MovementLoopAddLocation(NPC, 689.53, -19.52, 198.07, 2, 0)
  108. MovementLoopAddLocation(NPC, 704.12, -19.53, 193.02, 2, 0)
  109. end