9
3

aSapswillsoothsayer.lua 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. --[[
  2. Script Name : aSapswillsoothsayer
  3. Script Purpose : Quest and Conversations
  4. Script Author : Unknown
  5. Script Date : 2020.04.11
  6. Script Notes : Need loot changes
  7. Modified Date : 2020.04.11
  8. Modified by : premierio015
  9. Modified Notes : Added missing Favors
  10. --]]
  11. local GhostsAndGoblins = 184
  12. local DoggoneIt = 165
  13. local ADiplomaticMission = 166
  14. function spawn(NPC)
  15. ProvidesQuest(NPC, ADiplomaticMission)
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. if HasCompletedQuest(Spawn, GhostsAndGoblins) then
  23. GrexxPromises(NPC, Spawn, 0)
  24. elseif HasQuest(Spawn, GhostsAndGoblins) then
  25. if GetQuestStep(Spawn, GhostsAndGoblins) == 4 then
  26. GrexxPromises(NPC, Spawn, 1)
  27. elseif GetQuestStep(Spawn, GhostsAndGoblins) >= 4 and GetQuestStep(Spawn, GhostsAndGoblins) <= 8 then
  28. GrexxPromises(NPC, Spawn, 0)
  29. elseif GetQuestStep(Spawn, GhostsAndGoblins) == 9 then
  30. GrexxPromises(NPC, Spawn, 2)
  31. end
  32. else
  33. GrexxPromises(NPC, Spawn, 0)
  34. end
  35. end
  36. function GrexxPromises(NPC, Spawn, Choice)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. if HasCompletedQuest(Spawn, DoggoneIt) then
  40. if HasCompletedQuest(Spawn, ADiplomaticMission) then
  41. elseif HasQuest(Spawn, ADiplomaticMission) then
  42. AddConversationOption(conversation, "I just wanted to say, about that present...", "GiftFromQeynos")
  43. else
  44. AddConversationOption(conversation, "I just wanted to say, about that present...", "GiftFromQeynos")
  45. end
  46. elseif HasQuest(Spawn, DoggoneIt) then
  47. if GetQuestStep(Spawn, DoggoneIt) == 7 then
  48. AddConversationOption(conversation, "I bring you a gift from the people of Qeynos.", "GiftFromQeynos")
  49. end
  50. end
  51. if Choice == 1 then
  52. AddConversationOption(conversation, "The Forest Keeper sent me to ...", "ForestKeeperSentMe")
  53. elseif Choice == 2 then
  54. AddConversationOption(conversation, "I've gotten the items you've asked for.", "GotYourItemsBitch")
  55. end
  56. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_sapswill_soothsayer/tutorial_island02_revamp/quests/sapswill_soothsayer/sapswill_soothsayer001.mp3", "", "", 3035051138, 3409395583, Spawn)
  57. AddConversationOption(conversation, "I'll bet they are.")
  58. StartConversation(conversation, NPC, Spawn, "Grexx promises us and his promise is kept!")
  59. end
  60. function ForestKeeperSentMe(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. conversation = CreateConversation()
  63. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_sapswill_soothsayer/tutorial_island02_revamp/quests/sapswill_soothsayer/sapswill_soothsayer002.mp3", "", "", 2152575465, 987709738, Spawn)
  64. AddConversationOption(conversation, "But what...", "ButWhat")
  65. StartConversation(conversation, NPC, Spawn, "Forest Keeper, big tree! Yes, yes, waiting for you. Big tree, big promise! Water is needed, yes! Three waters, fallen from the skies and the roots from deep beneath! Fetch the waters! Gather the roots!")
  66. end
  67. function ButWhat(NPC, Spawn)
  68. SetStepComplete(Spawn, GhostsAndGoblins, 4)
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_sapswill_soothsayer/tutorial_island02_revamp/quests/sapswill_soothsayer/sapswill_soothsayer003.mp3", "", "", 993058875, 4130995149, Spawn)
  72. AddConversationOption(conversation, "Well. Okay.")
  73. StartConversation(conversation, NPC, Spawn, "Nothing more to say! Big tree sends you to me to help! Big tree keeps promise! Bring waters and roots first, then sayings I will sooth! Must bring to me, or nothing more will I say!")
  74. end
  75. function GotYourItemsBitch(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. conversation = CreateConversation()
  78. AddConversationOption(conversation, "The Forest Keeper said you'd know how to stop the corruption of the colony.", "ForestKeeperSaid")
  79. StartConversation(conversation, NPC, Spawn, "Yes! Yes! Freshest waters! Tasty roots! Now will I tell you what you want to know. What you want to know?")
  80. end
  81. function ForestKeeperSaid(NPC, Spawn)
  82. FaceTarget(NPC, Spawn)
  83. conversation = CreateConversation()
  84. AddConversationOption(conversation, "Then what was all that stuff for?", "StuffFor")
  85. StartConversation(conversation, NPC, Spawn, "Me? No! Grexx knows all, no sayings need to sooth on that! Ha! Why tree tell you such a joke? Ha! Evil things creeping up on poor gobbies, long time now! Big tree is wrong, nothing new to know about that. Happy you came to help us, though!")
  86. end
  87. function StuffFor(NPC, Spawn)
  88. FaceTarget(NPC, Spawn)
  89. conversation = CreateConversation()
  90. AddConversationOption(conversation, "You mean you're going to make a brew out of them?", "MakeBrew")
  91. StartConversation(conversation, NPC, Spawn, "Ah, tasty roots! Mash them up, grind them up and soak in the waters. After the moons are new again, ready to drink, it is! Helps to forget, helps to remember. Tasty Roots!")
  92. end
  93. function MakeBrew(NPC, Spawn)
  94. SetStepComplete(Spawn, GhostsAndGoblins, 9)
  95. FaceTarget(NPC, Spawn)
  96. conversation = CreateConversation()
  97. AddConversationOption(conversation, "I don't think it's very even.")
  98. StartConversation(conversation, NPC, Spawn, "Yes, yes! Tasty brew! If you knew there was no sooth to be said, would you have got tasty roots and fresh waters for us? No! So now we have them and now you will know as much as Sapswills! Even trade! Even trade! Share with you, we will, too!")
  99. end
  100. ------------------------------------------------------------------------------------------
  101. -- diplomat quest
  102. ------------------------------------------------------------------------------------------
  103. function GiftFromQeynos(NPC, Spawn)
  104. if HasQuest(Spawn, DoggoneIt) and HasItem(Spawn, 1565) then
  105. -- remove a Diplomatic Gift
  106. RemoveItem(Spawn, 1565)
  107. SetStepComplete(Spawn, DoggoneIt, 7)
  108. end
  109. FaceTarget(NPC, Spawn)
  110. conversation = CreateConversation()
  111. if not HasQuest(Spawn, ADiplomaticMission) and not HasCompletedQuest(Spawn, ADiplomaticMission) and HasCompletedQuest(Spawn, DoggoneIt) then
  112. AddConversationOption(conversation, "It's a small token of friendship. A diplomatic gesture.", "TokenOfFriendship")
  113. end
  114. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_sapswill_soothsayer/tutorial_island02_revamp/quests/sapswill_soothsayer/sapswill_soothsayer008.mp3", "", "", 4111507292, 2842514657, Spawn)
  115. AddConversationOption(conversation, "It's my pleasure to meet you.")
  116. StartConversation(conversation, NPC, Spawn, "Hello! Hello! I knew you would be coming! I knew! And bringing a present...we loves presents!")
  117. end
  118. ------------------------------------------------------------------------------------------
  119. -- diplomat quest
  120. ------------------------------------------------------------------------------------------
  121. function TokenOfFriendship(NPC, Spawn)
  122. FaceTarget(NPC, Spawn)
  123. conversation = CreateConversation()
  124. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/a_sapswill_soothsayer/tutorial_island02_revamp/quests/sapswill_soothsayer/sapswill_soothsayer009.mp3", "", "", 3719258575, 2018058923, Spawn)
  125. AddConversationOption(conversation, "I'll pay my respect to your...er people.", "OfferQuest1")
  126. AddConversationOption(conversation, "I need to run.")
  127. StartConversation(conversation, NPC, Spawn, "Friends for life, we are now! Is our tradition to greet everyone we meet. Go meet the Sapswills! Is the diplomatic way! Hail them all! We like friends! Meet the Sapswills, then meet High Chiefain Grexx! He likes friends too! To long life and happy friendships!")
  128. end
  129. function OfferQuest1(NPC, Spawn)
  130. FaceTarget(NPC, Spawn)
  131. OfferQuest(NPC, Spawn, ADiplomaticMission)
  132. end