BendikJonkers.lua 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. --[[
  2. Script Name : SpawnScripts/Edgewater/BendikJonkers.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.06 03:07:36
  5. Script Purpose :
  6. :
  7. --]]
  8. local InsideTheEdgewaterDrains = 5303
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, InsideTheEdgewaterDrains)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. if not HasQuest(Spawn, InsideTheEdgewaterDrains) and not HasCompletedQuest(Spawn, InsideTheEdgewaterDrains) then
  15. local conversation = CreateConversation()
  16. PlayFlavor(NPC, "voiceover/english/bendik_jonkers/fprt_sewer_epic03/bendik_jonkers000.mp3", "", "", 1175371605, 527423155, Spawn)
  17. AddConversationOption(conversation, "That's a friendly greeting.", "Option1")
  18. AddConversationOption(conversation, "Just passing through.")
  19. StartConversation(conversation, NPC, Spawn, "Unless you've got the wit to help me, leave me be.")
  20. elseif GetQuestStep(Spawn, InsideTheEdgewaterDrains) <= 5 then
  21. QuestProgress(NPC, Spawn)
  22. elseif GetQuestStep(Spawn, InsideTheEdgewaterDrains) == 7 or GetQuestStep(Spawn, InsideTheEdgewaterDrains) == 8 then
  23. PlayFlavor(NPC, "", "Those Murkwater henchmen sure are slimy. Can't tell which one Madame Kisa trusts with those keys!", "shrug", 1689589577, 4560189, Spawn)
  24. elseif HasCompletedQuest(Spawn, InsideTheEdgewaterDrains) then
  25. PlayFlavor(NPC, "", "So many parts to find, so many things to build!", "happy", 1689589577, 4560189, Spawn)
  26. end
  27. end
  28. function Option1(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. local conversation = CreateConversation()
  31. PlayFlavor(NPC, "voiceover/english/bendik_jonkers/fprt_sewer03/bendik_jonkers001.mp3", "", "", 4081751692, 4069071038, Spawn)
  32. AddConversationOption(conversation, "Two trolls walked into a bar...", "Option2")
  33. AddConversationOption(conversation, "I've got more wit than you.", "Option3")
  34. AddConversationOption(conversation, "I'm not interested in whatever you want.")
  35. StartConversation(conversation, NPC, Spawn, "I am not unfriendly by nature. It's just that...I'm on an important mission and only those of a certain caliber would be able to help. I like to weed out the riff-raff right at the start. So, have you wit enough to help?")
  36. end
  37. function Option2(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. local conversation = CreateConversation()
  40. PlayFlavor(NPC, "voiceover/english/bendik_jonkers/fprt_sewer03/bendik_jonkers002.mp3", "", "", 2200535807, 1036768192, Spawn)
  41. AddConversationOption(conversation, "(continue)", "Option3")
  42. AddConversationOption(conversation, "I'm not interested in being useful to you.")
  43. StartConversation(conversation, NPC, Spawn, "...and the second one said to the first, \"Ouch! That hurt!\" I've heard that one plenty of times. Well, you could be useful, even if you haven't much wit.")
  44. end
  45. function Option3(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. local conversation = CreateConversation()
  48. PlayFlavor(NPC, "voiceover/english/bendik_jonkers/fprt_sewer03/bendik_jonkers003.mp3", "", "", 3657475002, 3361786173, Spawn)
  49. AddConversationOption(conversation, "Yes. What of him?", "Option5")
  50. AddConversationOption(conversation, "No. Who is he?", "Option4")
  51. StartConversation(conversation, NPC, Spawn, "Have you heard of Bodwin Zevuwickle?")
  52. end
  53. function Option4(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. local conversation = CreateConversation()
  56. PlayFlavor(NPC, "voiceover/english/bendik_jonkers/fprt_sewer03/bendik_jonkers004.mp3", "", "", 2107818020, 1856424121, Spawn)
  57. AddConversationOption(conversation, "(continue)", "Option5")
  58. StartConversation(conversation, NPC, Spawn, "Zevuwickle's a gnome, same as me, an inventor. He did some, shall we say, unauthorized work down in the sewers which he thinks has removed any traces of his discarded inventions.")
  59. end
  60. function Option5(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. local conversation = CreateConversation()
  63. PlayFlavor(NPC, "voiceover/english/bendik_jonkers/fprt_sewer03/bendik_jonkers005.mp3", "", "", 2844421101, 3717752420, Spawn)
  64. AddConversationOption(conversation, "Five pieces, still here in the sewers?", "Option6")
  65. AddConversationOption(conversation, "I'll be back later to chat.")
  66. StartConversation(conversation, NPC, Spawn, "My sources tell me that some pieces of one of his unfinished projects are still here for the taking in the catacombs. I've gathered seven pieces so far on my own but there's five other pieces that I haven't been able to locate.")
  67. end
  68. function Option6(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. local conversation = CreateConversation()
  71. PlayFlavor(NPC, "voiceover/english/bendik_jonkers/fprt_sewer03/bendik_jonkers006.mp3", "", "", 2584501163, 2103795671, Spawn)
  72. AddConversationOption(conversation, "What's that?", "offer")
  73. AddConversationOption(conversation, "On second thought, no, I haven't time for this now.")
  74. StartConversation(conversation, NPC, Spawn, "Yep. This is what's left: an ancient sieve, some copper wire, a rusted iron bracket, a length of corroded chain, and a set of nesting cogwheels. Pretty pedestrian stuff. Dunno what he was making, but I know what I'll do with this.")
  75. end
  76. function Option7(NPC, Spawn) -- PROGRESS
  77. FaceTarget(NPC, Spawn)
  78. local conversation = CreateConversation()
  79. PlayFlavor(NPC, "voiceover/english/bendik_jonkers/fprt_sewer_epic03/bendik_jonkers010.mp3", "", "", 3615679335, 4197295400, Spawn)
  80. AddConversationOption(conversation, "I will return.")
  81. StartConversation(conversation, NPC, Spawn, "You must hurry! If Zevuwickle learns that these pieces still exist...well, who knows what would happen?")
  82. end
  83. function Option8(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. local conversation = CreateConversation()
  86. PlayFlavor(NPC, "voiceover/english/bendik_jonkers/fprt_sewer_epic03/bendik_jonkers011.mp3", "", "", 2505330643, 3531153923, Spawn)
  87. AddConversationOption(conversation, "So, about that reward you mentioned?", "Option9")
  88. AddConversationOption(conversation, "You're welcome. I guess.")
  89. StartConversation(conversation, NPC, Spawn, "Very fortunate, very fortunate indeed, eh? Thanks.")
  90. end
  91. function Option9(NPC, Spawn)
  92. FaceTarget(NPC, Spawn)
  93. local conversation = CreateConversation()
  94. PlayFlavor(NPC, "voiceover/english/bendik_jonkers/fprt_sewer_epic03/bendik_jonkers012.mp3", "", "", 3167834561, 2996373992, Spawn)
  95. AddConversationOption(conversation, "I distinctly recall mention of a reward. Perhaps we should settle the question the old-fashioned way?", "Option10")
  96. AddConversationOption(conversation, "I will have to do this some other time.")
  97. StartConversation(conversation, NPC, Spawn, "Did I say there'd be a reward for helping me? You must be mistaken.")
  98. end
  99. function Option10(NPC, Spawn)
  100. FaceTarget(NPC, Spawn)
  101. local conversation = CreateConversation()
  102. PlayFlavor(NPC, "voiceover/english/bendik_jonkers/fprt_sewer_epic03/bendik_jonkers013.mp3", "", "", 3620148847, 3556060566, Spawn)
  103. AddConversationOption(conversation, "So my promised reward was stolen by one of the Murkwaters?", "Option11")
  104. AddConversationOption(conversation, "Forget it.")
  105. StartConversation(conversation, NPC, Spawn, "Now, now, no need to get testy. Fact is I haven't got what I was going to give you on me. While I was waiting for you -- quite the long wait, if you don't mind me saying -- one of those Murkwater henchmen snuck up and swiped it.")
  106. end
  107. function Option11(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. local conversation = CreateConversation()
  110. PlayFlavor(NPC, "voiceover/english/bendik_jonkers/fprt_sewer_epic03/bendik_jonkers014.mp3", "", "", 855139121, 4239745221, Spawn)
  111. AddConversationOption(conversation, "That seems unfair somehow.", "Option12")
  112. AddConversationOption(conversation, "Never mind.")
  113. StartConversation(conversation, NPC, Spawn, "Yes, I'm afraid so. Now, you don't have to go claim it if you don't want to, but it was a rather nice bit. If you want to claim your reward, I'm afraid there's a bit of work to do.")
  114. end
  115. function Option12(NPC, Spawn)
  116. FaceTarget(NPC, Spawn)
  117. local conversation = CreateConversation()
  118. PlayFlavor(NPC, "voiceover/english/bendik_jonkers/fprt_sewer_epic03/bendik_jonkers015.mp3", "", "", 3272779215, 3056774670, Spawn)
  119. AddConversationOption(conversation, "Fine.", "Option13")
  120. AddConversationOption(conversation, "Never mind.")
  121. StartConversation(conversation, NPC, Spawn, "Well, it's up to you. You can probably convince one of the Murkwater henchmen to cough up a key to their hideout. Then you can take up the matter of their thievery with the head of their gang, Madame Kisa. She's their top dog. Er, rat...onga.")
  122. end
  123. function Option13(NPC, Spawn)
  124. SetStepComplete(Spawn, InsideTheEdgewaterDrains, 6)
  125. FaceTarget(NPC, Spawn)
  126. local conversation = CreateConversation()
  127. PlayFlavor(NPC, "voiceover/english/bendik_jonkers/fprt_sewer_epic03/bendik_jonkers016.mp3", "", "", 3211375738, 1902642413, Spawn)
  128. AddConversationOption(conversation, "Thanks.")
  129. StartConversation(conversation, NPC, Spawn, "All ratonga look alike to me, so I wouldn't know which Murkwater henchman has a key. Madame Kisa keeps them on a pretty short leash, as it were, so not all of them have one. Good luck!")
  130. end
  131. function QuestProgress(NPC, Spawn)
  132. local conversation = CreateConversation()
  133. PlayFlavor(NPC, "voiceover/english/bendik_jonkers/fprt_sewer_epic03/bendik_jonkers009.mp3", "", "", 863355354, 1854452925, Spawn)
  134. if GetQuestStep(Spawn, InsideTheEdgewaterDrains) == 6 then
  135. AddConversationOption(conversation, "Yes, here they are.", "Option8")
  136. end
  137. AddConversationOption(conversation, "Not yet.", "Option7")
  138. StartConversation(conversation, NPC, Spawn, "Have you got the five items I need?")
  139. end
  140. function offer(NPC, Spawn)
  141. OfferQuest(NPC, Spawn, InsideTheEdgewaterDrains)
  142. end
  143. function respawn(NPC)
  144. spawn(NPC)
  145. end