9
3

astablemaster.lua 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. --[[
  2. Script Name : SpawnScripts/Feerrott/astablemaster.lua
  3. Script Purpose : a stable master (2490000)
  4. Script Author : Neatz09
  5. Script Date : 2/20/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) == 242878 then
  23. AddConversationOption(con, "To Alliz Evol Station.", "CausewayToAllizEvol")
  24. AddConversationOption(con, "To Alliz Tae Station.", "CausewayToAllizTae")
  25. AddConversationOption(con, "To Dread Basin Station.", "CausewayToBasin")
  26. AddConversationOption(con, "To Greenblood River.", "CausewayToRiver")
  27. AddConversationOption(con, "To Tae Ew Station.", "CausewayToTaeEW")
  28. AddConversationOption(con, "To Tower of Vul Station.", "CausewayToVul")
  29. elseif GetSpawnLocationID(NPC) == 242877 then
  30. AddConversationOption(con, "To Alliz Tae Station.", "EvolToTae")
  31. AddConversationOption(con, "To Drowning Causeway Station.", "EvolToCauseway")
  32. AddConversationOption(con, "To Dread Basin Station.", "EvolToBasin")
  33. AddConversationOption(con, "To Greenblood River Station.", "EvolToRiver")
  34. AddConversationOption(con, "To Tae Ew Station.", "EvolToTaeEw")
  35. AddConversationOption(con, "To Tower of Vul Station.", "EvolToVul")
  36. elseif GetSpawnLocationID(NPC) == 242876 then
  37. AddConversationOption(con, "To Alliz Evol Station.", "RiverToEvol")
  38. AddConversationOption(con, "To Alliz Tae Station.", "RiverToTae")
  39. AddConversationOption(con, "To Dread Basin.", "RiverToBasin")
  40. AddConversationOption(con, "To Drowning Causeway Station.", "RiverToCauseway")
  41. AddConversationOption(con, "To Tae Ew Station.", "RiverToTaeEw")
  42. AddConversationOption(con, "To Tower of Vul.", "RiverToVul")
  43. elseif GetSpawnLocationID(NPC) == 242872 then
  44. AddConversationOption(con, "To Alliz Evol Station.", "TaeToEvol")
  45. AddConversationOption(con, "To Drowning Causeway Station.", "TaeToCauseway")
  46. AddConversationOption(con, "To Dread Basin Station.", "TaeToBasin")
  47. AddConversationOption(con, "To Greenblood River Station.", "TaeToRiver")
  48. AddConversationOption(con, "To Tae Ew Station.", "TaeToTaeEw")
  49. AddConversationOption(con, "To Tower of Vul Station.", "TaeToVul")
  50. elseif GetSpawnLocationID(NPC) == 242871 then
  51. AddConversationOption(con, "To Alliz Evol Station.", "BasinToEvol")
  52. AddConversationOption(con, "To Alliz Tae Station.", "BasinToTae")
  53. AddConversationOption(con, "To Drowning Causeway Station.", "BasinToCauseway")
  54. AddConversationOption(con, "To Greenblood River Station.", "BasinToRiver")
  55. AddConversationOption(con, "To Tae Ew Station.", "BasinToTaeEw")
  56. AddConversationOption(con, "To Tower of Vul Station.", "BasinToVul")
  57. elseif GetSpawnLocationID(NPC) == 242875 then
  58. AddConversationOption(con, "To Alliz Evol Staton.", "TaeEwToEvol")
  59. AddConversationOption(con, "To Alliz Tae Station.", "TaeEwToTae")
  60. AddConversationOption(con, "To Dread Basin Station.", "TaeEwToBasin")
  61. AddConversationOption(con, "To Drowning Causeway Station.", "TaeEwToCauseway")
  62. AddConversationOption(con, "To Greenblood River Station.", "TaeEwToRiver")
  63. AddConversationOption(con, "To Tower of Vul Station.", "TaeEwToVul")
  64. elseif GetSpawnLocationID(NPC) == 242873 then
  65. AddConversationOption(con, "To Alliz Evol Station.", "VulToEvol")
  66. AddConversationOption(con, "To Alliz Tae Station.", "VulToTae")
  67. AddConversationOption(con, "To Dread Basin Station.", "VulToBasin")
  68. AddConversationOption(con, "To Drowning Causeway Station.", "VulToCauseway")
  69. AddConversationOption(con, "To Greenblood River Station.", "VulToRiver")
  70. AddConversationOption(con, "To Tae Ew Station.", "VulToTaeEw")
  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 CausewayToAllizEvol(NPC, Spawn)
  78. StartAutoMount(Spawn, 265)
  79. SetMount(Spawn, 6846)
  80. end
  81. function CausewayToAllizTae(NPC, Spawn)
  82. StartAutoMount(Spawn, 294)
  83. SetMount(Spawn, 6846)
  84. end
  85. function CausewayToBasin(NPC, Spawn)
  86. StartAutoMount(Spawn, 292)
  87. SetMount(Spawn, 6846)
  88. end
  89. function CausewayToRiver(NPC, Spawn)
  90. StartAutoMount(Spawn, 293)
  91. SetMount(Spawn, 6846)
  92. end
  93. function CausewayToVul(NPC, Spawn)
  94. StartAutoMount(Spawn, 291)
  95. SetMount(Spawn, 6846)
  96. end
  97. function CausewayToTaeEW(NPC, Spawn)
  98. StartAutoMount(Spawn, 295)
  99. SetMount(Spawn, 6846)
  100. end
  101. function EvolToTae(NPC, Spawn)
  102. StartAutoMount(Spawn, 281)
  103. SetMount(Spawn, 6846)
  104. end
  105. function EvolToCauseway(NPC, Spawn)
  106. StartAutoMount(Spawn, 266)
  107. SetMount(Spawn, 6846)
  108. end
  109. function EvolToBasin(NPC, Spawn)
  110. StartAutoMount(Spawn, 280)
  111. SetMount(Spawn, 6846)
  112. end
  113. function EvolToRiver(NPC, Spawn)
  114. StartAutoMount(Spawn, 267)
  115. SetMount(Spawn, 6846)
  116. end
  117. function EvolToTaeEw(NPC, Spawn)
  118. StartAutoMount(Spawn, 268)
  119. SetMount(Spawn, 6846)
  120. end
  121. function EvolToVul(NPC, Spawn)
  122. StartAutoMount(Spawn, 279)
  123. SetMount(Spawn, 6846)
  124. end
  125. function RiverToEvol(NPC, Spawn)
  126. StartAutoMount(Spawn, 269)
  127. SetMount(Spawn, 6846)
  128. end
  129. function RiverToTae(NPC, Spawn)
  130. StartAutoMount(Spawn, 302)
  131. SetMount(Spawn, 6846)
  132. end
  133. function RiverToBasin(NPC, Spawn)
  134. StartAutoMount(Spawn, 300)
  135. SetMount(Spawn, 6846)
  136. end
  137. function RiverToCauseway(NPC, Spawn)
  138. StartAutoMount(Spawn, 301)
  139. SetMount(Spawn, 6846)
  140. end
  141. function RiverToTaeEw(NPC, Spawn)
  142. StartAutoMount(Spawn, 270)
  143. SetMount(Spawn, 6846)
  144. end
  145. function RiverToVul(NPC, Spawn)
  146. StartAutoMount(Spawn, 299)
  147. SetMount(Spawn, 6846)
  148. end
  149. function TaeToEvol(NPC, Spawn)
  150. StartAutoMount(Spawn, 285)
  151. SetMount(Spawn, 6846)
  152. end
  153. function TaeToCauseway(NPC, Spawn)
  154. StartAutoMount(Spawn, 283)
  155. SetMount(Spawn, 6846)
  156. end
  157. function TaeToBasin(NPC, Spawn)
  158. StartAutoMount(Spawn, 271)
  159. SetMount(Spawn,6846)
  160. end
  161. function TaeToRiver(NPC, Spawn)
  162. StartAutoMount(Spawn, 282)
  163. SetMount(Spawn, 6846)
  164. end
  165. function TaeToTaeEw(NPC, Spawn)
  166. StartAutoMount(Spawn, 284)
  167. SetMount(Spawn, 6846)
  168. end
  169. function TaeToVul(NPC, Spawn)
  170. StartAutoMount(Spawn, 284)
  171. SetMount(Spawn, 6846)
  172. end
  173. function BasinToEvol(NPC, Spawn)
  174. StartAutoMount(Spawn, 290)
  175. SetMount(Spawn, 6846)
  176. end
  177. function BasinToTae(NPC, Spawn)
  178. StartAutoMount(Spawn, 278)
  179. SetMount(Spawn, 6846)
  180. end
  181. function BasinToCauseway(NPC, Spawn)
  182. StartAutoMount(Spawn, 288)
  183. SetMount(Spawn, 6846)
  184. end
  185. function BasinToRiver(NPC, Spawn)
  186. StartAutoMount(Spawn, 287)
  187. SetMount(Spawn, 6846)
  188. end
  189. function BasinToTaeEw(NPC, Spawn)
  190. StartAutoMount(Spawn, 289)
  191. SetMount(Spawn, 6846)
  192. end
  193. function BasinToVul(NPC, Spawn)
  194. StartAutoMount(Spawn, 286)
  195. SetMount(Spawn, 6846)
  196. end
  197. function TaeEwToEvol(NPC, Spawn)
  198. StartAutoMount(Spawn, 272)
  199. SetMount(Spawn, 6846)
  200. end
  201. function TaeEwToTae(NPC, Spawn)
  202. StartAutoMount(Spawn, 298)
  203. SetMount(Spawn, 6846)
  204. end
  205. function TaeEwToBasin(NPC, Spawn)
  206. StartAutoMount(Spawn, 296)
  207. SetMount(Spawn, 6846)
  208. end
  209. function TaeEwToCauseway(NPC, Spawn)
  210. StartAutoMount(Spawn, 297)
  211. SetMount(Spawn, 6846)
  212. end
  213. function TaeEwToRiver(NPC, Spawn)
  214. StartAutoMount(Spawn, 273)
  215. SetMount(Spawn, 6846)
  216. end
  217. function TaeEwToVul(NPC, Spawn)
  218. StartAutoMount(Spawn, 274)
  219. SetMount(Spawn, 6846)
  220. end
  221. function VulToEvol(NPC, Spawn)
  222. StartAutoMount(Spawn, 290)
  223. SetMount(Spawn, 6846)
  224. end
  225. function VulToTae(NPC, Spawn)
  226. StartAutoMount(Spawn, 277)
  227. SetMount(Spawn, 6846)
  228. end
  229. function VulToBasin(NPC, Spawn)
  230. StartAutoMount(Spawn, 303)
  231. SetMount(Spawn, 6846)
  232. end
  233. function VulToCauseway(NPC, Spawn)
  234. StartAutoMount(Spawn, 305)
  235. SetMount(Spawn, 6846)
  236. end
  237. function VulToRiver(NPC, Spawn)
  238. StartAutoMount(Spawn, 304)
  239. SetMount(Spawn, 6846)
  240. end
  241. function VulToTaeEw(NPC, Spawn)
  242. StartAutoMount(Spawn, 276)
  243. SetMount(Spawn, 6846)
  244. end