TheTravelingAugur.lua 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. --[[
  2. Script Name : SpawnScripts/Nektulos/TheTravelingAugur.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.06.15 06:06:22
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheTravelersThreeMeaningsOfLife = 5255
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. if not HasQuest(Spawn, TheTravelersThreeMeaningsOfLife) then
  14. local conversation = CreateConversation()
  15. AddConversationOption(conversation, "I wasn't looking for you.", "Option1")
  16. AddConversationOption(conversation, "I have no idea what you're talking about.")
  17. 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.")
  18. elseif GetQuestStep(Spawn, TheTravelersThreeMeaningsOfLife) == 1 or GetQuestStep(Spawn, TheTravelersThreeMeaningsOfLife) == 2 or GetQuestStep(Spawn, TheTravelersThreeMeaningsOfLife) == 3 or GetQuestStep(Spawn, TheTravelersThreeMeaningsOfLife) == 4 then
  19. QuestProgress1(NPC, Spawn)
  20. elseif GetQuestStep(Spawn, TheTravelersThreeMeaningsOfLife) == 5 or GetQuestStep(Spawn, TheTravelersThreeMeaningsOfLife) == 6 or GetQuestStep(Spawn, TheTravelersThreeMeaningsOfLife) == 7 then
  21. QuestProgress2(NPC, Spawn)
  22. elseif GetQuestStep(Spawn, TheTravelersThreeMeaningsOfLife) == 8 or GetQuestStep(Spawn, TheTravelersThreeMeaningsOfLife) == 9 then
  23. QuestProgress3(NPC, Spawn)
  24. elseif HasCompletedQuest(Spawn, TheTravelersThreeMeaningsOfLife) then
  25. QuestFinished(NPC, Spawn)
  26. end
  27. end
  28. function Option1(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. local conversation = CreateConversation()
  31. AddConversationOption(conversation, "The meanings of life?", "offer")
  32. AddConversationOption(conversation, "I'm not interested.")
  33. StartConversation(conversation, NPC, Spawn, "And yet, you have found me, have you not? Whether consciously or not, many seek the wisdom and foresight of the Augurs. We are many, as there are many paths to self-awareness and enrichment. I can give you the keys to some of the meanings of life, if you desire.")
  34. end
  35. function offer(NPC, Spawn)
  36. OfferQuest(NPC, Spawn, TheTravelersThreeMeaningsOfLife)
  37. end
  38. function QuestFinished(NPC, Spawn)
  39. PlayAnimation(NPC, 11882)
  40. local conversation = CreateConversation()
  41. AddConversationOption(conversation, "I'll be on my way.")
  42. 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.")
  43. end
  44. function QuestProgress1(NPC, Spawn)
  45. local conversation = CreateConversation()
  46. PlayAnimation(NPC, 121)
  47. if GetQuestStep(Spawn, TheTravelersThreeMeaningsOfLife) == 4 then
  48. AddConversationOption(conversation, "I traveled far. I mean, yes.", "Option2")
  49. end
  50. AddConversationOption(conversation, "Not yet.")
  51. StartConversation(conversation, NPC, Spawn, "And so you return. Have you traveled far and seen much?")
  52. end
  53. function QuestProgress2(NPC, Spawn)
  54. local conversation = CreateConversation()
  55. PlayAnimation(NPC, 11882)
  56. if GetQuestStep(Spawn, TheTravelersThreeMeaningsOfLife) == 7 then
  57. AddConversationOption(conversation, "Yes, finally.", "Option3")
  58. end
  59. AddConversationOption(conversation, "I'm working on it.")
  60. StartConversation(conversation, NPC, Spawn, "Have you been able to select a single item from its greater surroundings?")
  61. end
  62. function QuestProgress3(NPC, Spawn)
  63. local conversation = CreateConversation()
  64. PlayAnimation(NPC, 11882)
  65. if GetQuestStep(Spawn, TheTravelersThreeMeaningsOfLife) == 9 then
  66. AddConversationOption(conversation, "You didn't tell me anything about seeing the future.", "Option4")
  67. end
  68. AddConversationOption(conversation, "Yes, well, I'm off again.")
  69. StartConversation(conversation, NPC, Spawn, "You've returned, as I had foreseen.")
  70. end
  71. function Option2(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. local conversation = CreateConversation()
  74. AddConversationOption(conversation, "Huh?", "Option3")
  75. AddConversationOption(conversation, "I'll understand later.")
  76. StartConversation(conversation, NPC, Spawn, "Broadening one's mind does not mean neglecting that which is close at hand. The act of harvesting even one item from a group of weeds, or of catching a single fish from a school is to learn that everything large is comprised of another that is small. Do you understand this, my child?")
  77. end
  78. function Option3(NPC, Spawn)
  79. SetStepComplete(Spawn, TheTravelersThreeMeaningsOfLife, 4)
  80. FaceTarget(NPC, Spawn)
  81. local conversation = CreateConversation()
  82. AddConversationOption(conversation, "I wasn't asking a question, I was...oh, never mind. I'll be back.")
  83. StartConversation(conversation, NPC, Spawn, "Must you answer each question of mine with a question of your own? It is quite disconcerting. In any event, go into the wilds and search for a single item within a larger group of similar items. When you have the skill to separate a mote of dust from the earth, return to me.")
  84. end
  85. function Option4(NPC, Spawn)
  86. PlayAnimation(NPC, 11909)
  87. FaceTarget(NPC, Spawn)
  88. local conversation = CreateConversation()
  89. AddConversationOption(conversation, "Not really.", "Option5")
  90. StartConversation(conversation, NPC, Spawn, "I am not telling you everything, only that which you might comprehend. Your personal efforts work in concert with the broadening of your mind and the exquisite vision techniques of seeing that which is unseen by many. Three meanings of life that coalesce into one simple constant. Do you understand now, my child?")
  91. end
  92. function Option5(NPC, Spawn)
  93. SetStepComplete(Spawn, TheTravelersThreeMeaningsOfLife, 9)
  94. FaceTarget(NPC, Spawn)
  95. local conversation = CreateConversation()
  96. AddConversationOption(conversation, "Thank you, I think.")
  97. StartConversation(conversation, NPC, Spawn, "Then 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 essential elements of all that you experience. The broadening of the mind, seeing the individual amongst the many and personal effort. I foresee much personal effort on your part.")
  98. end
  99. function respawn(NPC)
  100. spawn(NPC)
  101. end