astablemaster.lua 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. --[[
  2. Script Name : SpawnScripts/LesserFaydark/astablemaster.lua
  3. Script Purpose : a stable master (1150001)
  4. Script Author : Neatz09
  5. Script Date : 4/14/2019
  6. Script Notes :
  7. --]]
  8. function respawn(NPC)
  9. spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. conversation = CreateConversation()
  14. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1042.mp3", "", "", 0, 0, Spawn)
  15. AddConversationOption(conversation, "I would like to travel.", "dlg_1_1")
  16. AddConversationOption(conversation, "Nowhere.")
  17. StartConversation(conversation, NPC, Spawn, "Greetings traveler, how can I assist you today?")
  18. end
  19. function dlg_1_1(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. local con = CreateConversation()
  22. if GetSpawnLocationID(NPC) == 383888 then
  23. AddConversationOption(con, "To Butcherblock Mountains", "FaeToBBM")
  24. -- AddConversationOption(con, "To Greater Faydark.", "FaeToGFay")--
  25. AddConversationOption(con, "To Loping Plains.", "FaeToPlains")
  26. AddConversationOption(con, "To Lower Grove.", "FaeToLowerGrove")
  27. AddConversationOption(con, "To Upper Grove.", "FaeToUpperGrove")
  28. elseif GetSpawnLocationID(NPC) == 383892 then
  29. AddConversationOption(con, "To Fae Court.", "BBMToFae")
  30. AddConversationOption(con, "To Greater Faydark.", "BBMToGFay")
  31. AddConversationOption(con, "To Loping Plains.", "BBMToPlains")
  32. AddConversationOption(con, "To Lower Grove.", "BBMToLowerGrove")
  33. AddConversationOption(con, "To Upper grove.", "BBMToUpperGrove")
  34. elseif GetSpawnLocationID(NPC) == 383890 then
  35. AddConversationOption(con, "To Butcherblock Mountains.", "UpperGroveToBBM")
  36. AddConversationOption(con, "To Fae Court.", "UpperGroveToFae")
  37. AddConversationOption(con, "To Greater Faydark.", "UpperGroveToGFay")
  38. AddConversationOption(con, "To Loping Plains.", "UpperGroveToPlains")
  39. AddConversationOption(con, "To Lower Grove.", "UpperGroveToLowerGrove")
  40. elseif GetSpawnLocationID(NPC) == 383889 then
  41. AddConversationOption(con, "To Butcherblock Mountains.", "LowerGroveToBBM")
  42. AddConversationOption(con, "To Fae Court.", "LowerGroveToFae")
  43. AddConversationOption(con, "To Greater Faydark.", "LowerGroveToGFay")
  44. AddConversationOption(con, "To Loping Plains.", "LowerGroveToPlains")
  45. AddConversationOption(con, "To Upper Grove.", "LowerGroveToUpperGrove")
  46. elseif GetSpawnLocationID(NPC) == 383891 then
  47. AddConversationOption(con, "To Butcherblock Mountains.", "PlainsToBBM")
  48. AddConversationOption(con, "To Fae Court.", "PlainsToFae")
  49. AddConversationOption(con, "To Greater Faydark.", "PlainsToGFay")
  50. AddConversationOption(con, "To Lower Grove.", "PlainsToLowerGrove")
  51. AddConversationOption(con, "To Upper Grove.", "PlainsToUpperGrove")
  52. elseif GetSpawnLocationID(NPC) == 383887 then
  53. AddConversationOption(con, "To Butcherblock Mountains.", "GFayToBBM")
  54. AddConversationOption(con, "To Fae Court.", "GFayToFae")
  55. AddConversationOption(con, "To Loping Plains.", "GFayToPlains")
  56. AddConversationOption(con, "To Lower Grove.", "GFayToLower")
  57. AddConversationOption(con, "To Misty Grove.", "GFayToUpper")
  58. else
  59. PlayFlavor(NPC, "", "Not implemented yet!", "cry", 0, 0, Spawn)
  60. end
  61. AddConversationOption(con, "Nowhere.")
  62. StartConversation(con, NPC, Spawn, "Where to?")
  63. end
  64. function FaeToBBM(NPC, Spawn)
  65. StartAutoMount(Spawn, 943)
  66. SetMount(Spawn, 6846)
  67. end
  68. -- function FaeToGFay(NPC, Spawn)
  69. StartAutoMount(Spawn, 0)
  70. SetMount(Spawn, 6846)
  71. end --
  72. function FaeToPlains(NPC, Spawn)
  73. StartAutoMount(Spawn, 944)
  74. SetMount(Spawn, 6846)
  75. end
  76. function FaeToLowerGrove(NPC, Spawn)
  77. StartAutoMount(Spawn, 959)
  78. SetMount(Spawn, 6846)
  79. end
  80. function FaeToUpperGrove(NPC, Spawn)
  81. StartAutoMount(Spawn, 945)
  82. SetMount(Spawn, 6846)
  83. end
  84. function BBMToFae(NPC, Spawn)
  85. StartAutoMount(Spawn, 941)
  86. SetMount(Spawn, 6846)
  87. end
  88. function BBMToGFay(NPC, Spawn)
  89. StartAutoMount(Spawn, 958)
  90. SetMount(Spawn, 6846)
  91. end
  92. function BBMToPlains(NPC, Spawn)
  93. StartAutoMount(Spawn, 940)
  94. SetMount(Spawn, 6846)
  95. end
  96. function BBMToLowerGrove(NPC, Spawn)
  97. StartAutoMount(Spawn, 957)
  98. SetMount(Spawn, 6846)
  99. end
  100. function BBMUpperGrove(NPC, Spawn)
  101. StartAutoMount(Spawn, 942)
  102. SetMount(Spawn, 6846)
  103. end
  104. function UpperGroveToBBM(NPC, Spawn)
  105. StartAutoMount(Spawn, 951)
  106. SetMount(Spawn, 6846)
  107. end
  108. function UpperGroveToFae(NPC, Spawn)
  109. StartAutoMount(Spawn, 953)
  110. SetMount(Spawn, 6846)
  111. end
  112. function UpperGroveToGFay(NPC, Spawn)
  113. StartAutoMount(Spawn, 955)
  114. SetMount(Spawn, 6846)
  115. end
  116. function UpperGroveToPlains(NPC, Spawn)
  117. StartAutoMount(Spawn, 952)
  118. SetMount(Spawn, 6846)
  119. end
  120. function UpperGroveToLowerGrove(NPC, Spawn)
  121. StartAutoMount(Spawn, 956)
  122. SetMount(Spawn, 6846)
  123. end
  124. function LowerGroveToBBM(NPC, Spawn)
  125. StartAutoMount(Spawn, 965)
  126. SetMount(Spawn, 6846)
  127. end
  128. function LowerGroveToFae(NPC, Spawn)
  129. StartAutoMount(Spawn, 968)
  130. SetMount(Spawn, 6846)
  131. end
  132. function LowerGroveToGFay(NPC, Spawn)
  133. StartAutoMount(Spawn, 950)
  134. SetMount(Spawn, 6846)
  135. end
  136. function LowerGroveToPlains(NPC, Spawn)
  137. StartAutoMount(Spawn, 966)
  138. SetMount(Spawn, 6846)
  139. end
  140. function LowwerGroveToUpperGrove(NPC, Spawn)
  141. StartAutoMount(Spawn, 967)
  142. SetMount(Spawn, 6846)
  143. end
  144. function PlainsToBBM(NPC, Spawn)
  145. StartAutoMount(Spawn, 947)
  146. SetMount(Spawn,6846)
  147. end
  148. function PlainsToFae(NPC, Spawn)
  149. StartAutoMount(Spawn, 948)
  150. SetMount(Spawn, 6846)
  151. end
  152. function PlainsToGFay(NPC, Spawn)
  153. StartAutoMount(Spawn, 963)
  154. SetMount(Spawn, 6846)
  155. end
  156. function PlainsToLowerGrove(NPC, Spawn)
  157. StartAutoMount(Spawn, 964)
  158. SetMount(Spawn, 6846)
  159. end
  160. function PlainsToUpperGrove(NPC, Spawn)
  161. StartAutoMount(Spawn, 949)
  162. SetMount(Spawn, 6846)
  163. end
  164. function GFayToBBM(NPC, Spawn)
  165. StartAutoMount(Spawn, 960)
  166. SetMount(Spawn, 6846)
  167. end
  168. function GFayToFae(NPC, Spawn)
  169. StartAutoMount(Spawn, 954)
  170. SetMount(Spawn, 6846)
  171. end
  172. function GFayToPlains(NPC, Spawn)
  173. StartAutoMount(Spawn, 961)
  174. SetMount(Spawn, 6846)
  175. end
  176. function GFayToLowerGrove(NPC, Spawn)
  177. StartAutoMount(Spawn, 946)
  178. SetMount(Spawn, 6846)
  179. end
  180. function GFayToUpperGrove(NPC, Spawn)
  181. StartAutoMount(Spawn,962)
  182. SetMount(Spawn, 6846)
  183. end