9
3

flightpathisle01a.lua 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. --[[
  2. Script Name : SpawnScripts/BarrenSky/flightpathisle01a.lua
  3. Script Purpose : BarrenSky Flightpaths
  4. Script Author : Neatz09
  5. Script Date : 10/24/2020
  6. Script Notes :
  7. ]]--
  8. function respawn(NPC)
  9. spawn(NPC)
  10. end
  11. function casted_on(NPC, Spawn, Message)
  12. if Message == "Travel the Skies" then
  13. conversation = CreateConversation()
  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. end
  19. function dlg_1_1(NPC, Spawn)
  20. local con = CreateConversation()
  21. if GetSpawnLocationID(NPC) == 622436 then
  22. --Prisoner's Isle--
  23. AddConversationOption(con, "To Isle of Awakening.", "PrisonToAwakening")
  24. AddConversationOption(con, "To Isle of Guardians.", "PrisonToGuard")
  25. AddConversationOption(con, "To Isle of Desolation.", "PrisonToDesolation")
  26. elseif GetSpawnLocationID(NPC) == 622428 then
  27. --Blackwind Isle--
  28. AddConversationOption(con, "To Isle of Awakening.", "BlackToAwakening")
  29. AddConversationOption(con, "To Isle of Discord.", "BlackToDiscord")
  30. AddConversationOption(con, "To Whisperwind Isle.", "BlackToWhisper")
  31. elseif GetSpawnLocationID(NPC) == 622433 then
  32. --Isle of Awakening--
  33. AddConversationOption(con, "To Prisoner's Isle.", "AwakeningToPrison")
  34. AddConversationOption(con, "To Blackwind Isle.", "AwakeningToBlack")
  35. AddConversationOption(con, "To Isle of Eaglewatch.", "AwakeningToEagle")
  36. AddConversationOption(con, "To Whisperwind Isle.", "AwakeningToWhisper")
  37. elseif GetSpawnLocationID(NPC) == 622437 then
  38. --Isle of the Guardians--
  39. AddConversationOption(con, "To Prisoner's Isle.", "GuardToPrison")
  40. AddConversationOption(con, "To Isle of Desolation.", "GuardToDesolation")
  41. elseif GetSpawnLocationID(NPC) == 622435 then
  42. --Isle of Desolation--
  43. AddConversationOption(con, "To Prisoner's Isle.", "DesolationToPrison")
  44. AddConversationOption(con, "To Isle of the Guardians.", "DesolationToGuard")
  45. AddConversationOption(con, "To Isle of the Watchers.", "DesolationToWatchers")
  46. AddConversationOption(con, "To Strifewind Isle.", "DesolationToStrife")
  47. AddConversationOption(con, "To Whisperwind Isle.", "DesolationToWhisper")
  48. elseif GetSpawnLocationID(NPC) == 622434 then
  49. --Isle of the Watchers--
  50. AddConversationOption(con, "To Isle of Desolation.", "WatchersToDesolation")
  51. AddConversationOption(con, "To Isle of Aversion.", "WatchersToAversion")
  52. elseif GetSpawnLocationID(NPC) == 622429 then
  53. --Isle of Aversion--
  54. AddConversationOption(con, "To Whisperwind Isle.", "AversionToWhisper")
  55. AddConversationOption(con, "To Isle of the Watchers.", "AversionToWatchers")
  56. elseif GetSpawnLocationID(NPC) == 622427 then
  57. --Whisperwind Isle--
  58. AddConversationOption(con, "To Strifewind Isle.", "WhisperToStrife")
  59. AddConversationOption(con, "To Isle of Aversion.", "WhisperToAversion")
  60. AddConversationOption(con, "To Isle of Desolation.", "WhisperToDesolation")
  61. AddConversationOption(con, "To Isle of Discord.", "WhisperToDiscord")
  62. AddConversationOption(con, "To Cloudmist Isle.", "WhisperToCloud")
  63. AddConversationOption(con, "To Blackwind Isle.", "WhisperToBlack")
  64. AddConversationOption(con, "To Isle of Awakening.", "WhisperToAwakening")
  65. elseif GetSpawnLocationID(NPC) == 622426 then
  66. --Cloudmist Isle--
  67. AddConversationOption(con, "To Whisperwind Isle.", "CloudToWhisper")
  68. AddConversationOption(con, "To Isle of Eaglewatch.", "CloudToEagle")
  69. elseif GetSpawnLocationID(NPC) == 622430 then
  70. --Isle of Eaglewatch--
  71. AddConversationOption(con, "To Cloudmist Isle.", "EagleToCloud")
  72. AddConversationOption(con, "To Isle of Awakening.", "EagleToAwakening")
  73. elseif GetSpawnLocationID(NPC) == 622431 then
  74. --Isle of Discord--
  75. AddConversationOption(con, "To Blackwind Isle.", "DiscordToBlack")
  76. AddConversationOption(con, "To Whisperwind Isle.", "DiscordToWhisper")
  77. AddConversationOption(con, "To Strifewind Isle.", "DiscordToStrife")
  78. elseif GetSpawnLocationID(NPC) == 622432 then
  79. --Strifewind Isle--
  80. AddConversationOption(con, "To Isle of Desolation.", "StrifeToDesolation")
  81. AddConversationOption(con, "To Isle of Discord.", "StrifeToDiscord")
  82. AddConversationOption(con, "To Whisperwind Isle.", "StrifeToWhisper")
  83. else
  84. Say(NPC, Spawn, "Not Implemented.")
  85. end
  86. AddConversationOption(con, "Nowhere.")
  87. StartConversation(con, NPC, Spawn, "Where to?")
  88. end
  89. function PrisonToAwakening(NPC, Spawn)
  90. StartAutoMount(Spawn, 800)
  91. SetMount(Spawn, 2306)
  92. SpawnSet(Spawn, "visual_state", 11172)
  93. end
  94. function PrisonToGuard(NPC, Spawn)
  95. StartAutoMount(Spawn, 799)
  96. SetMount(Spawn, 2306)
  97. SpawnSet(Spawn, "visual_state", 11172)
  98. end
  99. function PrisonToDesolation(NPC, Spawn)
  100. StartAutoMount(Spawn, 798)
  101. SetMount(Spawn, 2306)
  102. SpawnSet(Spawn, "visual_state", 11172)
  103. end
  104. function BlackToAwakening(NPC, Spawn)
  105. StartAutoMount(Spawn, 795)
  106. SetMount(Spawn, 2306)
  107. SpawnSet(Spawn, "visual_state", 11172)
  108. end
  109. function BlackToDiscord(NPC, Spawn)
  110. StartAutoMount(Spawn, 793)
  111. SetMount(Spawn, 2306)
  112. SpawnSet(Spawn, "visual_state", 11172)
  113. end
  114. function BlackToWhisper(NPC, Spawn)
  115. StartAutoMount(Spawn, 794)
  116. SetMount(Spawn, 2306)
  117. SpawnSet(Spawn, "visual_state", 11172)
  118. end
  119. function AwakeningToPrison(NPC, Spawn)
  120. StartAutoMount(Spawn, 804)
  121. SetMount(Spawn, 2306)
  122. SpawnSet(Spawn, "visual_state", 11172)
  123. end
  124. function AwakeningToBlack(NPC, Spawn)
  125. StartAutoMount(Spawn, 802)
  126. SetMount(Spawn, 2306)
  127. SpawnSet(Spawn, "visual_state", 11172)
  128. end
  129. function AwakeningToEagle(NPC, Spawn)
  130. StartAutoMount(Spawn, 803)
  131. SetMount(Spawn, 2306)
  132. SpawnSet(Spawn, "visual_state", 11172)
  133. end
  134. function AwakeningToWhisper(NPC, Spawn)
  135. StartAutoMount(Spawn, 801)
  136. SetMount(Spawn, 2306)
  137. SpawnSet(Spawn, "visual_state", 11172)
  138. end
  139. function GuardToPrison(NPC, Spawn)
  140. StartAutoMount(Spawn, 773)
  141. SetMount(Spawn, 2306)
  142. SpawnSet(Spawn, "visual_state", 11172)
  143. end
  144. function GuardToDesolation(NPC, Spawn)
  145. StartAutoMount(Spawn, 772)
  146. SetMount(Spawn, 2306)
  147. SpawnSet(Spawn, "visual_state", 11172)
  148. end
  149. function DesolationToPrison(NPC, Spawn)
  150. StartAutoMount(Spawn, 771)
  151. SetMount(Spawn, 2306)
  152. SpawnSet(Spawn, "visual_state", 11172)
  153. end
  154. function DesolationToGuard(NPC, Spawn)
  155. StartAutoMount(Spawn, 767)
  156. SetMount(Spawn, 2306)
  157. SpawnSet(Spawn, "visual_state", 11172)
  158. end
  159. function DesolationToWatchers(NPC, Spawn)
  160. StartAutoMount(Spawn, 768)
  161. SetMount(Spawn, 2306)
  162. SpawnSet(Spawn, "visual_state", 11172)
  163. end
  164. function DesolationToStrife(NPC, Spawn)
  165. StartAutoMount(Spawn, 769)
  166. SetMount(Spawn, 2306)
  167. SpawnSet(Spawn, "visual_state", 11172)
  168. end
  169. function DesolationToWhisper(NPC, Spawn)
  170. StartAutoMount(Spawn, 770)
  171. SetMount(Spawn, 2306)
  172. SpawnSet(Spawn, "visual_state", 11172)
  173. end
  174. function WatchersToDesolation(NPC, Spawn)
  175. StartAutoMount(Spawn, 774)
  176. SetMount(Spawn, 2306)
  177. SpawnSet(Spawn, "visual_state", 11172)
  178. end
  179. function WatchersToAversion(NPC, Spawn)
  180. StartAutoMount(Spawn, 775)
  181. SetMount(Spawn, 2306)
  182. SpawnSet(Spawn, "visual_state", 11172)
  183. end
  184. function AversionToWhisper(NPC, Spawn)
  185. StartAutoMount(Spawn, 783)
  186. SetMount(Spawn, 2306)
  187. SpawnSet(Spawn, "visual_state", 11172)
  188. end
  189. function AversionToWatchers(NPC, Spawn)
  190. StartAutoMount(Spawn, 782)
  191. SetMount(Spawn, 2306)
  192. SpawnSet(Spawn, "visual_state", 11172)
  193. end
  194. function WhisperToStrife(NPC, Spawn)
  195. StartAutoMount(Spawn, 785)
  196. SetMount(Spawn, 2306)
  197. SpawnSet(Spawn, "visual_state", 11172)
  198. end
  199. function WhisperToAversion(NPC, Spawn)
  200. StartAutoMount(Spawn, 787)
  201. SetMount(Spawn, 2306)
  202. SpawnSet(Spawn, "visual_state", 11172)
  203. end
  204. function WhisperToDesolation(NPC, Spawn)
  205. StartAutoMount(Spawn, 784)
  206. SetMount(Spawn, 2306)
  207. SpawnSet(Spawn, "visual_state", 11172)
  208. end
  209. function WhisperToDiscord(NPC, Spawn)
  210. StartAutoMount(Spawn, 786)
  211. SetMount(Spawn, 2306)
  212. SpawnSet(Spawn, "visual_state", 11172)
  213. end
  214. function WhisperToCloud(NPC, Spawn)
  215. StartAutoMount(Spawn, 788)
  216. SetMount(Spawn, 2306)
  217. SpawnSet(Spawn, "visual_state", 11172)
  218. end
  219. function WhisperToBlack(NPC, Spawn)
  220. StartAutoMount(Spawn, 789)
  221. SetMount(Spawn, 2306)
  222. SpawnSet(Spawn, "visual_state", 11172)
  223. end
  224. function WhisperToAwakening(NPC, Spawn)
  225. StartAutoMount(Spawn, 790)
  226. SetMount(Spawn, 2306)
  227. SpawnSet(Spawn, "visual_state", 11172)
  228. end
  229. function CloudToWhisper(NPC, Spawn)
  230. StartAutoMount(Spawn, 791)
  231. SetMount(Spawn, 2306)
  232. SpawnSet(Spawn, "visual_state", 11172)
  233. end
  234. function CloudToEagle(NPC, Spawn)
  235. StartAutoMount(Spawn, 792)
  236. SetMount(Spawn, 2306)
  237. SpawnSet(Spawn, "visual_state", 11172)
  238. end
  239. function EagleToCloud(NPC, Spawn)
  240. StartAutoMount(Spawn, 796)
  241. SetMount(Spawn, 2306)
  242. SpawnSet(Spawn, "visual_state", 11172)
  243. end
  244. function EagleToAwakening(NPC, Spawn)
  245. StartAutoMount(Spawn, 797)
  246. SetMount(Spawn, 2306)
  247. SpawnSet(Spawn, "visual_state", 11172)
  248. end
  249. function DiscordToBlack(NPC, Spawn)
  250. StartAutoMount(Spawn, 781)
  251. SetMount(Spawn, 2306)
  252. SpawnSet(Spawn, "visual_state", 11172)
  253. end
  254. function DiscordToWhisper(NPC, Spawn)
  255. StartAutoMount(Spawn, 780)
  256. SetMount(Spawn, 2306)
  257. SpawnSet(Spawn, "visual_state", 11172)
  258. end
  259. function DiscordToStrife(NPC, Spawn)
  260. StartAutoMount(Spawn, 779)
  261. SetMount(Spawn, 2306)
  262. SpawnSet(Spawn, "visual_state", 11172)
  263. end
  264. function StrifeToDesolation(NPC, Spawn)
  265. StartAutoMount(Spawn, 776)
  266. SetMount(Spawn, 2306)
  267. SpawnSet(Spawn, "visual_state", 11172)
  268. end
  269. function StrifeToDiscord(NPC, Spawn)
  270. StartAutoMount(Spawn, 777)
  271. SetMount(Spawn, 2306)
  272. SpawnSet(Spawn, "visual_state", 11172)
  273. end
  274. function StrifeToWhisper(NPC, Spawn)
  275. StartAutoMount(Spawn, 778)
  276. SetMount(Spawn, 2306)
  277. SpawnSet(Spawn, "visual_state", 11172)
  278. end