asokokartamer.lua 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. --[[
  2. Script Name : SpawnScripts/KunzarJungle/asokokartamer.lua
  3. Script Purpose : a sokokar Tamer (2610001)
  4. Script Author : Neatz09
  5. Script Date : 4/16/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) == 373743 then
  23. --Fallen Village--
  24. AddConversationOption(con, "To Hidden Plunderers", "FallenToHidden")
  25. AddConversationOption(con, "To Jinisk.", "FallenToJinisk")
  26. AddConversationOption(con, "To Murkdweller's River.", "FallenToRiver")
  27. AddConversationOption(con, "To Outer Sebilis.", "FallenToSeb")
  28. AddConversationOption(con, "To Tabernacle of Pain.", "FallenToTab")
  29. elseif GetSpawnLocationID(NPC) == 373741 then
  30. --Hidden Plunderers--
  31. AddConversationOption(con, "To Fallen Village.", "HiddenToFallen")
  32. AddConversationOption(con, "To Jinisk.", "HiddenToJinisk")
  33. AddConversationOption(con, "To Murkdweller's River.", "HiddenToRiver")
  34. AddConversationOption(con, "To Outer Sebilis.", "HiddenToSeb")
  35. AddConversationOption(con, "To Tabernacle of Pain.", "HiddenToTab")
  36. elseif GetSpawnLocationID(NPC) == 373745 then
  37. --Jinisk--
  38. AddConversationOption(con, "To Fallen Village.", "JiniskToFallen")
  39. AddConversationOption(con, "To Hidden Plunderers.", "JiniskToHidden")
  40. AddConversationOption(con, "To Murkdweller's River.", "JiniskToRiver")
  41. AddConversationOption(con, "To Outer Sebilis.", "JiniskToSeb")
  42. AddConversationOption(con, "To Tabernacle of Pain.", "JiniskToTab")
  43. elseif GetSpawnLocationID(NPC) == 373746 then
  44. --Murkdweller's River--
  45. AddConversationOption(con, "To Fallen Village.", "RiverToFallen")
  46. AddConversationOption(con, "To Hidden Plunderers.", "RiverToHidden")
  47. AddConversationOption(con, "To Jinisk.", "RiverToJinisk")
  48. AddConversationOption(con, "To Outer Sebilis", "RiverToSeb")
  49. AddConversationOption(con, "To Tabernacle of Pain", "RiverToTab")
  50. elseif GetSpawnLocationID(NPC) == 373742 then
  51. --Outer Sebilis--
  52. AddConversationOption(con, "To Fallen Village.", "SebToFallen")
  53. AddConversationOption(con, "To Hidden Plunderers.", "SebToHidden")
  54. AddConversationOption(con, "To Jinisk.", "SebToJinisk")
  55. AddConversationOption(con, "To Murkdweller's River.", "SebToRiver")
  56. AddConversationOption(con, "To Tabernacle of Pain.", "SebToTab")
  57. elseif GetSpawnLocationID(NPC) == 373744 then
  58. --Tabernacle of Pain--
  59. AddConversationOption(con, "To Fallen Village.", "TabToFallen")
  60. AddConversationOption(con, "To Hidden Plunderers.", "TabToHidden")
  61. AddConversationOption(con, "To Jinisk.", "TabToJinisk")
  62. AddConversationOption(con, "To Murkdweller's River.", "TabToRiver")
  63. AddConversationOption(con, "To Outer Sebilis.", "TabToSeb")
  64. else
  65. PlayFlavor(NPC, "", "Not implemented yet!", "cry", 0, 0, Spawn)
  66. end
  67. AddConversationOption(con, "Nowhere.")
  68. StartConversation(con, NPC, Spawn, "Where to?")
  69. end
  70. function FallenToHidden(NPC, Spawn)
  71. StartAutoMount(Spawn, 910)
  72. SetMount(Spawn, 7253)
  73. end
  74. function FallenToJinisk(NPC, Spawn)
  75. StartAutoMount(Spawn, 928)
  76. SetMount(Spawn, 7253)
  77. end
  78. function FallenToRiver(NPC, Spawn)
  79. StartAutoMount(Spawn, 929)
  80. SetMount(Spawn, 7253)
  81. end
  82. function FallenToSeb(NPC, Spawn)
  83. StartAutoMount(Spawn, 911)
  84. SetMount(Spawn, 7253)
  85. end
  86. function FallenToTab(NPC, Spawn)
  87. StartAutoMount(Spawn, 912)
  88. SetMount(Spawn, 7253)
  89. end
  90. function HiddenToFallen(NPC, Spawn)
  91. StartAutoMount(Spawn, 916)
  92. SetMount(Spawn, 7253)
  93. end
  94. function HiddenToJinisk(NPC, Spawn)
  95. StartAutoMount(Spawn, 917)
  96. SetMount(Spawn, 7253)
  97. end
  98. function HiddenToRiver(NPC, Spawn)
  99. StartAutoMount(Spawn, 932)
  100. SetMount(Spawn, 7253)
  101. end
  102. function HiddenToSeb(NPC, Spawn)
  103. StartAutoMount(Spawn, 930)
  104. SetMount(Spawn, 7253)
  105. end
  106. function HiddenToTab(NPC, Spawn)
  107. StartAutoMount(Spawn, 931)
  108. SetMount(Spawn, 7253)
  109. end
  110. function JiniskToFallen(NPC, Spawn)
  111. StartAutoMount(Spawn, 934)
  112. SetMount(Spawn, 7253)
  113. end
  114. function JiniskToHidden(NPC, Spawn)
  115. StartAutoMount(Spawn, 913)
  116. SetMount(Spawn, 7253)
  117. end
  118. function JiniskToRiver(NPC, Spawn)
  119. StartAutoMount(Spawn, 914)
  120. SetMount(Spawn, 7253)
  121. end
  122. function JiniskToSeb(NPC, Spawn)
  123. StartAutoMount(Spawn, 933)
  124. SetMount(Spawn, 7253)
  125. end
  126. function JiniskToTab(NPC, Spawn)
  127. StartAutoMount(Spawn, 915)
  128. SetMount(Spawn, 7253)
  129. end
  130. function RiverToFallen(NPC, Spawn)
  131. StartAutoMount(Spawn, 936)
  132. SetMount(Spawn, 7253)
  133. end
  134. function RiverToHidden(NPC, Spawn)
  135. StartAutoMount(Spawn, 935)
  136. SetMount(Spawn, 7253)
  137. end
  138. function RiverToJinisk(NPC, Spawn)
  139. StartAutoMount(Spawn, 918)
  140. SetMount(Spawn, 7253)
  141. end
  142. function RiverToSeb(NPC, Spawn)
  143. StartAutoMount(Spawn, 919)
  144. SetMount(Spawn, 7253)
  145. end
  146. function RiverToTab(NPC, Spawn)
  147. StartAutoMount(Spawn, 920)
  148. SetMount(Spawn, 7253)
  149. end
  150. function SebToFallen(NPC, Spawn)
  151. StartAutoMount(Spawn, 921)
  152. SetMount(Spawn,7253)
  153. end
  154. function SebToHidden(NPC, Spawn)
  155. StartAutoMount(Spawn, 937)
  156. SetMount(Spawn, 7253)
  157. end
  158. function SebToJinisk(NPC, Spawn)
  159. StartAutoMount(Spawn, 939)
  160. SetMount(Spawn, 7253)
  161. end
  162. function SebToRiver(NPC, Spawn)
  163. StartAutoMount(Spawn, 922)
  164. SetMount(Spawn, 7253)
  165. end
  166. function SebToTab(NPC, Spawn)
  167. StartAutoMount(Spawn, 938)
  168. SetMount(Spawn, 7253)
  169. end
  170. function TabToFallen(NPC, Spawn)
  171. StartAutoMount(Spawn, 923)
  172. SetMount(Spawn,7253)
  173. end
  174. function TabToHidden(NPC, Spawn)
  175. StartAutoMount(Spawn, 927)
  176. SetMount(Spawn, 7253)
  177. end
  178. function TabToJinisk(NPC, Spawn)
  179. StartAutoMount(Spawn, 924)
  180. SetMount(Spawn, 7253)
  181. end
  182. function TabToRiver(NPC, Spawn)
  183. StartAutoMount(Spawn, 925)
  184. SetMount(Spawn, 7253)
  185. end
  186. function TabToSeb(NPC, Spawn)
  187. StartAutoMount(Spawn, 926)
  188. SetMount(Spawn, 7253)
  189. end