9
3

EbikWobblecog.lua 13 KB

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