EbikWobblecog.lua 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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", "", "thanks", 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. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_notask_01.mp3", "", "tapfoot", 2668255955, 616331754, Spawn)
  37. AddConversationOption(conversation, "Good luck.")
  38. 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.")
  39. else
  40. -- does not have the quest yet
  41. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_01.mp3", "", "hello", 2713964680, 2172979410, Spawn)
  42. AddConversationOption(conversation, "Why are you going to Qeynos?", "dlg_23_1")
  43. AddConversationOption(conversation, "Good luck with that.")
  44. StartConversation(conversation, NPC, Spawn, "Why, hello there! I was just sitting here waiting for the boat to Qeynos.")
  45. end
  46. end
  47. function dlg_23_1(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_02.mp3", "", "nod", 532888096, 1705696510, Spawn)
  51. AddConversationOption(conversation, "What was the news?", "dlg_23_2")
  52. AddConversationOption(conversation, "Safe travels.")
  53. 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.")
  54. end
  55. function dlg_23_2(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_03.mp3", "", "confused", 3248832255, 3165995891, Spawn)
  59. AddConversationOption(conversation, "Why was his ship distracting?", "dlg_23_3")
  60. AddConversationOption(conversation, "Goodbye.")
  61. 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.")
  62. end
  63. function dlg_23_3(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_04.mp3", "", "agree", 1312724951, 594166513, Spawn)
  67. AddConversationOption(conversation, "Go on.", "dlg_23_4")
  68. 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.")
  69. end
  70. function dlg_23_4(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. conversation = CreateConversation()
  73. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_05.mp3", "", "sigh", 2209355729, 410792148, Spawn)
  74. AddConversationOption(conversation, "What curse?", "dlg_23_5")
  75. AddConversationOption(conversation, "I want no part of your curse, goodbye.")
  76. 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.")
  77. end
  78. function dlg_23_5(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. conversation = CreateConversation()
  81. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island02/ebik_firsttalk_06.mp3", "", "nod", 848346297, 415788395, Spawn)
  82. AddConversationOption(conversation, "Yes, I'd like that.", "dlg_23_6")
  83. AddConversationOption(conversation, "Not really.")
  84. 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.")
  85. end
  86. function dlg_23_6(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. conversation = CreateConversation()
  89. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island02/ebik_firsttalk_07.mp3", "", "agree", 489617943, 459263052, Spawn)
  90. AddConversationOption(conversation, "Please go on.", "dlg_23_7")
  91. 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.")
  92. end
  93. function dlg_23_7(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. conversation = CreateConversation()
  96. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_08.mp3", "", "nod", 2658473484, 2726816701, Spawn)
  97. AddConversationOption(conversation, "What happened then?", "dlg_23_8")
  98. AddConversationOption(conversation, "That's nice, fairwell.")
  99. 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.")
  100. end
  101. function dlg_23_8(NPC, Spawn)
  102. FaceTarget(NPC, Spawn)
  103. conversation = CreateConversation()
  104. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_09.mp3", "", "sigh", 168646029, 2064100068, Spawn)
  105. AddConversationOption(conversation, "Do go on.", "dlg_23_9")
  106. 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.")
  107. end
  108. function dlg_23_9(NPC, Spawn)
  109. FaceTarget(NPC, Spawn)
  110. conversation = CreateConversation()
  111. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_10.mp3", "", "crazy", 468670444, 2791058506, Spawn)
  112. AddConversationOption(conversation, "That does sound bothersome.", "dlg_23_10")
  113. StartConversation(conversation, NPC, Spawn, "He cursed us with miscalculation! It's nearly driven my family to madness. ")
  114. end
  115. function dlg_23_10(NPC, Spawn)
  116. FaceTarget(NPC, Spawn)
  117. conversation = CreateConversation()
  118. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_11.mp3", "", "nod", 1677273819, 2525140274, Spawn)
  119. AddConversationOption(conversation, "That sounds devastating.", "dlg_23_11")
  120. AddConversationOption(conversation, "Good luck with that.")
  121. 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.")
  122. end
  123. function dlg_23_11(NPC, Spawn)
  124. FaceTarget(NPC, Spawn)
  125. conversation = CreateConversation()
  126. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_12.mp3", "", "agree", 605082040, 3732575966, Spawn)
  127. AddConversationOption(conversation, "I see.", "dlg_23_12")
  128. 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. ")
  129. end
  130. function dlg_23_12(NPC, Spawn)
  131. FaceTarget(NPC, Spawn)
  132. conversation = CreateConversation()
  133. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_13.mp3", "", "shrug", 2893072579, 3745020880, Spawn)
  134. AddConversationOption(conversation, "How did you get here if the boat sunk?", "dlg_23_13")
  135. AddConversationOption(conversation, "Oh boy...I really don't have time for this.")
  136. 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?")
  137. end
  138. function dlg_23_13(NPC, Spawn)
  139. FaceTarget(NPC, Spawn)
  140. conversation = CreateConversation()
  141. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_14.mp3", "", "sigh", 950110533, 2594458588, Spawn)
  142. AddConversationOption(conversation, "But it moved along the floor?", "dlg_23_14")
  143. AddConversationOption(conversation, "Are you still talking? Goodbye.")
  144. 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.")
  145. end
  146. function dlg_23_14(NPC, Spawn)
  147. FaceTarget(NPC, Spawn)
  148. conversation = CreateConversation()
  149. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_15.mp3", "", "nod", 2110642575, 2339438650, Spawn)
  150. AddConversationOption(conversation, "I see...", "dlg_23_15")
  151. AddConversationOption(conversation, "Okay then...I'm just gonna walk away now.")
  152. StartConversation(conversation, NPC, Spawn, "Oh, yes! There were several waterproofed whirligigs set up in a flagnuvian configuration to displace the meganominal gnoggnards.")
  153. end
  154. function dlg_23_15(NPC, Spawn)
  155. FaceTarget(NPC, Spawn)
  156. conversation = CreateConversation()
  157. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_16.mp3", "", "confused", 2068602594, 1935966397, Spawn)
  158. AddConversationOption(conversation, "What's wrong?", "dlg_23_16")
  159. AddConversationOption(conversation, "And that's my cue to leave.")
  160. 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.")
  161. end
  162. function dlg_23_16(NPC, Spawn)
  163. FaceTarget(NPC, Spawn)
  164. conversation = CreateConversation()
  165. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_17.mp3", "", "pout", 1279276755, 1158727410, Spawn)
  166. AddConversationOption(conversation, "Maybe I can help?", "dlg_23_17")
  167. AddConversationOption(conversation, "Sounds like you're out of luck.")
  168. 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?")
  169. end
  170. function dlg_23_17(NPC, Spawn)
  171. FaceTarget(NPC, Spawn)
  172. conversation = CreateConversation()
  173. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_18.mp3", "", "thanks", 651304560, 3462850597)
  174. AddConversationOption(conversation, "What parts are you missing?", "dlg_23_18")
  175. 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!")
  176. end
  177. function dlg_23_18(NPC, Spawn)
  178. FaceTarget(NPC, Spawn)
  179. conversation = CreateConversation()
  180. PlayFlavor(NPC, "voiceover/english/ebik_wobblecog/tutorial_island01/ebik/ebik_firsttalk_19.mp3", "", "nod", 3704607131, 803524082, Spawn)
  181. AddConversationOption(conversation, "I'll get right on it.", "dlg_23_19")
  182. AddConversationOption(conversation, "I can't right now.")
  183. 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!")
  184. end
  185. function dlg_23_19(NPC, Spawn)
  186. FaceTarget(NPC, Spawn)
  187. OfferQuest(NPC, Spawn, EbiksMissingParts)
  188. end