9
3

BobbleWhirlwidget.lua 4.2 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. SetStepComplete(Spawn, THE_SECRET_SHIP, 2)
  41. Dialog.AddDialog("Holy snogratchets, that was quick!")
  42. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/bobble_whirlwidget/tutorial_island02_evil_revamp/quests/bobble_whirlwidget/bobble_whirlwidget008.mp3", 2960606569, 1409207301)
  43. Dialog.AddOption("Here's your specimens.", "dlg_7")
  44. Dialog.Start()
  45. end
  46. function dlg_2(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. Dialog.New(NPC, Spawn)
  49. 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.")
  50. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/bobble_whirlwidget/tutorial_island02_evil_revamp/quests/bobble_whirlwidget/bobble_whirlwidget002.mp3", 2087913374, 2185838291)
  51. Dialog.AddOption("I can keep a secret.", "dlg_3")
  52. Dialog.AddOption("I don't want to get into it.")
  53. Dialog.Start()
  54. end
  55. function dlg_3(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. Dialog.New(NPC, Spawn)
  58. 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.")
  59. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/bobble_whirlwidget/tutorial_island02_evil_revamp/quests/bobble_whirlwidget/bobble_whirlwidget003.mp3", 1612814867, 2911909119)
  60. Dialog.AddOption("Go on.", "dlg_4")
  61. Dialog.Start()
  62. end
  63. function dlg_4(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. Dialog.New(NPC, Spawn)
  66. 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.")
  67. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/bobble_whirlwidget/tutorial_island02_evil_revamp/quests/bobble_whirlwidget/bobble_whirlwidget004.mp3", 1389844505, 1224176748)
  68. Dialog.AddOption("I'll collect the specimens.", "OfferQuest1")
  69. Dialog.AddOption("I need to go.")
  70. Dialog.Start()
  71. end
  72. function OfferQuest1(NPC, Spawn)
  73. OfferQuest(NPC, Spawn, THE_SECRET_SHIP)
  74. end
  75. function dlg_7(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. Dialog.New(NPC, Spawn)
  78. Dialog.AddDialog("Excellent! This ship is gonna be magnificent. Here, take this for your efforts.")
  79. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/bobble_whirlwidget/tutorial_island02_evil_revamp/quests/bobble_whirlwidget/bobble_whirlwidget009.mp3", 2861918733, 954207307)
  80. Dialog.AddOption("Thanks.")
  81. SetStepComplete(Spawn, THE_SECRET_SHIP, 2)
  82. Dialog.Start()
  83. end