9
3

asokokartamer.lua 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  1. --[[
  2. Script Name : SpawnScripts/JarsathWastes/asokokartamer.lua
  3. Script Purpose : a sokokar Tamer (2650089)
  4. Script Author : Neatz09
  5. Script Date : 4/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) == 587011 then
  23. --Danak Shipyards--
  24. AddConversationOption(con, "To Howling Stones.", "DanakToHowl")
  25. AddConversationOption(con, "To Sel'Nok Camp.", "DanakToSel")
  26. AddConversationOption(con, "To Skleross Encampment.", "DanakToRoss")
  27. AddConversationOption(con, "To Skyfire Mountains.", "DanakToSky")
  28. AddConversationOption(con, "To Stonehoof Badlands.", "DanakToBadland")
  29. AddConversationOption(con, "To Temple of Red Lord.", "DanakToRed")
  30. AddConversationOption(con, "To Temple of White Lady.", "DanakToWhite")
  31. elseif GetSpawnLocationID(NPC) == 587012 then
  32. --Howling Stones--
  33. AddConversationOption(con, "To Danak Shipyards", "HowlToDanak")
  34. AddConversationOption(con, "To Sel'Nok Camp.", "HowlToSel")
  35. AddConversationOption(con, "To Skleross Encampment.", "HowlToRoss")
  36. AddConversationOption(con, "To Skyfire Mountains.", "HowlToSky")
  37. AddConversationOption(con, "To Stonehoof Badlands.", "HowlToBadland")
  38. AddConversationOption(con, "To Temple of Red Lord.", "HowlToRed")
  39. AddConversationOption(con, "To Temple of White Lady.", "HowlToWhite")
  40. elseif GetSpawnLocationID(NPC) == 587007 then
  41. --Sel'Nok Camp--
  42. AddConversationOption(con, "To Danak Shipyards", "SelToDanak")
  43. AddConversationOption(con, "To Howling Stones.", "SelToHowl")
  44. AddConversationOption(con, "To Skleross Encampment.", "SelToRoss")
  45. AddConversationOption(con, "To Skyfire Mountains.", "SelToSky")
  46. AddConversationOption(con, "To Stonehoof Badlands.", "SelToBadland")
  47. AddConversationOption(con, "To Temple of Red Lord.", "SelToRed")
  48. AddConversationOption(con, "To Temple of White Lady.", "SelToWhite")
  49. elseif GetSpawnLocationID(NPC) == 587010 then
  50. --Skleross Encampment--
  51. AddConversationOption(con, "To Danak Shipyards", "RossToDanak")
  52. AddConversationOption(con, "To Howling Stones.", "RossToHowl")
  53. AddConversationOption(con, "To Sel'Nok Camp.", "RossToSel")
  54. AddConversationOption(con, "To Skyfire Mountains.", "RossToSky")
  55. AddConversationOption(con, "To Stonehoof Badlands.", "RossToBadland")
  56. AddConversationOption(con, "To Temple of Red Lord.", "RossToRed")
  57. AddConversationOption(con, "To Temple of White Lady.", "RossToWhite")
  58. elseif GetSpawnLocationID(NPC) == 587009 then
  59. --Skyfire Mountains--
  60. AddConversationOption(con, "To Danak Shipyards", "SkyToDanak")
  61. AddConversationOption(con, "To Howling Stones.", "SkyToHowl")
  62. AddConversationOption(con, "To Sel'Nok Camp.", "SkyToSel")
  63. AddConversationOption(con, "To Skleross Encampment.", "SkyToRoss")
  64. AddConversationOption(con, "To Stonehoof Badlands.", "SkyToBadland")
  65. AddConversationOption(con, "To Temple of Red Lord.", "SkyToRed")
  66. AddConversationOption(con, "To Temple of White Lady.", "SkyToWhite")
  67. elseif GetSpawnLocationID(NPC) == 587008 then
  68. --Stonehoof Badlands--
  69. AddConversationOption(con, "To Danak Shipyards", "BadlandToDanak")
  70. AddConversationOption(con, "To Howling Stones.", "BadlandToHowl")
  71. AddConversationOption(con, "To Sel'Nok Camp.", "BadlandToSel")
  72. AddConversationOption(con, "To Skleross Encampment.", "BadlandToRoss")
  73. AddConversationOption(con, "To Skyfire Mountains.", "BadlandToSky")
  74. AddConversationOption(con, "To Temple of Red Lord.", "BadlandToRed")
  75. AddConversationOption(con, "To Temple of White Lady.", "BadlandToWhite")
  76. elseif GetSpawnLocationID(NPC) == 587005 then
  77. --Temple of Red Lord--
  78. AddConversationOption(con, "To Danak Shipyards", "RedToDanak")
  79. AddConversationOption(con, "To Howling Stones.", "RedToHowl")
  80. AddConversationOption(con, "To Sel'Nok Camp.", "RedToSel")
  81. AddConversationOption(con, "To Skleross Encampment.", "RedToRoss")
  82. AddConversationOption(con, "To Skyfire Mountains.", "RedToSky")
  83. AddConversationOption(con, "To Stonehoof Badlands.", "RedToBadland")
  84. AddConversationOption(con, "To Temple of White Lady.", "RedToWhite")
  85. elseif GetSpawnLocationID(NPC) == 587006 then
  86. --Temple of Red Lord--
  87. AddConversationOption(con, "To Danak Shipyards", "WhiteToDanak")
  88. AddConversationOption(con, "To Howling Stones.", "WhiteToHowl")
  89. AddConversationOption(con, "To Sel'Nok Camp.", "WhiteToSel")
  90. AddConversationOption(con, "To Skleross Encampment.", "WhiteToRoss")
  91. AddConversationOption(con, "To Skyfire Mountains.", "WhiteToSky")
  92. AddConversationOption(con, "To Stonehoof Badlands.", "WhiteToBadland")
  93. AddConversationOption(con, "To Temple of Red Lord.", "WhiteToRed")
  94. else
  95. PlayFlavor(NPC, "", "Not implemented yet!", "cry", 0, 0, Spawn)
  96. end
  97. AddConversationOption(con, "Nowhere.")
  98. StartConversation(con, NPC, Spawn, "Where to?")
  99. end
  100. function DanakToHowl(NPC, Spawn)
  101. StartAutoMount(Spawn, 345)
  102. SetMount(Spawn, 7253)
  103. end
  104. function DanakToSel(NPC, Spawn)
  105. StartAutoMount(Spawn, 373)
  106. SetMount(Spawn, 7253)
  107. end
  108. function DanakToRoss(NPC, Spawn)
  109. StartAutoMount(Spawn, 376)
  110. SetMount(Spawn, 7253)
  111. end
  112. function DanakToBadland(NPC, Spawn)
  113. StartAutoMount(Spawn, 372)
  114. SetMount(Spawn, 7253)
  115. end
  116. function DanakToRed(NPC, Spawn)
  117. StartAutoMount(Spawn, 374)
  118. SetMount(Spawn, 7253)
  119. end
  120. function DanakToWhite(NPC, Spawn)
  121. StartAutoMount(Spawn, 375)
  122. SetMount(Spawn, 7253)
  123. end
  124. function HowlToDanak(NPC, Spawn)
  125. StartAutoMount(Spawn, 341)
  126. SetMount(Spawn, 7253)
  127. end
  128. function HowlToSel(NPC, Spawn)
  129. StartAutoMount(Spawn, 377)
  130. SetMount(Spawn, 7253)
  131. end
  132. function HowlToRoss(NPC, Spawn)
  133. StartAutoMount(Spawn, 342)
  134. SetMount(Spawn, 7253)
  135. end
  136. function HowlToSky(NPC, Spawn)
  137. StartAutoMount(Spawn, 344)
  138. SetMount(Spawn, 7253)
  139. end
  140. function HowlToBadland(NPC, Spawn)
  141. StartAutoMount(Spawn, 343)
  142. SetMount(Spawn, 7253)
  143. end
  144. function HowlToRed(NPC, Spawn)
  145. StartAutoMount(Spawn, 378)
  146. SetMount(Spawn, 7253)
  147. end
  148. function HowlToWhite(NPC, Spawn)
  149. StartAutoMount(Spawn, 379)
  150. SetMount(Spawn, 7253)
  151. end
  152. function SelToDanak(NPC, Spawn)
  153. StartAutoMount(Spawn, 391)
  154. SetMount(Spawn, 7253)
  155. end
  156. function SelToHowl(NPC, Spawn)
  157. StartAutoMount(Spawn, 389)
  158. SetMount(Spawn, 7253)
  159. end
  160. function SelToRoss(NPC, Spawn)
  161. StartAutoMount(Spawn, 392)
  162. SetMount(Spawn, 7253)
  163. end
  164. function SelToBadland(NPC, Spawn)
  165. StartAutoMount(Spawn, 388)
  166. SetMount(Spawn, 7253)
  167. end
  168. function SelToRed(NPC, Spawn)
  169. StartAutoMount(Spawn, 360)
  170. SetMount(Spawn, 7253)
  171. end
  172. function SelToWhite(NPC, Spawn)
  173. StartAutoMount(Spawn, 390)
  174. SetMount(Spawn, 7253)
  175. end
  176. function RossToDanak(NPC, Spawn)
  177. StartAutoMount(Spawn, 396)
  178. SetMount(Spawn, 7253)
  179. end
  180. function RossToHowl(NPC, Spawn)
  181. StartAutoMount(Spawn, 362)
  182. SetMount(Spawn,7253)
  183. end
  184. function RossToSel(NPC, Spawn)
  185. StartAutoMount(Spawn, 393)
  186. SetMount(Spawn, 7253)
  187. end
  188. function RossToSky(NPC, Spawn)
  189. StartAutoMount(Spawn, 364)
  190. SetMount(Spawn, 7253)
  191. end
  192. function RossToBadland(NPC, Spawn)
  193. StartAutoMount(Spawn, 363)
  194. SetMount(Spawn, 7253)
  195. end
  196. function RossToRed(NPC, Spawn)
  197. StartAutoMount(Spawn, 394)
  198. SetMount(Spawn, 7253)
  199. end
  200. function RossToWhite(NPC, Spawn)
  201. StartAutoMount(Spawn, 395)
  202. SetMount(Spawn,7253)
  203. end
  204. function SkyToDanak(NPC, Spawn)
  205. StartAutoMount(Spawn, 350)
  206. SetMount(Spawn, 7253)
  207. end
  208. function SkyToHowl(NPC, Spawn)
  209. StartAutoMount(Spawn, 354)
  210. SetMount(Spawn, 7253)
  211. end
  212. function SkyToSel(NPC, Spawn)
  213. StartAutoMount(Spawn, 351)
  214. SetMount(Spawn, 7253)
  215. end
  216. function SkyToRoss(NPC, Spawn)
  217. StartAutoMount(Spawn, 352)
  218. SetMount(Spawn, 7253)
  219. end
  220. function SkyToBadland(NPC, Spawn)
  221. StartAutoMount(Spawn, 348)
  222. SetMount(Spawn, 7253)
  223. end
  224. function SkyToRed(NPC, Spawn)
  225. StartAutoMount(Spawn, 349)
  226. SetMount(Spawn, 7253)
  227. end
  228. function SkyToWhite(NPC, Spawn)
  229. StartAutoMount(Spawn, 353)
  230. SetMount(Spawn, 7253)
  231. end
  232. function BadlandToDanak(NPC, Spawn)
  233. StartAutoMount(Spawn, 383)
  234. SetMount(Spawn, 7253)
  235. end
  236. function BadlandToHowl(NPC, Spawn)
  237. StartAutoMount(Spawn, 338)
  238. SetMount(Spawn, 7253)
  239. end
  240. function BadlandToSel(NPC, Spawn)
  241. StartAutoMount(Spawn, 380)
  242. SetMount(Spawn, 7253)
  243. end
  244. function BadlandToRoss(NPC, Spawn)
  245. StartAutoMount(Spawn, 340)
  246. SetMount(Spawn, 7253)
  247. end
  248. function BadlandToSky(NPC, Spawn)
  249. StartAutoMount(Spawn, 339)
  250. SetMount(Spawn, 7253)
  251. end
  252. function BadlandToRed(NPC, Spawn)
  253. StartAutoMount(Spawn, 381)
  254. SetMount(Spawn, 7253)
  255. end
  256. function BadlandToWhite(NPC, Spawn)
  257. StartAutoMount(Spawn, 382)
  258. SetMount(Spawn, 7253)
  259. end
  260. function RedToDanak(NPC, Spawn)
  261. StartAutoMount(Spawn, 386)
  262. SetMount(Spawn, 7253)
  263. end
  264. function RedToHowl(NPC, Spawn)
  265. StartAutoMount(Spawn, 385)
  266. SetMount(Spawn, 7253)
  267. end
  268. function RedToSel(NPC, Spawn)
  269. StartAutoMount(Spawn, 355)
  270. SetMount(Spawn, 7253)
  271. end
  272. function RedToRoss(NPC, Spawn)
  273. StartAutoMount(Spawn, 387)
  274. SetMount(Spawn, 7253)
  275. end
  276. function RedToSky(NPC, Spawn)
  277. StartAutoMount(Spawn, 356)
  278. SetMount(Spawn, 7253)
  279. end
  280. function RedToBadland(NPC, Spawn)
  281. StartAutoMount(Spawn, 384)
  282. SetMount(Spawn, 7253)
  283. end
  284. function RedToWhite(NPC, Spawn)
  285. StartAutoMount(Spawn, 357)
  286. SetMount(Spawn, 7253)
  287. end
  288. function WhiteToDanak(NPC, Spawn)
  289. StartAutoMount(Spawn, 368)
  290. SetMount(Spawn, 7253)
  291. end
  292. function WhiteToHowl(NPC, Spawn)
  293. StartAutoMount(Spawn, 369)
  294. SetMount(Spawn, 7253)
  295. end
  296. function WhiteToSel(NPC, Spawn)
  297. StartAutoMount(Spawn, 370)
  298. SetMount(Spawn, 7253)
  299. end
  300. function WhiteToRoss(NPC, Spawn)
  301. StartAutoMount(Spawn, 371)
  302. SetMount(Spawn, 7253)
  303. end
  304. function WhiteToSky(NPC, Spawn)
  305. StartAutoMount(Spawn, 359)
  306. SetMount(Spawn, 7253)
  307. end
  308. function WhiteToBadland(NPC, Spawn)
  309. StartAutoMount(Spawn, 367)
  310. SetMount(Spawn, 7253)
  311. end
  312. function WhiteToRed(NPC, Spawn)
  313. StartAutoMount(Spawn, 358)
  314. SetMount(Spawn, 7253)
  315. end