TheCuriousAugur.lua 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. --[[
  2. Script Name : SpawnScripts/EnchantedLands/TheCuriousAugur.lua
  3. Script Purpose : The Curious Augur
  4. Script Author : Cynnar
  5. Script Date : 2015.02.17
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local ThreeMeaningsOfLife = 115
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, ThreeMeaningsOfLife)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. if not HasQuest(Spawn, ThreeMeaningsOfLife) and not HasCompletedQuest(Spawn, ThreeMeaningsOfLife) or HasQuest(Spawn, ThreeMeaningsOfLife) and GetQuestStep(Spawn, ThreeMeaningsOfLife) == 1 then
  19. -- start the quest
  20. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur001.mp3", "", "", 2804170240, 1658399698, Spawn)
  21. AddConversationOption(conversation, "You were expecting me?", "dlg_0_1")
  22. AddConversationOption(conversation, "I have no idea what you're talking about.")
  23. StartConversation(conversation, NPC, Spawn, "Ah, so you've arrived at last! I wondered when you would seek my knowledge of the meaning of life. Come closer and we shall begin your quest for enlightenment, my child.")
  24. elseif HasQuest(Spawn, ThreeMeaningsOfLife) and GetQuestStep(Spawn, ThreeMeaningsOfLife) == 2 then
  25. -- on step 2
  26. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur004.mp3", "", "", 2520256937, 2710009453, Spawn)
  27. AddConversationOption(conversation, "I suppose so.", "QuestChat_1_2")
  28. AddConversationOption(conversation, "Probably not.")
  29. StartConversation(conversation, NPC, Spawn, "You are on your way towards mastering the intellectual meaning of life, are you not? Are you ready to learn the next meaning of life?")
  30. elseif HasQuest(Spawn, ThreeMeaningsOfLife) and GetQuestStep(Spawn, ThreeMeaningsOfLife) == 3 then
  31. -- on step 3
  32. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur006.mp3", "", "", 897853069, 726940756, Spawn)
  33. AddConversationOption(conversation, "Not yet.")
  34. StartConversation(conversation, NPC, Spawn, "You've been eliminating the salt snappers?")
  35. elseif HasQuest(Spawn, ThreeMeaningsOfLife) and GetQuestStep(Spawn, ThreeMeaningsOfLife) == 4 then
  36. -- on step 4
  37. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur006.mp3", "", "", 897853069, 726940756, Spawn)
  38. AddConversationOption(conversation, "Yes, didn't you see me?", "QuestChat_2_2")
  39. AddConversationOption(conversation, "Not yet.")
  40. StartConversation(conversation, NPC, Spawn, "You've been eliminating the salt snappers?")
  41. elseif HasQuest(Spawn, ThreeMeaningsOfLife) and GetQuestStep(Spawn, ThreeMeaningsOfLife) == 5 then
  42. -- on step 5
  43. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur009.mp3", "", "", 2774283468, 3531323088, Spawn)
  44. AddConversationOption(conversation, "Not yet.")
  45. StartConversation(conversation, NPC, Spawn, "Did you speak with Sarma Singebellows?")
  46. elseif HasQuest(Spawn, ThreeMeaningsOfLife) and GetQuestStep(Spawn, ThreeMeaningsOfLife) == 6 then
  47. -- on step 6
  48. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur009.mp3", "", "", 2774283468, 3531323088, Spawn)
  49. AddConversationOption(conversation, "Yes, I did.", "QuestChat_3_2")
  50. AddConversationOption(conversation, "Not yet.")
  51. StartConversation(conversation, NPC, Spawn, "Did you speak with Sarma Singebellows?")
  52. elseif HasCompletedQuest(Spawn, ThreeMeaningsOfLife) then
  53. -- finished Quest
  54. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur009.mp3", "", "", 2774283468, 3531323088, Spawn)
  55. AddConversationOption(conversation, "I'll be on my way.")
  56. StartConversation(conversation, NPC, Spawn, "I have given you the keys, my child. How or if you ever use them is in your hands. Other Augurs you meet in your travels may provide you with more wisdom.")
  57. end
  58. end
  59. function dlg_0_1(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. conversation = CreateConversation()
  62. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur002.mp3", "", "", 722859471, 401514036, Spawn)
  63. AddConversationOption(conversation, "You offer such guidance?", "OfferThreeMeaningsOfLife")
  64. AddConversationOption(conversation, "I'm really not interested.")
  65. StartConversation(conversation, NPC, Spawn, "Yes, for I am an Augur, and that means I foresee the future. I knew you would come forward to learn the meanings of life from me. You are intensely curious, as am I. Curiosity drives us towards our potential, but we need guidance to reach it.")
  66. end
  67. function OfferThreeMeaningsOfLife(NPC, Spawn) --The Curious Augur's Three Meanings of Life
  68. if not HasQuest(Spawn, ThreeMeaningsOfLife) then
  69. OfferQuest(NPC, Spawn, ThreeMeaningsOfLife)
  70. elseif HasQuest(Spawn, ThreeMeaningsOfLife) then
  71. QuestChat_0_1(NPC, Spawn)
  72. end
  73. end
  74. function QuestChat_0_1(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. conversation = CreateConversation()
  77. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur003.mp3", "", "", 4037106442, 3061634368, Spawn)
  78. AddConversationOption(conversation, "I have seven fear feeders and eighteen shoal serpents.", "QuestChat_0_4")
  79. AddConversationOption(conversation, "I have fifteen fear feeders and ten shoal serpents.", "QuestChat_0_2")
  80. AddConversationOption(conversation, "I have five fear feeders and twenty shoal serpents.", "QuestChat_0_2")
  81. AddConversationOption(conversation, "I have no idea.", "QuestChat_0_2")
  82. StartConversation(conversation, NPC, Spawn, "There are many meanings to life and I can teach you only three. The first meaning is that of the nimble mind. Curiosity is a start, but you must be able to unravel this mystery to proceed. You have slain many fear feeders and shoal serpents. You have collected twenty five heads and fifty six legs. How many of each have you slain?")
  83. end
  84. function QuestChat_0_2(NPC, Spawn)
  85. FaceTarget(NPC, Spawn)
  86. conversation = CreateConversation()
  87. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur014.mp3", "", "", 3661262572, 1665365128, Spawn)
  88. AddConversationOption(conversation, "If they're all male, half will be male and so will the other half.", "QuestChat_0_4")
  89. AddConversationOption(conversation, "It is not possible unless the parents are trolls.", "QuestChat_0_3")
  90. AddConversationOption(conversation, "There were six children initially, but one ran away.", "QuestChat_0_3")
  91. StartConversation(conversation, NPC, Spawn, "Hmm. Let us try something simpler. If a parent has five children, how is it possible that half of them are male?")
  92. end
  93. function QuestChat_0_3(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. conversation = CreateConversation()
  96. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur014.mp3", "", "", 3661262572, 1665365128, Spawn)
  97. AddConversationOption(conversation, "Once. After the first time, you'll be subtracting four from the number eight.", "QuestChat_0_4")
  98. StartConversation(conversation, NPC, Spawn, "Hmm. Most interedting analysis. Let us try one more question. How many times can you subtract four trom the number twelve?")
  99. end
  100. function QuestChat_0_4(NPC, Spawn)
  101. SetStepComplete(Spawn, ThreeMeaningsOfLife, 1)
  102. FaceTarget(NPC, Spawn)
  103. conversation = CreateConversation()
  104. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur015.mp3", "", "", 2363467901, 2977768208, Spawn)
  105. AddConversationOption(conversation, "All right.")
  106. StartConversation(conversation, NPC, Spawn, "You are well on your way to learning the intellectual meaning of life. Of course, the questions are simple, but we all must start somewhere. Take a moment to consider what you have learned, then we can continue.")
  107. end
  108. function QuestChat_1_1(NPC, Spawn)
  109. FaceTarget(NPC, Spawn)
  110. conversation = CreateConversation()
  111. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur004.mp3", "", "", 2520256937, 2710009453, Spawn)
  112. AddConversationOption(conversation, "I suppose so.", "QuestChat_1_2")
  113. AddConversationOption(conversation, "Probably not.")
  114. StartConversation(conversation, NPC, Spawn, "You are on your way towards mastering the intellectual meaning of life, are you not? Are you ready to learn the next meaning of life?")
  115. end
  116. function QuestChat_1_2(NPC, Spawn)
  117. FaceTarget(NPC, Spawn)
  118. conversation = CreateConversation()
  119. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur005.mp3", "", "", 1765847486, 926846301, Spawn)
  120. AddConversationOption(conversation, "You want me to remove the salt snappers?", "QuestChat_1_3")
  121. StartConversation(conversation, NPC, Spawn, "Look beyond the docks to the shore. The salt snappers wander back and forth, sometimes preventing swimmers from reaching land. Do you think this should continue?")
  122. end
  123. function QuestChat_1_3(NPC, Spawn)
  124. SetStepComplete(Spawn, ThreeMeaningsOfLife, 2)
  125. FaceTarget(NPC, Spawn)
  126. conversation = CreateConversation()
  127. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur006.mp3", "", "", 897853069, 726940756, Spawn)
  128. AddConversationOption(conversation, "I'll be back.")
  129. StartConversation(conversation, NPC, Spawn, "There, you see how much easier such conclusions are to reach once you've exercised the intellectual meaning of life? Yes, you must clear the path to the shore. I will wait for you here.")
  130. end
  131. function QuestChat_2_1(NPC, Spawn)
  132. FaceTarget(NPC, Spawn)
  133. conversation = CreateConversation()
  134. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur006.mp3", "", "", 897853069, 726940756, Spawn)
  135. AddConversationOption(conversation, "Yes, didn't you see me?", "QuestChat_2_2")
  136. AddConversationOption(conversation, "Not yet.")
  137. StartConversation(conversation, NPC, Spawn, "You've been eliminating the salt snappers?")
  138. end
  139. function QuestChat_2_2(NPC, Spawn)
  140. FaceTarget(NPC, Spawn)
  141. conversation = CreateConversation()
  142. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur008.mp3", "", "", 3930223149, 1615857141, Spawn)
  143. AddConversationOption(conversation, "So I did all that for nothing?", "QuestChat_2_3")
  144. StartConversation(conversation, NPC, Spawn, "I didn't look, for the second meaning of life is that you must do what you say you will do. No matter how worthy the task, there may be no one to notice your efforts and yet you must complete the tasks you undertake. Even if someone is near, they are often far away.")
  145. end
  146. function QuestChat_2_3(NPC, Spawn)
  147. SetStepComplete(Spawn, ThreeMeaningsOfLife, 4)
  148. FaceTarget(NPC, Spawn)
  149. conversation = CreateConversation()
  150. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur009.mp3", "", "", 2774283468, 3531323088, Spawn)
  151. AddConversationOption(conversation, "Sarma Singebellows. All right, I'll be back.")
  152. StartConversation(conversation, NPC, Spawn, "You learned the second meaning of life, so it was hardly 'for nothing.' Curiosity enriches the mind and we must always look out for our own interests. However, there are others around us who can benefit from our strengths. I would like you to meet someone who might need your help: Sarma Singebellows. Speak with her.")
  153. end
  154. function QuestChat_3_1(NPC, Spawn)
  155. FaceTarget(NPC, Spawn)
  156. conversation = CreateConversation()
  157. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur009.mp3", "", "", 2774283468, 3531323088, Spawn)
  158. AddConversationOption(conversation, "Yes, I did.", "QuestChat_3_2")
  159. AddConversationOption(conversation, "Not yet.")
  160. StartConversation(conversation, NPC, Spawn, "Did you speak with Sarma Singebellows?")
  161. end
  162. function QuestChat_3_2(NPC, Spawn)
  163. SetStepComplete(Spawn, ThreeMeaningsOfLife, 6)
  164. FaceTarget(NPC, Spawn)
  165. conversation = CreateConversation()
  166. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur009.mp3", "", "", 2774283468, 3531323088, Spawn)
  167. AddConversationOption(conversation, "Not really.", "QuestChat_3_3")
  168. StartConversation(conversation, NPC, Spawn, "The final meaning the is selflessness. For though we are each the most important person to care for in our lives, we must also take care that we do not lose our ability to extend a helping hand to others around us. Do you understand these things?")
  169. end
  170. function QuestChat_3_3(NPC, Spawn)
  171. FaceTarget(NPC, Spawn)
  172. conversation = CreateConversation()
  173. PlayFlavor(NPC, "voiceover/english/the_curious_augur/enchanted/quests/quest_curious_augur/curious_augur009.mp3", "", "", 2774283468, 3531323088, Spawn)
  174. AddConversationOption(conversation, "I can only hope.")
  175. StartConversation(conversation, NPC, Spawn, "You are not ready, my child. A pity. Perhaps when you have studied for as many years as I have, you will reaize that these three meanings of life are the basis for all that you experience. Intellectual curiosity, doing things to benefit oneself as well as selflessness. Perhaps someday, you will understand.")
  176. end