9
3

BobbleWhirlwidget.lua 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. --[[
  2. Script Name : BobbleWhirlwidget.lua
  3. Script Purpose : Bobble Whirlwidget
  4. Script Author : vo1d
  5. Script Date : 11/02/2019
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. -- Quest ID's
  10. local THE_SECRET_SHIP = 487
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, THE_SECRET_SHIP)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. if HasCompletedQuest(Spawn, THE_SECRET_SHIP) then
  19. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/bobble_whirlwidget/tutorial_island02_evil_revamp/quests/bobble_whirlwidget/bobble_whirlwidget007.mp3", "", "", 3343893238, 3510748544, Spawn)
  20. elseif HasQuest(Spawn, THE_SECRET_SHIP) then
  21. if GetQuestStep(Spawn, THE_SECRET_SHIP) == 2 then
  22. Step2Complete(NPC, Spawn)
  23. end
  24. else -- You haven't completed the quest nor are you on the quest.
  25. FirstGreetings(NPC, Spawn)
  26. end
  27. end
  28. function FirstGreetings(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. Dialog.New(NPC, Spawn)
  31. Dialog.AddDialog("How am I going to collect these lugsnibbets? I can't swim, but that won't matter when the ship is done.")
  32. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/bobble_whirlwidget/tutorial_island02_evil_revamp/quests/bobble_whirlwidget/bobble_whirlwidget001.mp3", 2891438805, 3358056285)
  33. Dialog.AddOption("What ship?", "dlg_2")
  34. Dialog.AddOption("I need to go.")
  35. Dialog.Start()
  36. end
  37. function Step2Complete(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. Dialog.New(NPC, Spawn)
  40. Dialog.AddDialog("Holy snogratchets, that was quick!")
  41. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/bobble_whirlwidget/tutorial_island02_evil_revamp/quests/bobble_whirlwidget/bobble_whirlwidget008.mp3", 2960606569, 1409207301)
  42. Dialog.AddOption("Here's your specimens.", "dlg_7")
  43. Dialog.Start()
  44. end
  45. function dlg_2(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. Dialog.New(NPC, Spawn)
  48. Dialog.AddDialog("Shhhhh! I need to keep this as quiet as possible, the Overlord demands it. But I'm wizzlewogged here on my research and could use some help.")
  49. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/bobble_whirlwidget/tutorial_island02_evil_revamp/quests/bobble_whirlwidget/bobble_whirlwidget002.mp3", 2087913374, 2185838291)
  50. Dialog.AddOption("I can keep a secret.", "dlg_3")
  51. Dialog.AddOption("I don't want to get into it.")
  52. Dialog.Start()
  53. end
  54. function dlg_3(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. Dialog.New(NPC, Spawn)
  57. Dialog.AddDialog("Okay, word has it that the Wobblecog family of Qeynos is on the verge of perfecting a ship that can travel underwater. The Overlord cannot let Qeynos get the upper hand, so I have been tasked with figuring out the process for creating these ships.")
  58. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/bobble_whirlwidget/tutorial_island02_evil_revamp/quests/bobble_whirlwidget/bobble_whirlwidget003.mp3", 1612814867, 2911909119)
  59. Dialog.AddOption("Go on.", "dlg_4")
  60. Dialog.Start()
  61. end
  62. function dlg_4(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. Dialog.New(NPC, Spawn)
  65. Dialog.AddDialog("I've discovered a creature called the nautilus that uses air chambers within its shell to keep itself buoyant, similar to the pogflume dialator I've been working on. I believe that if I can get some of these specimens, I should be able to figure out the mechanism and apply it to a ship.")
  66. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/bobble_whirlwidget/tutorial_island02_evil_revamp/quests/bobble_whirlwidget/bobble_whirlwidget004.mp3", 1389844505, 1224176748)
  67. Dialog.AddOption("I'll collect the specimens.", "OfferQuest1")
  68. Dialog.AddOption("I need to go.")
  69. Dialog.Start()
  70. end
  71. function OfferQuest1(NPC, Spawn)
  72. OfferQuest(NPC, Spawn, THE_SECRET_SHIP)
  73. end
  74. function dlg_7(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. Dialog.New(NPC, Spawn)
  77. Dialog.AddDialog("Excellent! This ship is gonna be magnificent. Here take this for your efforts.")
  78. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/bobble_whirlwidget/tutorial_island02_evil_revamp/quests/bobble_whirlwidget/bobble_whirlwidget009.mp3", 2861918733, 954207307)
  79. Dialog.AddOption("Thanks.")
  80. SetStepComplete(Spawn, THE_SECRET_SHIP, 1)
  81. Dialog.Start()
  82. end