9
3

MurkwaterUniform.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. --[[
  2. Script Name : Quests/SerpentSewers/MurkwaterUniform.lua
  3. Script Purpose : Handles the quest, "Murkwater Uniform"
  4. Script Author : premierio015
  5. Script Date : 16.06.2020
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Serpent Sewer
  8. Quest Giver : Cicero Puer
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Boots off a Murkwater abettor.", 1, 25, "I need to get all of the pieces that make up the Murkwater uniform while here in the Serpent's Sewers.", 1398, 1550045, 1550008, 1550046, 1550009)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/cicero_puer/fprt_sewer02/ciceropuer006.mp3", "", "", 611926151, 2666895781, Player)
  19. AddConversationOption(conversation, "I'll return soon.")
  20. StartConversation(conversation, QuestGiver, Player, "Excellent! Hurry now, there isn't much time! The Murkwaters are down in the Serpent Sewers. I can smell them.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I've got the Boots.")
  30. AddQuestStepKill(Quest, 2, "Leggings off a Murkwater steward.", 1, 25, "I need to get all of the pieces that make up the Murkwater uniform while here in the Serpent's Sewers.", 1402, 1550047, 1550010)
  31. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  32. end
  33. function Step2Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I've got the Leggings.")
  35. AddQuestStepKill(Quest, 3, "Bracers off a Murkwater induct.", 1, 25, "I need to get all of the pieces that make up the Murkwater uniform while here in the Serpent's Sewers.", 1399, 1550011, 1550048)
  36. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  37. end
  38. function Step3Complete(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 3, "I've got the Bracers.")
  40. AddQuestStepKill(Quest, 4, "Gloves off a Murkwater induct.", 1, 25, "I need to get all of the pieces that make up the Murkwater uniform while here in the Serpent's Sewers.", 1400, 1550011, 1550048 )
  41. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  42. end
  43. function Step4Complete(Quest, QuestGiver, Player)
  44. UpdateQuestStepDescription(Quest, 4, "I've got the Gloves.")
  45. AddQuestStepKill(Quest, 5, "Sleeves off a Murkwater steward.", 1, 25, "I need to get all of the pieces that make up the Murkwater uniform while here in the Serpent's Sewers.", 1417, 1550047, 1550010)
  46. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  47. end
  48. function Step5Complete(Quest, QuestGiver, Player)
  49. UpdateQuestStepDescription(Quest, 5, "I've got the Sleeves .")
  50. AddQuestStepKill(Quest, 6, "Chest piece off a Murkwater abettor.", 1, 25, "I need to get all of the pieces that make up the Murkwater uniform while here in the Serpent's Sewers.", 1397, 1550045, 1550008, 1550046, 1550009)
  51. AddQuestStepCompleteAction(Quest, 6, "Step6Complete")
  52. end
  53. function Step6Complete(Quest, QuestGiver, Player)
  54. UpdateQuestStepDescription(Quest, 6, "I've got the chest piece.")
  55. UpdateQuestTaskGroupDescription(Quest, 1, "I've gathered all of the pieces that make up the Murkwater uniform.")
  56. AddQuestStepChat(Quest, 7, "I should get this stuff back to Cicero Puer.", 1, "I need to get this uniform to that ratonga, Cicero.", 11, 1550022, 1550059)
  57. AddQuestStepCompleteAction(Quest, 7, "QuestComplete")
  58. end
  59. function QuestComplete(Quest, QuestGiver, Player)
  60. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  61. UpdateQuestStepDescription(Quest, 7, "I've given Cicero the clothes.")
  62. UpdateQuestTaskGroupDescription(Quest, 2, "I've given the uniform to Cicero.")
  63. UpdateQuestDescription(Quest, "I've given the ratonga the Murkwater uniform, now he's busy scheming who knows what. Anyway, he stuck to his end of the bargain, and that's all that matters.")
  64. GiveQuestReward(Quest, Player)
  65. end
  66. function Reload(Quest, QuestGiver, Player, Step)
  67. if Step == 1 then
  68. Step1Complete(Quest, QuestGiver, Player)
  69. elseif Step == 2 then
  70. Step2Complete(Quest, QuestGiver, Player)
  71. elseif Step == 3 then
  72. Step3Complete(Quest, QuestGiver, Player)
  73. elseif Step == 4 then
  74. Step4Complete(Quest, QuestGiver, Player)
  75. elseif Step == 5 then
  76. Step5Complete(Quest, QuestGiver, Player)
  77. elseif Step == 6 then
  78. Step6Complete(Quest, QuestGiver, Player)
  79. elseif Step == 7 then
  80. QuestComplete(Quest, QuestGiver, Player)
  81. end
  82. end