9
3

TheWanderingAugur.lua 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. --[[
  2. Script Name : SpawnScripts/ThunderingSteppes/TheWanderingAugur.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.07.13 12:07:13
  5. Script Purpose : The Wandering Augur (2490318)
  6. :
  7. --]]
  8. local TheWanderersThreeMeaningsOfLife = 110
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, TheWanderersThreeMeaningsOfLife)
  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, TheWanderersThreeMeaningsOfLife) and not HasCompletedQuest(Spawn, TheWanderersThreeMeaningsOfLife) then
  19. -- start the quest
  20. PlayFlavor(NPC, "voiceover/english/the_wandering_augur/steppes/quests/quest_wandering_augur/wandering_augur001.mp3", "", "", 3928308346, 2492813375, 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, TheWanderersThreeMeaningsOfLife) and GetQuestStep(Spawn, TheWanderersThreeMeaningsOfLife) == 1 then
  25. -- on step 1
  26. PlayFlavor(NPC, "voiceover/english/the_wandering_augur/steppes/quests/quest_wandering_augur/wandering_augur004.mp3", "", "", 4182174294, 1820017120, Spawn)
  27. AddConversationOption(conversation, "Not yet.")
  28. StartConversation(conversation, NPC, Spawn, "Ah, you've returned. Do you understand the mysteries of the physical meanings of life?")
  29. elseif HasQuest(Spawn, TheWanderersThreeMeaningsOfLife) and GetQuestStep(Spawn, TheWanderersThreeMeaningsOfLife) == 2 then
  30. -- on step 2
  31. PlayFlavor(NPC, "voiceover/english/the_wandering_augur/steppes/quests/quest_wandering_augur/wandering_augur004.mp3", "", "", 4182174294, 1820017120, Spawn)
  32. AddConversationOption(conversation, "I suppose so.", "dlg_1_1")
  33. AddConversationOption(conversation, "Not yet.")
  34. StartConversation(conversation, NPC, Spawn, "Ah, you've returned. Do you understand the mysteries of the physical meanings of life?")
  35. elseif HasQuest(Spawn, TheWanderersThreeMeaningsOfLife) and GetQuestStep(Spawn, TheWanderersThreeMeaningsOfLife) == 3 then
  36. -- on step 3
  37. PlayFlavor(NPC, "voiceover/english/the_wandering_augur/steppes/quests/quest_wandering_augur/wandering_augur007.mp3", "", "", 1006683380, 911151650, Spawn)
  38. AddConversationOption(conversation, "Not yet.")
  39. StartConversation(conversation, NPC, Spawn, "You have learned about inner strength, my child? You have defeated the foes against whom I sent you?")
  40. elseif HasQuest(Spawn, TheWanderersThreeMeaningsOfLife) and GetQuestStep(Spawn, TheWanderersThreeMeaningsOfLife) == 4 then
  41. -- on step 4
  42. PlayFlavor(NPC, "voiceover/english/the_wandering_augur/steppes/quests/quest_wandering_augur/wandering_augur007.mp3", "", "", 1006683380, 911151650, Spawn)
  43. AddConversationOption(conversation, "Of course.", "dlg_2_1")
  44. AddConversationOption(conversation, "Not yet.")
  45. StartConversation(conversation, NPC, Spawn, "You have learned about inner strength, my child? You have defeated the foes against whom I sent you?")
  46. elseif HasQuest(Spawn, TheWanderersThreeMeaningsOfLife) and GetQuestStep(Spawn, TheWanderersThreeMeaningsOfLife) == 5 then
  47. -- on step 5
  48. PlayFlavor(NPC, "voiceover/english/the_wandering_augur/steppes/quests/quest_wandering_augur/wandering_augur010.mp3", "", "", 3280494285, 3614506473, Spawn)
  49. AddConversationOption(conversation, "How should I know? I haven't gone anywhere!")
  50. StartConversation(conversation, NPC, Spawn, "Did you set off in the right direction, my child?")
  51. elseif HasQuest(Spawn, TheWanderersThreeMeaningsOfLife) and GetQuestStep(Spawn, TheWanderersThreeMeaningsOfLife) == 6 then
  52. -- on step 6
  53. PlayFlavor(NPC, "voiceover/english/the_wandering_augur/steppes/quests/quest_wandering_augur/wandering_augur010.mp3", "", "", 3280494285, 3614506473, Spawn)
  54. AddConversationOption(conversation, "I guess.", "dlg_3_1")
  55. AddConversationOption(conversation, "How should I know? I haven't gone anywhere!")
  56. StartConversation(conversation, NPC, Spawn, "Did you set off in the right direction, my child?")
  57. elseif HasCompletedQuest(Spawn, TheWanderersThreeMeaningsOfLife) then
  58. -- finished the quest
  59. PlayFlavor(NPC, "voiceover/english/the_wandering_augur/steppes/quests/quest_wandering_augur/wandering_augur013.mp3", "", "", 1521418825, 1376165665, Spawn)
  60. AddConversationOption(conversation, "I'll be on my way.")
  61. 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.")
  62. end
  63. end
  64. function dlg_0_1(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. conversation = CreateConversation()
  67. PlayFlavor(NPC, "voiceover/english/the_wandering_augur/steppes/quests/quest_wandering_augur/wandering_augur002.mp3", "", "", 2562964464, 4217203499, Spawn)
  68. AddConversationOption(conversation, "The meanings of life, eh? I'm listening.", "dlg_0_2")
  69. AddConversationOption(conversation, "I'm not interested.")
  70. StartConversation(conversation, NPC, Spawn, "Many seek me, my child, for I hold the secrets to the meanings of life. The meanings are many yet few. They are expansive yet personal. They are wide-reaching while remaining local. The meanings of life are all around us and with my help, you can unlock them if you so desire.")
  71. end
  72. function dlg_0_2(NPC, Spawn)
  73. OfferQuest(NPC, Spawn, TheWanderersThreeMeaningsOfLife)
  74. end
  75. function dlg_1_1(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. conversation = CreateConversation()
  78. PlayFlavor(NPC, "voiceover/english/the_wandering_augur/steppes/quests/quest_wandering_augur/wandering_augur005.mp3", "", "", 1955011218, 3592248483, Spawn)
  79. AddConversationOption(conversation, "Inner strength?", "dlg_1_2")
  80. AddConversationOption(conversation, "I don't have time for inner strength.")
  81. StartConversation(conversation, NPC, Spawn, "The physical meaning is the way of pain, my child. Pain can be overcome through strengthening one's mind. By focusing on the learning and not the pain, you will realize the second meaning of life: inner strength.")
  82. end
  83. function dlg_1_2(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. conversation = CreateConversation()
  86. SetStepComplete(Spawn, TheWanderersThreeMeaningsOfLife, 2)
  87. PlayFlavor(NPC, "voiceover/english/the_wandering_augur/steppes/quests/quest_wandering_augur/wandering_augur006.mp3", "", "", 14505144, 1932942931, Spawn)
  88. AddConversationOption(conversation, "I wasn't asking a question, I was...oh, never mind. I'll be back.")
  89. StartConversation(conversation, NPC, Spawn, "A wise question, young one. The only way you will learn inner strength is through perseverance. And perseverance is remaining steadfast no matter how difficult the situation. To this end, you must defeat your foes in single combat and steel your mind against all pain. Go, then, and return when you are ready for the final meaning of life.")
  90. end
  91. function dlg_2_1(NPC, Spawn)
  92. FaceTarget(NPC, Spawn)
  93. conversation = CreateConversation()
  94. PlayFlavor(NPC, "voiceover/english/the_wandering_augur/steppes/quests/quest_wandering_augur/wandering_augur008.mp3", "", "", 915290527, 2753306989, Spawn)
  95. AddConversationOption(conversation, "How do you know if it's the right direction?", "dlg_2_2")
  96. AddConversationOption(conversation, "I'm not ready to finish this.")
  97. StartConversation(conversation, NPC, Spawn, "I have led you towards two of the meanings of life. There is but one more that I can share with you. This is the most subtle of meanings and the one at which most students balk. It is patience and learning to trust that what will be, will be. The longest journey starts with a single step, whether in the right direction or not.")
  98. end
  99. function dlg_2_2(NPC, Spawn)
  100. FaceTarget(NPC, Spawn)
  101. conversation = CreateConversation()
  102. SetStepComplete(Spawn, TheWanderersThreeMeaningsOfLife, 4)
  103. PlayFlavor(NPC, "voiceover/english/the_wandering_augur/steppes/quests/quest_wandering_augur/wandering_augur009.mp3", "", "", 1926047857, 1251915059, Spawn)
  104. AddConversationOption(conversation, "You didn't answer my question. Never mind. I'll be back.")
  105. StartConversation(conversation, NPC, Spawn, "I always know whether I am setting off in the right direction. The question is, do you? Go, then, and see whether you have the patience to conquer the third meaning of life. I will wait for you here. Patiently, of course.")
  106. end
  107. function dlg_3_1(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. conversation = CreateConversation()
  110. PlayFlavor(NPC, "voiceover/english/the_wandering_augur/steppes/quests/quest_wandering_augur/wandering_augur011.mp3", "", "", 2965742070, 4163652707, Spawn)
  111. AddConversationOption(conversation, "Not really. Are all Augurs as obtuse as you?", "dlg_3_2")
  112. StartConversation(conversation, NPC, Spawn, "As you see, sometimes many directions are correct. We learn through trial and error which direction is correct at that moment. The next time we set forth, we take what we have learned and apply it to our latest situation. Do you understand now, my child?")
  113. end
  114. function dlg_3_2(NPC, Spawn)
  115. FaceTarget(NPC, Spawn)
  116. conversation = CreateConversation()
  117. SetStepComplete(Spawn, TheWanderersThreeMeaningsOfLife, 6)
  118. PlayFlavor(NPC, "voiceover/english/the_wandering_augur/steppes/quests/quest_wandering_augur/wandering_augur012.mp3", "", "", 1899808569, 4168257450, Spawn)
  119. AddConversationOption(conversation, "Patience. Hmm.")
  120. 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 realize that these three meanings of life are the basis for all that you experience. The physical meaning, inner strength and patience. Yes, patience, above all else.")
  121. end