astablemaster.lua 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. --[[
  2. Script Name : SpawnScripts/Zek/astablemaster.lua
  3. Script Purpose : a stable master
  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) == 1334955 then
  23. AddConversationOption(con, "To Defiled Forest Station.", "BridgeToForest")
  24. AddConversationOption(con, "To Refugee Station.", "BridgeToRefugee")
  25. AddConversationOption(con, "To Three Toes Station.", "BridgeToThreeToes")
  26. AddConversationOption(con, "To Warship Station.", "BridgetToWarship")
  27. elseif GetSpawnLocationID(NPC) == 1334957 then
  28. AddConversationOption(con, "To Bridge Station.", "RefugeeToBridge")
  29. AddConversationOption(con, "To Defiled Forest Station.", "RefugeeToForest")
  30. AddConversationOption(con, "To Three Toes Station.", "RefugeeToThreeToes")
  31. AddConversationOption(con, "To Warship Station.", "RefugeeToWarship")
  32. elseif GetSpawnLocationID(NPC) == 1334960 then
  33. AddConversationOption(con, "To Bridge Station.", "ThreeToesToBridge")
  34. AddConversationOption(con, "To Defiled Forest Station.", "ThreeToesToForest")
  35. AddConversationOption(con, "To Refugee Station.", "ThreeToesToRefugee")
  36. AddConversationOption(con, "To Warship Station.", "ThreeToesToWarship")
  37. elseif GetSpawnLocationID(NPC) == 1334954 then
  38. AddConversationOption(con, "To Bridge Station.", "ForestToBridge")
  39. AddConversationOption(con, "To Refugee Station.", "ForestToRefugee")
  40. AddConversationOption(con, "To Three Toes Station.", "ForestToThreeToes")
  41. AddConversationOption(con, "To Warship Station.", "ForestToWarship")
  42. elseif GetSpawnLocationID(NPC) == 1334958 then
  43. AddConversationOption(con, "To Bridge Station.", "WarshipToBridge")
  44. AddConversationOption(con, "To Defiled Forest.", "WarshipToForest")
  45. AddConversationOption(con, "To Refugee Station.", "WarshipToRefugee")
  46. AddConversationOption(con, "To Three Toes Station.", "WarshipToThreeToes")
  47. else
  48. PlayFlavor(NPC, "", "Not implemented yet!", "cry", 0, 0, Spawn)
  49. end
  50. AddConversationOption(con, "Nowhere.")
  51. StartConversation(con, NPC, Spawn, "Where to?")
  52. end
  53. function BridgeToForest(NPC, Spawn)
  54. StartAutoMount(Spawn, 79)
  55. SetMount(Spawn, 6846)
  56. end
  57. function BridgeToRefugee(NPC, Spawn)
  58. StartAutoMount(Spawn, 65)
  59. SetMount(Spawn, 6846)
  60. end
  61. function BridgeToThreeToes(NPC, Spawn)
  62. StartAutoMount(Spawn, 66)
  63. SetMount(Spawn, 6846)
  64. end
  65. function BridgeToWarship(NPC, Spawn)
  66. StartAutoMount(Spawn, 64)
  67. SetMount(Spawn, 6846)
  68. end
  69. function RefugeeToBridge(NPC, Spawn)
  70. StartAutoMount(Spawn, 80)
  71. SetMount(Spawn, 6846)
  72. end
  73. function RefugeeToForest(NPC, Spawn)
  74. StartAutoMount(Spawn, 76)
  75. SetMount(Spawn, 6846)
  76. end
  77. function RefugeeToThreeToes(NPC, Spawn)
  78. StartAutoMount(Spawn, 73)
  79. SetMount(Spawn, 6846)
  80. end
  81. function RefugeeToWarship(NPC, Spawn)
  82. StartAutoMount(Spawn, 81)
  83. SetMount(Spawn, 6846)
  84. end
  85. function ThreeToesToBridge(NPC, Spawn)
  86. StartAutoMount(Spawn, 83)
  87. SetMount(Spawn, 6846)
  88. end
  89. function ThreeToesToForest(NPC, Spawn)
  90. StartAutoMount(Spawn, 82)
  91. SetMount(Spawn, 6846)
  92. end
  93. function ThreeToesToRefugee(NPC, Spawn)
  94. StartAutoMount(Spawn, 72)
  95. SetMount(Spawn, 6846)
  96. end
  97. function ThreeToesToWarship(NPC, Spawn)
  98. StartAutoMount(Spawn, 75)
  99. SetMount(Spawn, 6846)
  100. end
  101. function ForestToBridge(NPC, Spawn)
  102. StartAutoMount(Spawn, 78)
  103. SetMount(Spawn, 6846)
  104. end
  105. function ForestToRefugee(NPC, Spawn)
  106. StartAutoMount(Spawn, 77)
  107. SetMount(Spawn, 6846)
  108. end
  109. function ForestToThreeToes(NPC, Spawn)
  110. StartAutoMount(Spawn, 68)
  111. SetMount(Spawn, 6846)
  112. end
  113. function ForestToWarship(NPC, Spawn)
  114. StartAutoMount(Spawn, 67)
  115. SetMount(Spawn, 6846)
  116. end
  117. function WarshipToBridge(NPC, Spawn)
  118. StartAutoMount(Spawn, 69)
  119. SetMount(Spawn, 6846)
  120. end
  121. function WarshipToForest(NPC, Spawn)
  122. StartAutoMount(Spawn, 70)
  123. SetMount(Spawn, 6846)
  124. end
  125. function WarshipToRefugee(NPC, Spawn)
  126. StartAutoMount(Spawn, 71)
  127. SetMount(Spawn, 6846)
  128. end
  129. function WarshipToThreeToes(NPC, Spawn)
  130. StartAutoMount(Spawn, 74)
  131. SetMount(Spawn, 6846)
  132. end
  133. function TaeToBasin(NPC, Spawn)
  134. StartAutoMount(Spawn, 271)
  135. SetMount(Spawn,6846)
  136. end
  137. function TaeToRiver(NPC, Spawn)
  138. StartAutoMount(Spawn, 282)
  139. SetMount(Spawn, 6846)
  140. end
  141. function TaeToTaeEw(NPC, Spawn)
  142. StartAutoMount(Spawn, 284)
  143. SetMount(Spawn, 6846)
  144. end
  145. function TaeToVul(NPC, Spawn)
  146. StartAutoMount(Spawn, 284)
  147. SetMount(Spawn, 6846)
  148. end
  149. function BasinToEvol(NPC, Spawn)
  150. StartAutoMount(Spawn, 290)
  151. SetMount(Spawn, 6846)
  152. end
  153. function BasinToTae(NPC, Spawn)
  154. StartAutoMount(Spawn, 278)
  155. SetMount(Spawn, 6846)
  156. end
  157. function BasinToCauseway(NPC, Spawn)
  158. StartAutoMount(Spawn, 288)
  159. SetMount(Spawn, 6846)
  160. end
  161. function BasinToRiver(NPC, Spawn)
  162. StartAutoMount(Spawn, 287)
  163. SetMount(Spawn, 6846)
  164. end
  165. function BasinToTaeEw(NPC, Spawn)
  166. StartAutoMount(Spawn, 289)
  167. SetMount(Spawn, 6846)
  168. end
  169. function BasinToVul(NPC, Spawn)
  170. StartAutoMount(Spawn, 286)
  171. SetMount(Spawn, 6846)
  172. end
  173. function TaeEwToEvol(NPC, Spawn)
  174. StartAutoMount(Spawn, 272)
  175. SetMount(Spawn, 6846)
  176. end
  177. function TaeEwToTae(NPC, Spawn)
  178. StartAutoMount(Spawn, 298)
  179. SetMount(Spawn, 6846)
  180. end
  181. function TaeEwToBasin(NPC, Spawn)
  182. StartAutoMount(Spawn, 296)
  183. SetMount(Spawn, 6846)
  184. end
  185. function TaeEwToCauseway(NPC, Spawn)
  186. StartAutoMount(Spawn, 297)
  187. SetMount(Spawn, 6846)
  188. end
  189. function TaeEwToRiver(NPC, Spawn)
  190. StartAutoMount(Spawn, 273)
  191. SetMount(Spawn, 6846)
  192. end
  193. function TaeEwToVul(NPC, Spawn)
  194. StartAutoMount(Spawn, 274)
  195. SetMount(Spawn, 6846)
  196. end
  197. function VulToEvol(NPC, Spawn)
  198. StartAutoMount(Spawn, 290)
  199. SetMount(Spawn, 6846)
  200. end
  201. function VulToTae(NPC, Spawn)
  202. StartAutoMount(Spawn, 277)
  203. SetMount(Spawn, 6846)
  204. end
  205. function VulToBasin(NPC, Spawn)
  206. StartAutoMount(Spawn, 303)
  207. SetMount(Spawn, 6846)
  208. end
  209. function VulToCauseway(NPC, Spawn)
  210. StartAutoMount(Spawn, 305)
  211. SetMount(Spawn, 6846)
  212. end
  213. function VulToRiver(NPC, Spawn)
  214. StartAutoMount(Spawn, 304)
  215. SetMount(Spawn, 6846)
  216. end
  217. function VulToTaeEw(NPC, Spawn)
  218. StartAutoMount(Spawn, 276)
  219. SetMount(Spawn, 6846)
  220. end