astablemaster.lua 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. --[[
  2. Script Name : SpawnScripts/EnchantedLands/astablemaster.lua
  3. Script Purpose : a stable master (390024)
  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. conversation = CreateConversation()
  13. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1042.mp3", "", "", 0, 0, Spawn)
  14. AddConversationOption(conversation, "I would like to travel.", "dlg_1_1")
  15. AddConversationOption(conversation, "Nowhere.")
  16. StartConversation(conversation, NPC, Spawn, "Greetings traveler, how can I assist you today?")
  17. end
  18. function dlg_1_1(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. local con = CreateConversation()
  21. if GetSpawnLocationID(NPC) == 1106628 then
  22. AddConversationOption(con, "To Bramblefoot Hills", "GoblinToFoothills")
  23. AddConversationOption(con, "To Chomper's Pond.", "GoblinToChomper")
  24. AddConversationOption(con, "To The Docks.", "GoblinToDocks")
  25. AddConversationOption(con, "To The Great Guard.", "GoblinToGuard")
  26. AddConversationOption(con, "To Misty Grove.", "GoblinToGrove")
  27. AddConversationOption(con, "To Rivervale.", "GoblinToRivervale")
  28. elseif GetSpawnLocationID(NPC) == 1106624 then
  29. AddConversationOption(con, "To Chomper's Pond.", "FoothillsToChomper")
  30. AddConversationOption(con, "To The Docks.", "FoothillsToDocks")
  31. AddConversationOption(con, "To Goblin Pass.", "FoothillsToGoblin")
  32. AddConversationOption(con, "To The Great Guard.", "FoothillsToGuard")
  33. AddConversationOption(con, "To Misty Grove.", "FoothillsToGrove")
  34. AddConversationOption(con, "To Rivervale.", "FoothillsToRivervale")
  35. elseif GetSpawnLocationID(NPC) == 1106623 then
  36. AddConversationOption(con, "To Bramblefoot Hills.", "GroveToFoothills")
  37. AddConversationOption(con, "To Chomper's Pond.", "GroveToChomper")
  38. AddConversationOption(con, "To The Docks.", "GroveToDocks")
  39. AddConversationOption(con, "To Goblin Pass.", "GroveToGoblin")
  40. AddConversationOption(con, "To The Great Guard.", "GroveToGuard")
  41. AddConversationOption(con, "To Rivervale.", "GroveToRivervale")
  42. elseif GetSpawnLocationID(NPC) == 1106625 then
  43. AddConversationOption(con, "To Bramblefoot Hills.", "RivervaleToFoothills")
  44. AddConversationOption(con, "To Chomper's Pond.", "RivervaleToChomper")
  45. AddConversationOption(con, "To The Docks.", "RivervaleToDocks")
  46. AddConversationOption(con, "To Goblin Pass.", "RivervaleToGoblin")
  47. AddConversationOption(con, "To The Great Guard.", "RivervaleToGuard")
  48. AddConversationOption(con, "To Misty Grove.", "RivervaleToGrove")
  49. elseif GetSpawnLocationID(NPC) == 1106627 then
  50. AddConversationOption(con, "To Bramblefoot Hills.", "DocksToFoothills")
  51. AddConversationOption(con, "To Chomper's Pond.", "DocksToChomper")
  52. AddConversationOption(con, "To Goblin Pass.", "DocksToGoblin")
  53. AddConversationOption(con, "To The Great Guard.", "DocksToGuard")
  54. AddConversationOption(con, "To Misty Grove.", "DocksToGrove")
  55. AddConversationOption(con, "To Rivervale.", "DocksToRivervale")
  56. elseif GetSpawnLocationID(NPC) == 1106629 then
  57. AddConversationOption(con, "To Bramblefoot Hills.", "GuardToFoothills")
  58. AddConversationOption(con, "To Chomper's Pond.", "GuardToChomper")
  59. AddConversationOption(con, "To The Docks.", "GuardToDocks")
  60. AddConversationOption(con, "To Goblin Pass.", "GuardToGoblin")
  61. AddConversationOption(con, "To Misty Grove.", "GuardToGrove")
  62. AddConversationOption(con, "To Rivervale.", "GuardToRivervale")
  63. elseif GetSpawnLocationID(NPC) == 1106626 then
  64. AddConversationOption(con, "To Bramblefoot Hills.", "ChomperToFoothills")
  65. AddConversationOption(con, "To The Docks.", "ChomperToDocks")
  66. AddConversationOption(con, "To Goblin Pass.", "ChomperToGoblin")
  67. AddConversationOption(con, "To The Great Guard.", "ChomperToGuard")
  68. AddConversationOption(con, "To Misty Grove.", "ChomperToGrove")
  69. AddConversationOption(con, "To Rivervale.", "ChomperToRivervale")
  70. else
  71. PlayFlavor(NPC, "", "Not implemented yet!", "cry", 0, 0, Spawn)
  72. end
  73. AddConversationOption(con, "Nowhere.")
  74. StartConversation(con, NPC, Spawn, "Where to?")
  75. end
  76. function GoblinToFoothills(NPC, Spawn)
  77. StartAutoMount(Spawn, 29)
  78. SetMount(Spawn, 6846)
  79. end
  80. function GoblinToChomper(NPC, Spawn)
  81. StartAutoMount(Spawn, 59)
  82. SetMount(Spawn, 6846)
  83. end
  84. function GoblinToDocks(NPC, Spawn)
  85. StartAutoMount(Spawn, 60)
  86. SetMount(Spawn, 6846)
  87. end
  88. function GoblinToGuard(NPC, Spawn)
  89. StartAutoMount(Spawn, 28)
  90. SetMount(Spawn, 6846)
  91. end
  92. function GoblinToGrove(NPC, Spawn)
  93. StartAutoMount(Spawn, 61)
  94. SetMount(Spawn, 6846)
  95. end
  96. function GoblinToRivervale(NPC, Spawn)
  97. StartAutoMount(Spawn, 58)
  98. SetMount(Spawn, 6846)
  99. end
  100. function FoothillsToChomper(NPC, Spawn)
  101. StartAutoMount(Spawn, 30)
  102. SetMount(Spawn, 6846)
  103. end
  104. function FoothillsToDocks(NPC, Spawn)
  105. StartAutoMount(Spawn, 48)
  106. SetMount(Spawn, 6846)
  107. end
  108. function FoothillsToGoblin(NPC, Spawn)
  109. StartAutoMount(Spawn, 32)
  110. SetMount(Spawn, 6846)
  111. end
  112. function FoothillsToGuard(NPC, Spawn)
  113. StartAutoMount(Spawn, 47)
  114. SetMount(Spawn, 6846)
  115. end
  116. function FoothillsToGrove(NPC, Spawn)
  117. StartAutoMount(Spawn, 31)
  118. SetMount(Spawn, 6846)
  119. end
  120. function FoothillsToRivervale(NPC, Spawn)
  121. StartAutoMount(Spawn, 46)
  122. SetMount(Spawn, 6846)
  123. end
  124. function GroveToFoothills(NPC, Spawn)
  125. StartAutoMount(Spawn, 34)
  126. SetMount(Spawn, 6846)
  127. end
  128. function GroveToChomper(NPC, Spawn)
  129. StartAutoMount(Spawn, 33)
  130. SetMount(Spawn, 6846)
  131. end
  132. function GroveToDocks(NPC, Spawn)
  133. StartAutoMount(Spawn, 54)
  134. SetMount(Spawn, 6846)
  135. end
  136. function GroveToGoblin(NPC, Spawn)
  137. StartAutoMount(Spawn, 53)
  138. SetMount(Spawn, 6846)
  139. end
  140. function GroveToGuard(NPC, Spawn)
  141. StartAutoMount(Spawn, 52)
  142. SetMount(Spawn, 6846)
  143. end
  144. function GroveToRivervale(NPC, Spawn)
  145. StartAutoMount(Spawn, 51)
  146. SetMount(Spawn, 6846)
  147. end
  148. function RivervaleToFoothills(NPC, Spawn)
  149. StartAutoMount(Spawn, 39)
  150. SetMount(Spawn, 6846)
  151. end
  152. function RivervaleToChomper(NPC, Spawn)
  153. StartAutoMount(Spawn, 24)
  154. SetMount(Spawn, 6846)
  155. end
  156. function RivervaleToDocks(NPC, Spawn)
  157. StartAutoMount(Spawn, 22)
  158. SetMount(Spawn,6846)
  159. end
  160. function RivervaleToGoblin(NPC, Spawn)
  161. StartAutoMount(Spawn, 41)
  162. SetMount(Spawn, 6846)
  163. end
  164. function RivervaleToGuard(NPC, Spawn)
  165. StartAutoMount(Spawn, 23)
  166. SetMount(Spawn, 6846)
  167. end
  168. function RivervaleToGrove(NPC, Spawn)
  169. StartAutoMount(Spawn, 40)
  170. SetMount(Spawn, 6846)
  171. end
  172. function DocksToFoothills(NPC, Spawn)
  173. StartAutoMount(Spawn, 43)
  174. SetMount(Spawn, 6846)
  175. end
  176. function DocksToChomper(NPC, Spawn)
  177. StartAutoMount(Spawn, 42)
  178. SetMount(Spawn, 6846)
  179. end
  180. function DocksToGoblin(NPC, Spawn)
  181. StartAutoMount(Spawn, 45)
  182. SetMount(Spawn, 6846)
  183. end
  184. function DocksToGuard(NPC, Spawn)
  185. StartAutoMount(Spawn, 21)
  186. SetMount(Spawn, 6846)
  187. end
  188. function DocksToGrove(NPC, Spawn)
  189. StartAutoMount(Spawn, 44)
  190. SetMount(Spawn, 6846)
  191. end
  192. function DocksToRivervale(NPC, Spawn)
  193. StartAutoMount(Spawn, 20)
  194. SetMount(Spawn, 6846)
  195. end
  196. function GuardToFoothills(NPC, Spawn)
  197. StartAutoMount(Spawn, 56)
  198. SetMount(Spawn, 6846)
  199. end
  200. function GuardToChomper(NPC, Spawn)
  201. StartAutoMount(Spawn, 55)
  202. SetMount(Spawn, 6846)
  203. end
  204. function GuardToDocks(NPC, Spawn)
  205. StartAutoMount(Spawn, 25)
  206. SetMount(Spawn, 6846)
  207. end
  208. function GuardToGoblin(NPC, Spawn)
  209. StartAutoMount(Spawn, 26)
  210. SetMount(Spawn, 6846)
  211. end
  212. function GuardToGrove(NPC, Spawn)
  213. StartAutoMount(Spawn, 57)
  214. SetMount(Spawn, 6846)
  215. end
  216. function GuardToRivervale(NPC, Spawn)
  217. StartAutoMount(Spawn, 27)
  218. SetMount(Spawn, 6846)
  219. end
  220. function ChomperToFoothills(NPC, Spawn)
  221. StartAutoMount(Spawn, 35)
  222. SetMount(Spawn, 6846)
  223. end
  224. function ChomperToDocks(NPC, Spawn)
  225. StartAutoMount(Spawn, 50)
  226. SetMount(Spawn, 6846)
  227. end
  228. function ChomperToGoblin(NPC, Spawn)
  229. StartAutoMount(Spawn, 49)
  230. SetMount(Spawn, 6846)
  231. end
  232. function ChomperToGuard(NPC, Spawn)
  233. StartAutoMount(Spawn, 37)
  234. SetMount(Spawn, 6846)
  235. end
  236. function ChomperToGrove(NPC, Spawn)
  237. StartAutoMount(Spawn, 36)
  238. SetMount(Spawn, 6846)
  239. end
  240. function ChomperToRivervale(NPC, Spawn)
  241. StartAutoMount(Spawn, 38)
  242. SetMount(Spawn, 6846)
  243. end