ZaZasLittleProblem.lua 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. --[[
  2. Script Name : Quests/Commonlands/ZaZasLittleProblem.lua
  3. Script Purpose : Handles the quest, "ZaZa's Little Problem"
  4. Script Author : premierio015\\Dorbin
  5. Script Date : 20.05.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands, Fallen Gate
  8. Quest Giver : ZaZa Lenska
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "I need monitor behemoth tears from the Commonlands.", 2, 100, "I need to collect the required ingredients for ZaZa's potion.", 176, 330065, 330738)
  15. AddQuestStepKill(Quest, 2, "I need seven vials of coagulated blood from the giant vulrich in the Commonlands.", 7, 100, "I need to collect the required ingredients for ZaZa's potion.", 8, 330087, 330774)
  16. AddQuestStepKill(Quest, 3, "I need to get four drops of gloom venom from gloom snakes in Fallen Gate.", 4, 100, "I need to collect the required ingredients for ZaZa's potion.", 177, 1190019)
  17. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  18. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  19. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  20. end
  21. function Accepted(Quest, QuestGiver, Player)
  22. FaceTarget(QuestGiver, Player)
  23. Dialog.New(QuestGiver, Player)
  24. Dialog.AddDialog("I'm trusting you with the happiness of my marriage. You are most kind to help poor ZaZa. I will see you again ... soon.")
  25. Dialog.AddVoiceover("voiceover/english/zaza_lenska/fprt_hood03/quests/zazalenska/zazalenska004.mp3", 3780741793, 1494900278)
  26. Dialog.AddOption("See you soon.")
  27. Dialog.Start()
  28. end
  29. function Declined(Quest, QuestGiver, Player)
  30. -- Add dialog here for when the quest is declined
  31. end
  32. function Deleted(Quest, QuestGiver, Player)
  33. -- Remove any quest specific items here when the quest is deleted
  34. end
  35. function Step1Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 1, "I obtained monitor behemoth tears for ZaZa.")
  37. CheckProgress(Quest, QuestGiver, Player)
  38. end
  39. function Step2Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 2, "I obtained the vulrich blood for ZaZa.")
  41. CheckProgress(Quest, QuestGiver, Player)
  42. end
  43. function Step3Complete(Quest, QuestGiver, Player)
  44. UpdateQuestStepDescription(Quest, 3, "I got the venom I needed to complete ZaZa's potion.")
  45. CheckProgress(Quest, QuestGiver, Player)
  46. end
  47. function CheckProgress(Quest, QuestGiver, Player)
  48. if QuestStepIsComplete(Player, 451, 1) and QuestStepIsComplete(Player, 451, 2) and QuestStepIsComplete(Player, 451, 3) then
  49. UpdateQuestTaskGroupDescription(Quest, 1, "I've obtained Zaza's ingredients.")
  50. AddQuestStepChat(Quest, 4, "I need to speak to ZaZa.", 1, "I need to speak with ZaZa Lenska in the Commonlands.", 11, 330051)
  51. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  52. end
  53. end
  54. function QuestComplete(Quest, QuestGiver, Player)
  55. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  56. UpdateQuestStepDescription(Quest, 4, "I have spoken to ZaZa.")
  57. UpdateQuestTaskGroupDescription(Quest, 2, "I've spoken with ZaZa and have been rewarded.")
  58. UpdateQuestDescription(Quest, "The ingredients are gathered and ZaZa will know soon whether or not her current husband is faithful. I think.")
  59. GiveQuestReward(Quest, Player)
  60. end
  61. function Reload(Quest, QuestGiver, Player, Step)
  62. if Step == 1 then
  63. Step1Complete(Quest, QuestGiver, Player)
  64. elseif Step == 2 then
  65. Step2Complete(Quest, QuestGiver, Player)
  66. elseif Step == 3 then
  67. Step3Complete(Quest, QuestGiver, Player)
  68. elseif Step == 4 then
  69. QuestComplete(Quest, QuestGiver, Player)
  70. end
  71. end