9
3

GatheringGlowmyst.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : Quests/StarcrestCommune/GatheringGlowmyst.lua
  3. Script Purpose : Handles the quest, "Gathering Glowmyst"
  4. Script Author : Jabantiz
  5. Script Date : 6/15/2018
  6. Script Notes :
  7. Zone : Starcrest Commune
  8. Quest Giver : Bermo (2340025)
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "I must gather glowmyst from the beetles in Oakmyst Forest", 10, 100, "I need to gather up glowmyst juice from Oakmyst Forest, reachable by any number of mariner bells within Qeynos, by hunting down glowmyst beetles.", 1204, 8300034)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. UpdateQuestZone(Quest,"Oakmyst Forest")
  17. end
  18. function Step1Complete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I have gathered the glowmyst Bermo needed.")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "I've successfully gathered the glowmyst juice I need!")
  21. UpdateQuestZone(Quest,"Starcrest Commune")
  22. AddQuestStepChat(Quest, 2, "I need to return to Bartender Bermo", 1, "I should return to Bartender Bermo in the Lion's Mane Inn and Tavern in the Qeynos Capitol District.", 11, 2340025)
  23. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  24. end
  25. function QuestComplete(Quest, QuestGiver, Player)
  26. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  27. UpdateQuestStepDescription(Quest, 2, "I've spoken with Bartender Bermo.")
  28. UpdateQuestTaskGroupDescription(Quest, 2, "I spoke with Bartender Bermo regarding the glowmyst juice I brought him.")
  29. UpdateQuestDescription(Quest, "I returned to Bartender Bermo with all the juice he needed. Finding all ten beetles took quite some time, but in the end I persevered!")
  30. GiveQuestReward(Quest, Player)
  31. end
  32. function Reload(Quest, QuestGiver, Player, Step)
  33. if Step == 1 then
  34. Step1Complete(Quest, QuestGiver, Player)
  35. elseif Step == 2 then
  36. QuestComplete(Quest, QuestGiver, Player)
  37. end
  38. end
  39. function Accepted(Quest, QuestGiver, Player)
  40. FaceTarget(QuestGiver, Player)
  41. Dialog.New(QuestGiver, Player)
  42. Dialog.AddDialog("I must have my glowmyst! My customers won't settle for anything other than that glowing concoction!")
  43. Dialog.AddVoiceover("voiceover/english/bartender_bermo/qey_village02/100_bartender_bermo_multhail4_bd869670.mp3", 2103292434, 2123107577)
  44. Dialog.AddOption("All right, I'll try to hurry.")
  45. Dialog.Start()
  46. end
  47. function Declined(Quest, QuestGiver, Player)
  48. -- Add dialog here for when the quest is declined
  49. end
  50. function Deleted(Quest, QuestGiver, Player)
  51. -- Remove any quest specific items here when the quest is deleted
  52. end