SirValinayle.lua 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. --[[
  2. Script Name : SpawnScripts/Stormhold/SirValinayle.lua
  3. Script Purpose : Sir Valinayle
  4. Script Author : TyroneSWG
  5. Script Date : 2020.06.12
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. local choice = math.random(1,4)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/callout_64.mp3", "This way, fair adventurer! I hold the key to the riddle of hidden treasure.", "beckon", 1716252141, 4089896987, Spawn)
  24. elseif choice == 2 then
  25. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/cap_64.mp3", "Please! You must destroy him! If you stay here, he will surely ambush and kill us all!", "beg", 2691414939, 1655329377, Spawn)
  26. elseif choice == 3 then
  27. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/task02_64.mp3", "I'm afraid I cannot offer you anything yet, my friend. Now, quit wasting my time and finish what you've begun!", "no", 2113863262, 2263319370, Spawn)
  28. elseif choice == 4 then
  29. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/weak01_64.mp3", "Please! It's not as if I asked you to bring me back from the dead. I don't want to see you again until you finish your task!", "sigh", 1392983189, 1110575775, Spawn)
  30. else
  31. end
  32. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script15_64.mp3", "", "", 4276722630, 4280487983, Spawn)
  33. AddConversationOption(conversation, "I'll think about it. Goodbye.", "dlg_2_1")
  34. StartConversation(conversation, NPC, Spawn, "Excellent! I appreciate your help, my friend. If you have any more time, please feel free to return and visit me again!")
  35. if convo==3 then
  36. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script01_64.mp3", "", "", 2298163488, 3689217989, Spawn)
  37. AddConversationOption(conversation, "What? Calm down what are you talking about!", "dlg_3_1")
  38. AddConversationOption(conversation, "Good, I hope whatever it is hurts a lot!")
  39. StartConversation(conversation, NPC, Spawn, "Thank goodness you returned! It's terrible, just awful, I tell you!")
  40. end
  41. if convo==5 then
  42. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1034.mp3", "", "", 0, 0, Spawn)
  43. AddConversationOption(conversation, "You were expecting me?", "dlg_5_1")
  44. AddConversationOption(conversation, "Yeah right, I don't have time to waste with ghosts and goblins. Goodbye!")
  45. StartConversation(conversation, NPC, Spawn, "Well, glad you made it finally. I was beginning to wonder if you were going to show up at all!")
  46. end
  47. if convo==7 then
  48. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1034.mp3", "", "", 0, 0, Spawn)
  49. AddConversationOption(conversation, "You were expecting me?", "dlg_7_1")
  50. AddConversationOption(conversation, "Yeah right, I don't have time to waste with ghosts and goblins. Goodbye!")
  51. StartConversation(conversation, NPC, Spawn, "Well, glad you made it finally. I was beginning to wonder if you were going to show up at all!")
  52. end
  53. if convo==8 then
  54. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1034.mp3", "", "", 0, 0, Spawn)
  55. AddConversationOption(conversation, "You were expecting me?", "dlg_8_1")
  56. AddConversationOption(conversation, "Yeah right, I don't have time to waste with ghosts and goblins. Goodbye!")
  57. StartConversation(conversation, NPC, Spawn, "Well, glad you made it finally. I was beginning to wonder if you were going to show up at all!")
  58. end
  59. if convo==9 then
  60. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1034.mp3", "", "", 0, 0, Spawn)
  61. AddConversationOption(conversation, "You were expecting me?", "dlg_9_1")
  62. AddConversationOption(conversation, "Yeah right, I don't have time to waste with ghosts and goblins. Goodbye!")
  63. StartConversation(conversation, NPC, Spawn, "Well, glad you made it finally. I was beginning to wonder if you were going to show up at all!")
  64. end
  65. if convo==10 then
  66. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1034.mp3", "", "", 0, 0, Spawn)
  67. AddConversationOption(conversation, "You were expecting me?", "dlg_10_1")
  68. AddConversationOption(conversation, "Yeah right, I don't have time to waste with ghosts and goblins. Goodbye!")
  69. StartConversation(conversation, NPC, Spawn, "Well, glad you made it finally. I was beginning to wonder if you were going to show up at all!")
  70. end
  71. if convo==11 then
  72. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1034.mp3", "", "", 0, 0, Spawn)
  73. AddConversationOption(conversation, "You were expecting me?", "dlg_11_1")
  74. AddConversationOption(conversation, "Yeah right, I don't have time to waste with ghosts and goblins. Goodbye!")
  75. StartConversation(conversation, NPC, Spawn, "Well, glad you made it finally. I was beginning to wonder if you were going to show up at all!")
  76. end
  77. if convo==12 then
  78. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1034.mp3", "", "", 0, 0, Spawn)
  79. AddConversationOption(conversation, "You were expecting me?", "dlg_12_1")
  80. AddConversationOption(conversation, "Yeah right, I don't have time to waste with ghosts and goblins. Goodbye!")
  81. StartConversation(conversation, NPC, Spawn, "Well, glad you made it finally. I was beginning to wonder if you were going to show up at all!")
  82. end
  83. if convo==14 then
  84. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script15_64.mp3", "", "", 4276722630, 4280487983, Spawn)
  85. AddConversationOption(conversation, "I'll think about it. Goodbye.", "dlg_14_1")
  86. StartConversation(conversation, NPC, Spawn, "Excellent! I appreciate your help, my friend. If you have any more time, please feel free to return and visit me again!")
  87. end
  88. if convo==15 then
  89. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script01_64.mp3", "", "", 2298163488, 3689217989, Spawn)
  90. AddConversationOption(conversation, "What? Calm down what are you talking about!", "dlg_15_1")
  91. AddConversationOption(conversation, "Good, I hope whatever it is hurts a lot!")
  92. StartConversation(conversation, NPC, Spawn, "Thank goodness you returned! It's terrible, just awful, I tell you!")
  93. end
  94. if convo==16 then
  95. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script01_64.mp3", "", "", 2298163488, 3689217989, Spawn)
  96. AddConversationOption(conversation, "What? Calm down what are you talking about!", "dlg_16_1")
  97. AddConversationOption(conversation, "Good, I hope whatever it is hurts a lot!")
  98. StartConversation(conversation, NPC, Spawn, "Thank goodness you returned! It's terrible, just awful, I tell you!")
  99. end
  100. if convo==17 then
  101. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script01_64.mp3", "", "", 2298163488, 3689217989, Spawn)
  102. AddConversationOption(conversation, "What? Calm down what are you talking about!", "dlg_17_1")
  103. AddConversationOption(conversation, "Good, I hope whatever it is hurts a lot!")
  104. StartConversation(conversation, NPC, Spawn, "Thank goodness you returned! It's terrible, just awful, I tell you!")
  105. end
  106. if convo==18 then
  107. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script01_64.mp3", "", "", 2298163488, 3689217989, Spawn)
  108. AddConversationOption(conversation, "What? Calm down what are you talking about!", "dlg_18_1")
  109. AddConversationOption(conversation, "Good, I hope whatever it is hurts a lot!")
  110. StartConversation(conversation, NPC, Spawn, "Thank goodness you returned! It's terrible, just awful, I tell you!")
  111. end
  112. if convo==19 then
  113. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script02_64.mp3", "", "", 4004435203, 430849973, Spawn)
  114. AddConversationOption(conversation, "Relax, take a deep... wait. Just tell me what's going on!", "dlg_19_1")
  115. AddConversationOption(conversation, "Finally after all this time it's good to see you grovel. Now, I must leave.")
  116. StartConversation(conversation, NPC, Spawn, "He's after me! The gods know how he discovered me, but he's sending them all to destroy me. I've already died once, and trust me, that wasn't the most pleasant experience!")
  117. end
  118. end
  119. function dlg_3_1(NPC, Spawn)
  120. FaceTarget(NPC, Spawn)
  121. conversation = CreateConversation()
  122. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script02_64.mp3", "", "", 4004435203, 430849973, Spawn)
  123. AddConversationOption(conversation, "Relax, take a deep... wait. Just tell me what's going on!", "dlg_3_2")
  124. AddConversationOption(conversation, "Finally after all this time it's good to see you grovel. Now, I must leave.")
  125. StartConversation(conversation, NPC, Spawn, "He's after me! The gods know how he discovered me, but he's sending them all to destroy me. I've already died once, and trust me, that wasn't the most pleasant experience!")
  126. end
  127. function dlg_3_2(NPC, Spawn)
  128. FaceTarget(NPC, Spawn)
  129. conversation = CreateConversation()
  130. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script03_64.mp3", "", "", 2738232666, 4257491883, Spawn)
  131. AddConversationOption(conversation, "Okay, tell me what can I do to help?", "dlg_3_3")
  132. AddConversationOption(conversation, "Sorry, this one sounds a bit too difficult. Good luck with Lord... whomever.")
  133. StartConversation(conversation, NPC, Spawn, "Lord Gydek, you fool, that's who! He's stirred up his entire camp and they want me. Please, you must help!")
  134. end
  135. function dlg_3_3(NPC, Spawn)
  136. FaceTarget(NPC, Spawn)
  137. conversation = CreateConversation()
  138. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script04_64.mp3", "", "", 491010397, 1674796, Spawn)
  139. AddConversationOption(conversation, "All right, don't worry. I'll take care of this Lord Gydek. Just calm down will you.", "dlg_3_4")
  140. AddConversationOption(conversation, "A troll? This sounds a little more dangerous than what I was prepared for. Time for me to get going. Good luck!")
  141. StartConversation(conversation, NPC, Spawn, "You can kill him, that's what you can do! That wretched troll, I thought he was only a legend. But I've seen him in my dreams. Please, he killed me! I'm sure of it! I'll do anything, but please, you must help!")
  142. end
  143. function dlg_3_4(NPC, Spawn)
  144. FaceTarget(NPC, Spawn)
  145. conversation = CreateConversation()
  146. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script05_64.mp3", "", "", 1032096322, 2918389414, Spawn)
  147. AddConversationOption(conversation, "All right no problem. I'll see you then! ", "dlg_3_5")
  148. StartConversation(conversation, NPC, Spawn, "Thank you, my friend. I knew I could depend on you. You'll need to get a large group of your friends to defeat him. He has an army at his disposal and will stop at nothing to find me. Return to me after you kill him!")
  149. end
  150. function dlg_8_1(NPC, Spawn)
  151. FaceTarget(NPC, Spawn)
  152. conversation = CreateConversation()
  153. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script21_64.mp3", "", "", 3783994912, 4037347686, Spawn)
  154. AddConversationOption(conversation, "Yes, I am the great defender of Norrath! Now where is the treasure?", "dlg_8_2")
  155. AddConversationOption(conversation, "Sorry, you must have me confused with someone else. I have to be going now. Good luck!")
  156. StartConversation(conversation, NPC, Spawn, "Why do you think I called out to you? I had foreseen your arrival, and now I must share my knowledge with you. Are you not the great defender of Norrath?")
  157. end
  158. function dlg_9_1(NPC, Spawn)
  159. FaceTarget(NPC, Spawn)
  160. conversation = CreateConversation()
  161. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script21_64.mp3", "", "", 3783994912, 4037347686, Spawn)
  162. AddConversationOption(conversation, "Yes, I am the great defender of Norrath! Now where is the treasure?", "dlg_9_2")
  163. AddConversationOption(conversation, "Sorry, you must have me confused with someone else. I have to be going now. Good luck!")
  164. StartConversation(conversation, NPC, Spawn, "Why do you think I called out to you? I had foreseen your arrival, and now I must share my knowledge with you. Are you not the great defender of Norrath?")
  165. end
  166. function dlg_9_2(NPC, Spawn)
  167. FaceTarget(NPC, Spawn)
  168. conversation = CreateConversation()
  169. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script22_64.mp3", "", "", 3839049805, 1239867034, Spawn)
  170. AddConversationOption(conversation, "Okay, but just a simple service.", "dlg_9_3")
  171. AddConversationOption(conversation, "Sorry, I'm not interested. I'm going to leave now.")
  172. StartConversation(conversation, NPC, Spawn, "Patience, my brave adventurer, patience. Soon, all of the riches of Stormhold will be yours. I ask that you perform a simple service on my behalf. Is that too much for one as powerful as you?")
  173. end
  174. function dlg_10_1(NPC, Spawn)
  175. FaceTarget(NPC, Spawn)
  176. conversation = CreateConversation()
  177. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script21_64.mp3", "", "", 3783994912, 4037347686, Spawn)
  178. AddConversationOption(conversation, "Yes, I am the great defender of Norrath! Now where is the treasure?", "dlg_10_2")
  179. AddConversationOption(conversation, "Sorry, you must have me confused with someone else. I have to be going now. Good luck!")
  180. StartConversation(conversation, NPC, Spawn, "Why do you think I called out to you? I had foreseen your arrival, and now I must share my knowledge with you. Are you not the great defender of Norrath?")
  181. end
  182. function dlg_10_2(NPC, Spawn)
  183. FaceTarget(NPC, Spawn)
  184. conversation = CreateConversation()
  185. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script22_64.mp3", "", "", 3839049805, 1239867034, Spawn)
  186. AddConversationOption(conversation, "Okay, but just a simple service.", "dlg_10_3")
  187. AddConversationOption(conversation, "Sorry, I'm not interested. I'm going to leave now.")
  188. StartConversation(conversation, NPC, Spawn, "Patience, my brave adventurer, patience. Soon, all of the riches of Stormhold will be yours. I ask that you perform a simple service on my behalf. Is that too much for one as powerful as you?")
  189. end
  190. function dlg_10_3(NPC, Spawn)
  191. FaceTarget(NPC, Spawn)
  192. conversation = CreateConversation()
  193. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script23_64.mp3", "", "", 372992869, 1495453677, Spawn)
  194. AddConversationOption(conversation, "Sure I can handle that for you! I'll be back when they're dead.", "dlg_10_4")
  195. AddConversationOption(conversation, "Fire things, uhh no thanks. Get someone else to do your dirty work.")
  196. StartConversation(conversation, NPC, Spawn, "Wonderful! I knew you were my savior! Those ridiculous fire things are at it again! They've destroyed everything with their evil hands. My precious books were lost to them in a fire, and I want vengeance!")
  197. end
  198. function dlg_11_1(NPC, Spawn)
  199. FaceTarget(NPC, Spawn)
  200. conversation = CreateConversation()
  201. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script21_64.mp3", "", "", 3783994912, 4037347686, Spawn)
  202. AddConversationOption(conversation, "Yes, I am the great defender of Norrath! Now where is the treasure?", "dlg_11_2")
  203. AddConversationOption(conversation, "Sorry, you must have me confused with someone else. I have to be going now. Good luck!")
  204. StartConversation(conversation, NPC, Spawn, "Why do you think I called out to you? I had foreseen your arrival, and now I must share my knowledge with you. Are you not the great defender of Norrath?")
  205. end
  206. function dlg_11_2(NPC, Spawn)
  207. FaceTarget(NPC, Spawn)
  208. conversation = CreateConversation()
  209. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script22_64.mp3", "", "", 3839049805, 1239867034, Spawn)
  210. AddConversationOption(conversation, "Okay, but just a simple service.", "dlg_11_3")
  211. AddConversationOption(conversation, "Sorry, I'm not interested. I'm going to leave now.")
  212. StartConversation(conversation, NPC, Spawn, "Patience, my brave adventurer, patience. Soon, all of the riches of Stormhold will be yours. I ask that you perform a simple service on my behalf. Is that too much for one as powerful as you?")
  213. end
  214. function dlg_11_3(NPC, Spawn)
  215. FaceTarget(NPC, Spawn)
  216. conversation = CreateConversation()
  217. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script23_64.mp3", "", "", 372992869, 1495453677, Spawn)
  218. AddConversationOption(conversation, "Sure I can handle that for you! I'll be back when they're dead.", "dlg_11_4")
  219. AddConversationOption(conversation, "Fire things, uhh no thanks. Get someone else to do your dirty work.")
  220. StartConversation(conversation, NPC, Spawn, "Wonderful! I knew you were my savior! Those ridiculous fire things are at it again! They've destroyed everything with their evil hands. My precious books were lost to them in a fire, and I want vengeance!")
  221. end
  222. function dlg_11_4(NPC, Spawn)
  223. FaceTarget(NPC, Spawn)
  224. conversation = CreateConversation()
  225. PlayFlavor(NPC, "voiceover/english/optional4/sir_valinayle/z_no_script24_64.mp3", "", "", 3850259326, 376249428, Spawn)
  226. AddConversationOption(conversation, "No problem, I'll be back soon!", "dlg_11_5")
  227. StartConversation(conversation, NPC, Spawn, "Thank you, my friend, thank you. After you have vanquished them, please return to me, and the secret of the treasure of Befallen shall be yours! Did I say Befallen? I meant Stormhold... Ah how I miss Befallen... these places are so similar I keep getting them confused.")
  228. end