astablemaster.lua 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/astablemaster.lua
  3. Script Purpose : a stable master (1140115)
  4. Script Author : Neatz09
  5. Script Date : 4/16/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) == 202854 then
  23. --Butcherblock Mountains--
  24. AddConversationOption(con, "To Crushbone", "BBMToCrush")
  25. AddConversationOption(con, "To Kelethin.", "BBMToKel")
  26. AddConversationOption(con, "To Lesser Faydark.", "BBMToLFay")
  27. AddConversationOption(con, "To Loping Plains.", "BBMToPlains")
  28. AddConversationOption(con, "To New Tunaria.", "BBMToTuna")
  29. AddConversationOption(con, "To Steamfont Mountains.", "BBMToSFM")
  30. elseif GetSpawnLocationID(NPC) == 595026 then
  31. --Crushbone--
  32. AddConversationOption(con, "To Butcherblock Mountains.", "CrushToBBM")
  33. AddConversationOption(con, "To Kelethin.", "CrushToKel")
  34. AddConversationOption(con, "To Lesser Faydark.", "CrushToLFay")
  35. AddConversationOption(con, "To Loping Plains.", "CrushToPlains")
  36. AddConversationOption(con, "To New Tunaria.", "CrushToTuna")
  37. AddConversationOption(con, "To Steamfont Mountains.", "CrushToSFM")
  38. elseif GetSpawnLocationID(NPC) == 1586029 then
  39. --Lesser Faydark--
  40. AddConversationOption(con, "To Butcherblock Mountains.", "LFayToBBM")
  41. AddConversationOption(con, "To Crushbone.", "LFayToCrush")
  42. AddConversationOption(con, "To Kelethin.", "LFayToKel")
  43. AddConversationOption(con, "To Loping Plains.", "LFayToPlains")
  44. AddConversationOption(con, "To New Tunaria.", "LFayToTuna")
  45. AddConversationOption(con, "To Steamfont Mountains.", "LFayToSFM")
  46. elseif GetSpawnLocationID(NPC) == 202850 then
  47. --Loping Plains--
  48. AddConversationOption(con, "To Butcherblock Mountains.", "PlainsToBBM")
  49. AddConversationOption(con, "To Crushbone.", "PlainsToCrush")
  50. AddConversationOption(con, "To Kelethin.", "PlainsToKel")
  51. AddConversationOption(con, "To Lesser Faydark.", "PlainsToLFay")
  52. AddConversationOption(con, "To New Tunaria.", "PlainsToTuna")
  53. AddConversationOption(con, "To Steamfont Mountains.", "PlainsToSFM")
  54. elseif GetSpawnLocationID(NPC) == 202847 then
  55. --New Tunaria--
  56. AddConversationOption(con, "To Butcherblock Mountains.", "TunaToBBM")
  57. AddConversationOption(con, "To Crushbone.", "TunaToCrush")
  58. AddConversationOption(con, "To Kelethin.", "TunaToKel")
  59. AddConversationOption(con, "To Lesser Faydark.", "TunaToLFay")
  60. AddConversationOption(con, "To Loping Plains.", "TunaToPlains")
  61. AddConversationOption(con, "To Steamfont Mountains.", "TunaToSFM")
  62. elseif GetSpawnLocationID(NPC) == 202849 then
  63. --Steamfont Mountains--
  64. AddConversationOption(con, "To Butcherblock Mountains.", "SFMToBBM")
  65. AddConversationOption(con, "To Crushbone.", "SFMToCrush")
  66. AddConversationOption(con, "To Kelethin.", "SFMToKel")
  67. AddConversationOption(con, "To Lesser Faydark.", "SFMToLFay")
  68. AddConversationOption(con, "To Loping Plains.", "SFMToPlains")
  69. AddConversationOption(con, "To New Tunaria.", "SFMToTuna")
  70. --MISSING KELETHIN STATIONS KEL ID 205477
  71. else
  72. PlayFlavor(NPC, "", "Not implemented yet!", "cry", 0, 0, Spawn)
  73. end
  74. AddConversationOption(con, "Nowhere.")
  75. StartConversation(con, NPC, Spawn, "Where to?")
  76. end
  77. function BBMToCrush(NPC, Spawn)
  78. StartAutoMount(Spawn, 140)
  79. SetMount(Spawn, 6846)
  80. end
  81. function BBMToKel(NPC, Spawn)
  82. StartAutoMount(Spawn, 129)
  83. SetMount(Spawn, 6846)
  84. end
  85. function BBMToLFay(NPC, Spawn)
  86. StartAutoMount(Spawn, 143)
  87. SetMount(Spawn, 6846)
  88. end
  89. function BBMToPlains(NPC, Spawn)
  90. StartAutoMount(Spawn, 144)
  91. SetMount(Spawn, 6846)
  92. end
  93. function BBMToTuna(NPC, Spawn)
  94. StartAutoMount(Spawn, 141)
  95. SetMount(Spawn, 6846)
  96. end
  97. function BBMToSFM(NPC, Spawn)
  98. StartAutoMount(Spawn, 142)
  99. SetMount(Spawn, 6846)
  100. end
  101. function CrushToBBM(NPC, Spawn)
  102. StartAutoMount(Spawn, 146)
  103. SetMount(Spawn, 6846)
  104. end
  105. function CrushToKel(NPC, Spawn)
  106. StartAutoMount(Spawn, 132)
  107. SetMount(Spawn, 6846)
  108. end
  109. function CrushToLFay(NPC, Spawn)
  110. StartAutoMount(Spawn, 148)
  111. SetMount(Spawn, 6846)
  112. end
  113. function CrushToPlains(NPC, Spawn)
  114. StartAutoMount(Spawn, 149)
  115. SetMount(Spawn, 6846)
  116. end
  117. function CrushToTuna(NPC, Spawn)
  118. StartAutoMount(Spawn, 145)
  119. SetMount(Spawn, 6846)
  120. end
  121. function CrushToSFM(NPC, Spawn)
  122. StartAutoMount(Spawn, 147)
  123. SetMount(Spawn, 6846)
  124. end
  125. function LFayToBBM(NPC, Spawn)
  126. StartAutoMount(Spawn, 151)
  127. SetMount(Spawn, 6846)
  128. end
  129. function LFayToCrush(NPC, Spawn)
  130. StartAutoMount(Spawn, 150)
  131. SetMount(Spawn, 6846)
  132. end
  133. function LFayToKel(NPC, Spawn)
  134. StartAutoMount(Spawn, 133)
  135. SetMount(Spawn, 6846)
  136. end
  137. function LFayToPlains(NPC, Spawn)
  138. StartAutoMount(Spawn, 154)
  139. SetMount(Spawn, 6846)
  140. end
  141. function LFayToTuna(NPC, Spawn)
  142. StartAutoMount(Spawn, 153)
  143. SetMount(Spawn, 6846)
  144. end
  145. function LFayToSFM(NPC, Spawn)
  146. StartAutoMount(Spawn, 152)
  147. SetMount(Spawn, 6846)
  148. end
  149. function PlainsToBBM(NPC, Spawn)
  150. StartAutoMount(Spawn, 156)
  151. SetMount(Spawn, 6846)
  152. end
  153. function PlainsToCrush(NPC, Spawn)
  154. StartAutoMount(Spawn, 155)
  155. SetMount(Spawn, 6846)
  156. end
  157. function PlainsToKel(NPC, Spawn)
  158. StartAutoMount(Spawn, 134)
  159. SetMount(Spawn,6846)
  160. end
  161. function PlainsToLFay(NPC, Spawn)
  162. StartAutoMount(Spawn, 158)
  163. SetMount(Spawn, 6846)
  164. end
  165. function PlainsToTuna(NPC, Spawn)
  166. StartAutoMount(Spawn, 159)
  167. SetMount(Spawn, 6846)
  168. end
  169. function PlainsToSFM(NPC, Spawn)
  170. StartAutoMount(Spawn, 157)
  171. SetMount(Spawn, 6846)
  172. end
  173. function DocksToFoothills(NPC, Spawn)
  174. StartAutoMount(Spawn, 43)
  175. SetMount(Spawn, 6846)
  176. end
  177. function TunaToBBM(NPC, Spawn)
  178. StartAutoMount(Spawn, 161)
  179. SetMount(Spawn, 6846)
  180. end
  181. function TunaToCrush(NPC, Spawn)
  182. StartAutoMount(Spawn, 160)
  183. SetMount(Spawn, 6846)
  184. end
  185. function TunaToKel(NPC, Spawn)
  186. StartAutoMount(Spawn, 130)
  187. SetMount(Spawn, 6846)
  188. end
  189. function TunaToLFay(NPC, Spawn)
  190. StartAutoMount(Spawn, 163)
  191. SetMount(Spawn, 6846)
  192. end
  193. function TunaToPlains(NPC, Spawn)
  194. StartAutoMount(Spawn, 164)
  195. SetMount(Spawn, 6846)
  196. end
  197. function TunaToSFM(NPC, Spawn)
  198. StartAutoMount(Spawn, 162)
  199. SetMount(Spawn, 6846)
  200. end
  201. function SFMToBBM(NPC, Spawn)
  202. StartAutoMount(Spawn, 136)
  203. SetMount(Spawn, 6846)
  204. end
  205. function SFMToCrush(NPC, Spawn)
  206. StartAutoMount(Spawn, 135)
  207. SetMount(Spawn, 6846)
  208. end
  209. function SFMToKel(NPC, Spawn)
  210. StartAutoMount(Spawn, 131)
  211. SetMount(Spawn, 6846)
  212. end
  213. function SFMToLFay(NPC, Spawn)
  214. StartAutoMount(Spawn, 138)
  215. SetMount(Spawn, 6846)
  216. end
  217. function SFMToPlains(NPC, Spawn)
  218. StartAutoMount(Spawn, 139)
  219. SetMount(Spawn, 6846)
  220. end
  221. function SFMToTuna(NPC, Spawn)
  222. StartAutoMount(Spawn, 137)
  223. SetMount(Spawn, 6846)
  224. end