Euurp.lua 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. --[[
  2. Script Name : SpawnScripts/TheLostVillageofKugup/Euurp.lua
  3. Script Purpose : Euurp
  4. Script Author : neatz09
  5. Script Date : 2023.04.18
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. RandomGreeting(NPC, Spawn)
  16. end
  17. function RandomGreeting(NPC, Spawn)
  18. local choice = MakeRandomInt(1,3)
  19. if choice == 1 then
  20. PlayFlavor(NPC, "", "It seems like you're already working on something else. Come see me again when you're finished!", "", 0, 0, Spawn, 0)
  21. elseif choice == 2 then
  22. PlayFlavor(NPC, "", "I hope you remember your lessons!", "", 0, 0, Spawn, 0)
  23. elseif choice == 3 then
  24. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1059.mp3", 0, 0, Spawn)
  25. end
  26. end
  27. function Dialog3(NPC, Spawn)
  28. --Int 1
  29. FaceTarget(NPC, Spawn)
  30. Dialog.New(NPC, Spawn)
  31. Dialog.AddDialog("Hello, friend. I am Euurp, the school teacher. We may be a small village, but we do have some youngsters and there's just so much to teach them!")
  32. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_1_1059.mp3", 0, 0)
  33. Dialog.AddOption("What do you teach?", "Dialog11")
  34. Dialog.AddOption("That's interesting, but I must be going.")
  35. Dialog.Start()
  36. end
  37. function Dialog11(NPC, Spawn)
  38. --Int 2
  39. FaceTarget(NPC, Spawn)
  40. Dialog.New(NPC, Spawn)
  41. Dialog.AddDialog("Well, everything we can! Mathematics, arcane science, alchemy, even combat when they get a bit older than these children. But, one of the most important lessons is history.")
  42. Dialog.AddOption("What's so interesting about history?", "Dialog14")
  43. Dialog.AddOption("Hmm, school was boring enough the first time.")
  44. Dialog.Start()
  45. end
  46. function Dialog14(NPC, Spawn)
  47. --Int 3
  48. FaceTarget(NPC, Spawn)
  49. Dialog.New(NPC, Spawn)
  50. Dialog.AddDialog("History is why we are where we are. If we don't learn from history, we will surely repeat the mistakes of the past. The Froglok people have a long and fascinating history. Would you like to learn it?")
  51. Dialog.AddOption("Sure, I'd like to learn the Froglok History.", "Dialog18")
  52. Dialog.AddOption("No thanks, I don't have the time right now.")
  53. Dialog.Start()
  54. end
  55. function Dialog18(NPC, Spawn)
  56. --Int 4 and Quest Accept
  57. FaceTarget(NPC, Spawn)
  58. Dialog.New(NPC, Spawn)
  59. Dialog.AddDialog("That's great news. Here, take this tome and read it. When you are done, come back and we'll see what you've learned.")
  60. Dialog.AddOption("Thanks. I'll be back as soon as I'm done!")
  61. Dialog.Start()
  62. end
  63. function Dialog5(NPC, Spawn)
  64. --Pretest
  65. FaceTarget(NPC, Spawn)
  66. Dialog.New(NPC, Spawn)
  67. Dialog.AddDialog("I see you have read the book... Do you feel like you've studied well?")
  68. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_1_1059.mp3", 0, 0)
  69. Dialog.AddOption("I read it carefully.", "Dialog10")
  70. Dialog.AddOption("Uh, maybe I should re-read it.")
  71. Dialog.Start()
  72. end
  73. function Dialog10(NPC, Spawn)
  74. --Pretest Pt2
  75. FaceTarget(NPC, Spawn)
  76. Dialog.New(NPC, Spawn)
  77. Dialog.AddDialog("Good to hear, are you ready for the first question?")
  78. Dialog.AddOption("I am ready.", "Dialog4")
  79. Dialog.AddOption("Not quite yet")
  80. Dialog.Start()
  81. end
  82. function Dialog20(NPC, Spawn)
  83. --First answer correct
  84. FaceTarget(NPC, Spawn)
  85. Dialog.New(NPC, Spawn)
  86. Dialog.AddDialog("Outstanding answer. Are you ready for the next question?")
  87. Dialog.AddOption("I am ready.", "Dialog9")
  88. Dialog.AddOption("Not quite yet.")
  89. Dialog.Start()
  90. end
  91. function Dialog2(NPC, Spawn)
  92. --Second Question Correct
  93. FaceTarget(NPC, Spawn)
  94. Dialog.New(NPC, Spawn)
  95. Dialog.AddDialog("Again, excellent. Are you ready for the final question?")
  96. Dialog.AddOption("I am ready.", "Dialog15")
  97. Dialog.AddOption("Not quite yet.")
  98. Dialog.Start()
  99. end
  100. function Dialog1(NPC, Spawn)
  101. --Completion
  102. FaceTarget(NPC, Spawn)
  103. Dialog.New(NPC, Spawn)
  104. Dialog.AddDialog("Absolutely correct! You are a quick study for one so old. You have learned our history well, and I am proud to be your teacher.")
  105. Dialog.AddOption("Thank you for teaching me.")
  106. Dialog.Start()
  107. end
  108. function Dialog7(NPC, Spawn)
  109. --Failure
  110. FaceTarget(NPC, Spawn)
  111. Dialog.New(NPC, Spawn)
  112. Dialog.AddDialog("Hmm, I believe you should review the text some more.")
  113. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_2_1059.mp3", 0, 0)
  114. Dialog.AddOption("I will review the text.")
  115. Dialog.Start()
  116. end
  117. function Dialog4(NPC, Spawn)
  118. --Question: What did we rename Grobb to after the defeat of the Trolls? Answer: Gukta.
  119. FaceTarget(NPC, Spawn)
  120. Dialog.New(NPC, Spawn)
  121. Dialog.AddDialog("What did we rename Grobb to after the defeat of the Trolls?")
  122. Dialog.AddOption("New Guk", "Dialog7")
  123. Dialog.AddOption("Frooaka", "Dialog7")
  124. Dialog.AddOption("Gukta", "Dialog20") --Correct
  125. Dialog.AddOption("I don't know.", "Dialog7")
  126. Dialog.Start()
  127. end
  128. function Dialog6(NPC, Spawn)
  129. --Question: What would we frogloks rather die than do? Answer: Utilize deception.
  130. FaceTarget(NPC, Spawn)
  131. Dialog.New(NPC, Spawn)
  132. Dialog.AddDialog("What would we Frogloks rather die than do?")
  133. Dialog.AddOption("Fail in battle", "Dialog7")
  134. Dialog.AddOption("Harm another living being", "Dialog7")
  135. Dialog.AddOption("Utilize deception", "Dialog20") --Correct
  136. Dialog.AddOption("I don't know.", "Dialog7")
  137. Dialog.Start()
  138. end
  139. function Dialog9(NPC, Spawn)
  140. --Question: What did we carry into the depths of Gukta to protect our kind? Answer: Froglok eggs.
  141. FaceTarget(NPC, Spawn)
  142. Dialog.New(NPC, Spawn)
  143. Dialog.AddDialog("What did we carry into the depths of Gukta to protect our kind?")
  144. Dialog.AddOption("Froglok Eggs", "Dialog2") --Correct
  145. Dialog.AddOption("Bug stew", "Dialog7")
  146. Dialog.AddOption("The King", "Dialog7")
  147. Dialog.AddOption("I don't know.", "Dialog7")
  148. Dialog.Start()
  149. end
  150. function Dialog12(NPC, Spawn)
  151. --Question: What army brought about our ruin? Answer: Rallos Zek.
  152. FaceTarget(NPC, Spawn)
  153. Dialog.New(NPC, Spawn)
  154. Dialog.AddDialog("Whose army brought the Froglok people to the brink of extinction?")
  155. Dialog.AddOption("Rallos Zek") --Correct
  156. Dialog.AddOption("Cazic-Thule", "Dialog7")
  157. Dialog.AddOption("Bristlebane", "Dialog7")
  158. Dialog.AddOption("I don't know.", "Dialog7")
  159. Dialog.Start()
  160. end
  161. function Dialog15(NPC, Spawn)
  162. --Question: Whose punishment was swift and severe? Answer: The Gods'.
  163. FaceTarget(NPC, Spawn)
  164. Dialog.New(NPC, Spawn)
  165. Dialog.AddDialog("Whose punishment was swift and severe?")
  166. Dialog.AddOption("The Tae'Ew", "Dialog7")
  167. Dialog.AddOption("The Ogres'", "Dialog7")
  168. Dialog.AddOption("The Gods'", "Dialog1") --Correct
  169. Dialog.AddOption("I don't know.", "Dialog7")
  170. Dialog.Start()
  171. end
  172. --[[ Question: Frogloks believe everyone must abide by the... Answer: Laws of the land.
  173. Question: Who took us prisoner in the Feerrott? Answer: The Tae'Ew.
  174. Question: What did we do to disappoint the Gods? Answer: Failed to stand our ground.
  175. Question: What did the ogres fight without? Answer: Honor.
  176. Question: Which race did we defeat in Grobb? Answer: Trolls.
  177. Question: Where did we hide when the end was near? Answer: Deep beneath the marshes.
  178. Question: What would have been far kinder than our current fate? Answer: Oblivion.
  179. Question: What god watched over the froglok people for generations? Answer: Mithaniel Marr.
  180. Question: What scattered those who survived the Rallosian onslaught? Answer: The Rending.
  181. Question: Who did our emissaries first contact for assistance? Answer: The Overlord of Freeport. ]]--