9
3

asokokartamer.lua 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. --[[
  2. Script Name : SpawnScripts/KylongPlains/asokokartamer.lua
  3. Script Purpose : a stable master (2620004)
  4. Script Author : Neatz09
  5. Script Date : 4/15/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) == 612480 then
  23. --Dreg's Landing--
  24. AddConversationOption(con, "To Fens of Nathsar", "DregsToFens")
  25. AddConversationOption(con, "To Highton.", "DregsToHighton")
  26. AddConversationOption(con, "To Jarsath Wastes.", "DregsToJarsath")
  27. AddConversationOption(con, "To Kunzar's Edge.", "DregsToKunzar")
  28. AddConversationOption(con, "To Teren's Grasp.", "DregsToTeren")
  29. elseif GetSpawnLocationID(NPC) == 612479 then
  30. --Kunzar's Edge--
  31. AddConversationOption(con, "To Dreg's Landing.", "KunzarToDregs")
  32. AddConversationOption(con, "To Fens of Nathsar.", "KunzarToFens")
  33. AddConversationOption(con, "To Highton.", "KunzarToHighton")
  34. AddConversationOption(con, "To Jarsath Wastes.", "KunzarToJarsath")
  35. AddConversationOption(con, "To Teren's Grasp.", "KunzarToTeren")
  36. elseif GetSpawnLocationID(NPC) == 365542 then
  37. --Fens of Nathsar--
  38. AddConversationOption(con, "To Dreg's Landing.", "FensToDregs")
  39. AddConversationOption(con, "To Highton.", "FensToHighton")
  40. AddConversationOption(con, "To Jarsath Wastes.", "FensToJarsath")
  41. AddConversationOption(con, "To Kunzar's Edge.", "FensToKunzar")
  42. AddConversationOption(con, "To Teren's Grasp.", "FensToTeren")
  43. elseif GetSpawnLocationID(NPC) == 365543 then
  44. --Teren's Grasp(possibly missing Kunzar Edge Path)--
  45. AddConversationOption(con, "To Dreg's Landing.", "TerenToDregs")
  46. AddConversationOption(con, "To Fens of Nathsar.", "TerenToFens")
  47. AddConversationOption(con, "To Highton.", "TerenToHighton")
  48. AddConversationOption(con, "To Jarsath Wastes.", "TerenToJarsath")
  49. elseif GetSpawnLocationID(NPC) == 612481 then
  50. --Highton--
  51. AddConversationOption(con, "To Dreg's Landing.", "HightonToDregs")
  52. AddConversationOption(con, "To Fens of Nathsar.", "HightonToFens")
  53. AddConversationOption(con, "To Kunzar's Edge.", "HightonToKunzar")
  54. AddConversationOption(con, "To Jarsath Wastes.", "HightonToJarsath")
  55. AddConversationOption(con, "To Teren's Grap.", "HightonToTeren")
  56. elseif GetSpawnLocationID(NPC) == 612482 then
  57. --Jarsath Wastes--
  58. AddConversationOption(con, "To Dreg's Landing.", "JarsathToDregs")
  59. AddConversationOption(con, "To Fens of Nathsar.", "JarsathToFens")
  60. AddConversationOption(con, "To Highton.", "JarsathToHighton")
  61. AddConversationOption(con, "To Kunzar's Edge.", "JarsathToKunzar")
  62. AddConversationOption(con, "To Teren's Grasp.", "JarsathToTeren")
  63. else
  64. PlayFlavor(NPC, "", "Not implemented yet!", "cry", 0, 0, Spawn)
  65. end
  66. AddConversationOption(con, "Nowhere.")
  67. StartConversation(con, NPC, Spawn, "Where to?")
  68. end
  69. function DregsToFens(NPC, Spawn)
  70. StartAutoMount(Spawn, 308)
  71. SetMount(Spawn, 7253)
  72. end
  73. function DregsToHighton(NPC, Spawn)
  74. StartAutoMount(Spawn, 310)
  75. SetMount(Spawn, 7253)
  76. end
  77. function DregsToJarsath(NPC, Spawn)
  78. StartAutoMount(Spawn, 328)
  79. SetMount(Spawn, 7253)
  80. end
  81. function DregsToKunzar(NPC, Spawn)
  82. StartAutoMount(Spawn, 309)
  83. SetMount(Spawn, 7253)
  84. end
  85. function DregsToTeren(NPC, Spawn)
  86. StartAutoMount(Spawn, 307)
  87. SetMount(Spawn, 7253)
  88. end
  89. function KunzarToDregs(NPC, Spawn)
  90. StartAutoMount(Spawn, 311)
  91. SetMount(Spawn, 7253)
  92. end
  93. function KunzarToFens(NPC, Spawn)
  94. StartAutoMount(Spawn, 312)
  95. SetMount(Spawn, 7253)
  96. end
  97. function KunzarToHighton(NPC, Spawn)
  98. StartAutoMount(Spawn, 337)
  99. SetMount(Spawn, 7253)
  100. end
  101. function KunzarToJarsath(NPC, Spawn)
  102. StartAutoMount(Spawn, 336)
  103. SetMount(Spawn, 7253)
  104. end
  105. function KunzarToTerens(NPC, Spawn)
  106. StartAutoMount(Spawn, 313)
  107. SetMount(Spawn, 7253)
  108. end
  109. function TerenToDregs(NPC, Spawn)
  110. StartAutoMount(Spawn, 317)
  111. SetMount(Spawn, 7253)
  112. end
  113. function TerenToFens(NPC, Spawn)
  114. StartAutoMount(Spawn, 318)
  115. SetMount(Spawn, 7253)
  116. end
  117. function TerenToHighton(NPC, Spawn)
  118. StartAutoMount(Spawn, 319)
  119. SetMount(Spawn, 7253)
  120. end
  121. function TerenToJarsath(NPC, Spawn)
  122. StartAutoMount(Spawn, 320)
  123. SetMount(Spawn, 7253)
  124. end
  125. function HightonToDregs(NPC, Spawn)
  126. StartAutoMount(Spawn, 323)
  127. SetMount(Spawn, 7253)
  128. end
  129. function HightonToFens(NPC, Spawn)
  130. StartAutoMount(Spawn, 331)
  131. SetMount(Spawn, 7253)
  132. end
  133. function HightonToJarsath(NPC, Spawn)
  134. StartAutoMount(Spawn, 322)
  135. SetMount(Spawn, 7253)
  136. end
  137. function HightonToKunzar(NPC, Spawn)
  138. StartAutoMount(Spawn, 332)
  139. SetMount(Spawn, 7253)
  140. end
  141. function HightonToTeren(NPC, Spawn)
  142. StartAutoMount(Spawn, 321)
  143. SetMount(Spawn, 7253)
  144. end
  145. function JarsathToDregs(NPC, Spawn)
  146. StartAutoMount(Spawn, 335)
  147. SetMount(Spawn, 7253)
  148. end
  149. function JarsathToFens(NPC, Spawn)
  150. StartAutoMount(Spawn, 333)
  151. SetMount(Spawn,7253)
  152. end
  153. function JarsathToHighton(NPC, Spawn)
  154. StartAutoMount(Spawn, 324)
  155. SetMount(Spawn, 7253)
  156. end
  157. function JarsathToKunzar(NPC, Spawn)
  158. StartAutoMount(Spawn, 334)
  159. SetMount(Spawn, 7253)
  160. end
  161. function JarsathToTerens(NPC, Spawn)
  162. StartAutoMount(Spawn, 325)
  163. SetMount(Spawn, 7253)
  164. end
  165. function FensToDregs(NPC, Spawn)
  166. StartAutoMount(Spawn, 315)
  167. SetMount(Spawn, 7253)
  168. end
  169. function FensToHighton(NPC, Spawn)
  170. StartAutoMount(Spawn, 330)
  171. SetMount(Spawn,7253)
  172. end
  173. function FensToJarsath(NPC, Spawn)
  174. StartAutoMount(Spawn, 329)
  175. SetMount(Spawn, 7253)
  176. end
  177. function FensToKunzar(NPC, Spawn)
  178. StartAutoMount(Spawn, 316)
  179. SetMount(Spawn, 7253)
  180. end
  181. function FensToTeren(NPC, Spawn)
  182. StartAutoMount(Spawn, 314)
  183. SetMount(Spawn, 7253)
  184. end