the_secret_ship.lua 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : the_secret_ship.lua
  3. Script Purpose : Handles the quest, "The Secret Ship"
  4. Script Author : vo1d
  5. Script Date : 11/2/2019
  6. Script Notes : Using "a sea shell" until Nautilus Shells can be created in the ItemDB
  7. Zone : Outpost of the Overlord
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepHarvest(Quest, 1, "Find nautilus shells in Sandstalker Bay for Bobble.", 5, 100, "I need to search Sandstalker Bay for nautilus shells for Bobble's research.", 2065, 2608)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("Good! I'll be up here observing. Hurry now, the Overlord awaits!")
  21. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/bobble_whirlwidget/tutorial_island02_evil_revamp/quests/bobble_whirlwidget/bobble_whirlwidget005.mp3", 2911148610, 1213914347)
  22. Dialog.AddOption("I'm off!")
  23. Dialog.Start()
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. -- Add dialog here for when the quest is declined
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. -- Remove any quest specific items here when the quest is deleted
  30. end
  31. function Step1Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 1, "I found all the nautilus shells that Bobble needs.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I collected all the nautili that Bobble needed for his research.")
  34. AddQuestStepChat(Quest, 2, "Return to Bobble at Ebb Tide's Alehouse.", 1, "I need to return to Bobble with the nautili.", 11, 2780020)
  35. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 2, "I returned to Bobble.")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Bobble and was rewarded for my time in the bay.")
  41. UpdateQuestDescription(Quest, "I was able to collect all of the nautili that Bobble needed for his research into creating an underwater ship. Those Qeynosians will have a run for their money now!")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. QuestComplete(Quest, QuestGiver, Player)
  49. end
  50. end