9
3

EbikWobblecog.lua 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/EbikWobblecog.lua
  3. Script Purpose : Ebik Wobblecog
  4. Script Author : John Adams
  5. Script Date : 2008.09.20
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. Modified Date : 2020.10.04
  8. Modified by : premierio015
  9. Modified Notes : Added Anims
  10. --]]
  11. local EbiksMissingParts = 185
  12. function spawn(NPC)
  13. ProvidesQuest(NPC, EbiksMissingParts)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. if HasQuest(Spawn, EbiksMissingParts) then
  22. if GetQuestStep(Spawn, EbiksMissingParts) == 4 then
  23. -- handing in quest
  24. SetStepComplete(Spawn, EbiksMissingParts, 4)
  25. PlayFlavor(NPC, "voiceover/english/island_of_refuge/ebikwobblecog/ior_ebikwobblecog_021.mp3", "", "thank", 1116547002, 1635450019, Spawn)
  26. AddConversationOption(conversation, "Good luck.")
  27. StartConversation(conversation, NPC, Spawn, "Yes, yes, yes! There are all the parts I need! Thank you ever so much. Please take this as a token of my appreciation. I'm sure the boat will be here any minute now.")
  28. else
  29. -- hasn't finished the quest yet
  30. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_secondtalk_01.mp3", "", "nod", 688070292, 1255284608, Spawn)
  31. AddConversationOption(conversation, "Okay.")
  32. StartConversation(conversation, NPC, Spawn, "I need all the parts, I can't leave without them and luckily the boat to Qeynos hasn't showed up yet. Please help me find all the parts.")
  33. end
  34. elseif HasCompletedQuest(Spawn, EbiksMissingParts) then
  35. -- quest completed
  36. AddConversationOption(conversation, "Good luck.")
  37. StartConversation(conversation, NPC, Spawn, "The boat really should be here by now. It must be running late, or maybe my pocket clock has a frizzer misaligned again... Hmmmm.")
  38. else
  39. -- does not have the quest yet
  40. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_01.mp3", "", "hello", 2713964680, 2172979410, Spawn)
  41. AddConversationOption(conversation, "Why are you going to Qeynos?", "dlg_23_1")
  42. AddConversationOption(conversation, "Good luck with that.")
  43. StartConversation(conversation, NPC, Spawn, "Why, hello there! I was just sitting here waiting for the boat to Qeynos.")
  44. end
  45. end
  46. function dlg_23_1(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. conversation = CreateConversation()
  49. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_02.mp3", "", "nod", 532888096, 1705696510, Spawn)
  50. AddConversationOption(conversation, "What was the news?", "dlg_23_2")
  51. AddConversationOption(conversation, "Safe travels.")
  52. StartConversation(conversation, NPC, Spawn, "Ahh, I'm going there to meet my father. He dropped me off on this island because he was afraid our boat wouldn't make the trip. I begged him to stay, but he said he had urgent news for Qeynos.")
  53. end
  54. function dlg_23_2(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. conversation = CreateConversation()
  57. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_03.mp3", "", "confused", 3248832255, 3165995891, Spawn)
  58. AddConversationOption(conversation, "Why was his ship distracting?", "dlg_23_3")
  59. AddConversationOption(conversation, "Goodbye.")
  60. StartConversation(conversation, NPC, Spawn, "I'm not quite sure. He was in such a hurry that he never told me. Also I may have been a little distracted by his ship, it was really amazing.")
  61. end
  62. function dlg_23_3(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_04.mp3", "", "agree", 1312724951, 594166513, Spawn)
  66. AddConversationOption(conversation, "Go on.", "dlg_23_4")
  67. StartConversation(conversation, NPC, Spawn, "Because it was under water, of course! Have you ever seen a boat that runs beneath the waves? I certainly haven't. It was such genius, I spent the entire voyage inspecting it.")
  68. end
  69. function dlg_23_4(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. conversation = CreateConversation()
  72. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_05.mp3", "", "sigh", 2209355729, 410792148, Spawn)
  73. AddConversationOption(conversation, "What curse?", "dlg_23_5")
  74. AddConversationOption(conversation, "I want no part of your curse, goodbye.")
  75. StartConversation(conversation, NPC, Spawn, "I'm certain he hadn't planned on it falling below the surface. It's just another example of our curse, I suppose.")
  76. end
  77. function dlg_23_5(NPC, Spawn)
  78. FaceTarget(NPC, Spawn)
  79. conversation = CreateConversation()
  80. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island02/ebik_firsttalk_06.mp3", "", "nod", 848346297, 415788395, Spawn)
  81. AddConversationOption(conversation, "Yes, I'd like that.", "dlg_23_6")
  82. AddConversationOption(conversation, "Not really.")
  83. StartConversation(conversation, NPC, Spawn, "Surely you've heard of the Wobblecog family curse of miscalculation? No... no, I suppose you haven't, have you? Well, it doesn't appear that the boat is here yet. I imagine I've got time to tell you about our curse if you'd like to hear it.")
  84. end
  85. function dlg_23_6(NPC, Spawn)
  86. FaceTarget(NPC, Spawn)
  87. conversation = CreateConversation()
  88. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island02/ebik_firsttalk_07.mp3", "", "agree", 489617943, 459263052, Spawn)
  89. AddConversationOption(conversation, "Please go on.", "dlg_23_7")
  90. StartConversation(conversation, NPC, Spawn, "Very well. It began long ago in Ak'Anon when the king decided to hold a contest. It was grand. The king invited everyone to make a clockwork king, and the one that most resembled him would win.")
  91. end
  92. function dlg_23_7(NPC, Spawn)
  93. FaceTarget(NPC, Spawn)
  94. conversation = CreateConversation()
  95. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_08.mp3", "", "nod", 2658473484, 2726816701, Spawn)
  96. AddConversationOption(conversation, "What happened then?", "dlg_23_8")
  97. AddConversationOption(conversation, "That's nice, fairwell.")
  98. StartConversation(conversation, NPC, Spawn, "The two favored inventors were my ancestor, Tizik Wobblecog, and an ingenious, but maligned tinkerer named Meldrath. They both submitted their designs, and after much deliberation it was found that the Wobblecog plan provided a much more accurate interpretation of the king.")
  99. end
  100. function dlg_23_8(NPC, Spawn)
  101. FaceTarget(NPC, Spawn)
  102. conversation = CreateConversation()
  103. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_09.mp3", "", "sigh", 168646029, 2064100068, Spawn)
  104. AddConversationOption(conversation, "Do go on.", "dlg_23_9")
  105. StartConversation(conversation, NPC, Spawn, "Tizik's clockwork became the royal doppelganger of course, and Meldrath became infuriated. He placed a curse on my family that has lasted every generation from then onward.")
  106. end
  107. function dlg_23_9(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. conversation = CreateConversation()
  110. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_10.mp3", "", "crazy", 468670444, 2791058506, Spawn)
  111. AddConversationOption(conversation, "That does sound bothersome.", "dlg_23_10")
  112. StartConversation(conversation, NPC, Spawn, "He cursed us with miscalculation! It's nearly driven my family to madness. ")
  113. end
  114. function dlg_23_10(NPC, Spawn)
  115. FaceTarget(NPC, Spawn)
  116. conversation = CreateConversation()
  117. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_11.mp3", "", "nod", 1677273819, 2525140274, Spawn)
  118. AddConversationOption(conversation, "That sounds devastating.", "dlg_23_11")
  119. AddConversationOption(conversation, "Good luck with that.")
  120. StartConversation(conversation, NPC, Spawn, "We're the most ingenious inventors, you see. We have truly inspired ideas, but can not ever see them through to completion because we fumble some inane formula.")
  121. end
  122. function dlg_23_11(NPC, Spawn)
  123. FaceTarget(NPC, Spawn)
  124. conversation = CreateConversation()
  125. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_12.mp3", "", "agree", 605082040, 3732575966, Spawn)
  126. AddConversationOption(conversation, "I see.", "dlg_23_12")
  127. StartConversation(conversation, NPC, Spawn, "Oh, it is! Take my father for instance. We thought he had finally overcome the curse when he made that boat. It looked so beautiful and was more complete than any other Wobblecog invention has been in centuries. ")
  128. end
  129. function dlg_23_12(NPC, Spawn)
  130. FaceTarget(NPC, Spawn)
  131. conversation = CreateConversation()
  132. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_13.mp3", "", "shrug", 2893072579, 3745020880, Spawn)
  133. AddConversationOption(conversation, "How did you get here if the boat sunk?", "dlg_23_13")
  134. AddConversationOption(conversation, "Oh boy...I really don't have time for this.")
  135. StartConversation(conversation, NPC, Spawn, "Then, as soon as we got it out in the ocean, it sunk like a rock. Who knew iron wouldn't float?")
  136. end
  137. function dlg_23_13(NPC, Spawn)
  138. FaceTarget(NPC, Spawn)
  139. conversation = CreateConversation()
  140. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_14.mp3", "", "sigh", 950110533, 2594458588, Spawn)
  141. AddConversationOption(conversation, "But it moved along the floor?", "dlg_23_14")
  142. AddConversationOption(conversation, "Are you still talking? Goodbye.")
  143. StartConversation(conversation, NPC, Spawn, "Luckily, my father had compensated for the curse. He knew something was bound to go wrong, so he completely encapsulated the boat, making it water tight just in case something went awry. Sure enough, the moment she left the berth the Ticking Tock fell straight to the sea floor.")
  144. end
  145. function dlg_23_14(NPC, Spawn)
  146. FaceTarget(NPC, Spawn)
  147. conversation = CreateConversation()
  148. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_15.mp3", "", "nod", 2110642575, 2339438650, Spawn)
  149. AddConversationOption(conversation, "I see...", "dlg_23_15")
  150. AddConversationOption(conversation, "Okay then...I'm just gonna walk away now.")
  151. StartConversation(conversation, NPC, Spawn, "Oh, yes! There were several waterproofed whirligigs set up in a flagnuvian configuration to displace the meganominal gnoggnards.")
  152. end
  153. function dlg_23_15(NPC, Spawn)
  154. FaceTarget(NPC, Spawn)
  155. conversation = CreateConversation()
  156. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_16.mp3", "", "confused", 2068602594, 1935966397, Spawn)
  157. AddConversationOption(conversation, "What's wrong?", "dlg_23_16")
  158. AddConversationOption(conversation, "And that's my cue to leave.")
  159. StartConversation(conversation, NPC, Spawn, "So here I am, sitting on the dock with all of the extra par... hmm... Oh! This seems to be a bit of a problem.")
  160. end
  161. function dlg_23_16(NPC, Spawn)
  162. FaceTarget(NPC, Spawn)
  163. conversation = CreateConversation()
  164. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_17.mp3", "", "sigh", 1279276755, 1158727410, Spawn)
  165. AddConversationOption(conversation, "Maybe I can help?", "dlg_23_17")
  166. AddConversationOption(conversation, "Sounds like you're out of luck.")
  167. StartConversation(conversation, NPC, Spawn, "I'm missing the extra parts that my father asked me to collect. Oh no! This is disastrous! I can't leave the dock because I'll miss the boat and I can't go to Qeynos without those parts! What am I going to do?")
  168. end
  169. function dlg_23_17(NPC, Spawn)
  170. FaceTarget(NPC, Spawn)
  171. conversation = CreateConversation()
  172. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_18.mp3", "", "thanks", 651304560, 3462850597)
  173. AddConversationOption(conversation, "What parts are you missing?", "dlg_23_18")
  174. StartConversation(conversation, NPC, Spawn, "You'd do that for me? Oh, thank you very, very, much! I'll stay here and ask the boat captain to wait for you to return, should he come. I'm missing three parts and I have no idea where they could be. I know they're on the island somewhere!")
  175. end
  176. function dlg_23_18(NPC, Spawn)
  177. FaceTarget(NPC, Spawn)
  178. conversation = CreateConversation()
  179. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_19.mp3", "", "nod", 3704607131, 803524082, Spawn)
  180. AddConversationOption(conversation, "I'll get right on it.", "dlg_23_19")
  181. AddConversationOption(conversation, "I can't right now.")
  182. StartConversation(conversation, NPC, Spawn, "I'm missing a size 7 clunker, a copper-coated springer, and a triangle spinner. If you could find them and bring them to me, I'd be forever grateful!")
  183. end
  184. function dlg_23_19(NPC, Spawn)
  185. FaceTarget(NPC, Spawn)
  186. OfferQuest(NPC, Spawn, EbiksMissingParts)
  187. end