9
3

ZaZasLittleProblem.lua 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. --[[
  2. Script Name : Quests/Commonlands/ZaZasLittleProblem.lua
  3. Script Purpose : Handles the quest, "ZaZa's Little Problem"
  4. Script Author : premierio015
  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. function Init(Quest)
  13. 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)
  14. 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)
  15. 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)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  18. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  19. end
  20. function Accepted(Quest, QuestGiver, Player)
  21. FaceTarget(QuestGiver, Player)
  22. local conversation = CreateConversation()
  23. AddConversationOption(conversation, "See you soon.")
  24. StartConversation(conversation, QuestGiver, Player, "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. PlayFlavor(NPC, "voiceover/english/zaza_lenska/fprt_hood03/quests/zazalenska/zazalenska004.mp3", "", "", 3780741793, 1494900278)
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. -- Add dialog here for when the quest is declined
  29. end
  30. function Deleted(Quest, QuestGiver, Player)
  31. -- Remove any quest specific items here when the quest is deleted
  32. end
  33. function Step1Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 1, "I obtained monitor behemoth tears for ZaZa.")
  35. end
  36. function Step2Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 2, "I obtained the vulrich blood for ZaZa.")
  38. end
  39. function CheckProgress(Quest, QuestGiver, Player)
  40. if QuestStepIsComplete(Player, 451, 1) and QuestStepIsComplete(Player, 451, 2) and QuestStepIsComplete(Player, 451, 3) then
  41. UpdateQuestTaskGroupDescription(Quest, 1, "I've obtained the monitor behemoth tears.")
  42. AddQuestStepChat(Quest, 4, "I need to speak to ZaZa.", 1, "I need to speak with ZaZa Lenska in the Commonlands.", 11, 330051)
  43. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  44. end
  45. end
  46. function Step3Complete(Quest, QuestGiver, Player)
  47. UpdateQuestStepDescription(Quest, 3, "I got the venom I needed to complete ZaZa's potion.")
  48. end
  49. function QuestComplete(Quest, QuestGiver, Player)
  50. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  51. UpdateQuestStepDescription(Quest, 4, "I have spoken to ZaZa.")
  52. UpdateQuestTaskGroupDescription(Quest, 2, "I've spoken with ZaZa and have been rewarded.")
  53. UpdateQuestDescription(Quest, "The ingredients are gathered and ZaZa will know soon whether or not her current husband is faithful. I think.")
  54. GiveQuestReward(Quest, Player)
  55. end
  56. function Reload(Quest, QuestGiver, Player, Step)
  57. if Step == 1 then
  58. Step1Complete(Quest, QuestGiver, Player)
  59. elseif Step == 2 then
  60. Step2Complete(Quest, QuestGiver, Player)
  61. elseif Step == 3 then
  62. Step3Complete(Quest, QuestGiver, Player)
  63. elseif Step == 4 then
  64. QuestComplete(Quest, QuestGiver, Player)
  65. end
  66. end