BackAndForth.lua 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --[[
  2. Script Name : Quests/SerpentSewers/BackAndForth.lua
  3. Script Purpose : Handles the quest, "Back and Forth"
  4. Script Author : premierio015
  5. Script Date : 17.06.2020
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Access Quests
  8. Quest Giver : Cicero Puer
  9. Preceded by : Murkwater Uniform
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Kill Crazy Peepers.", 1, 100, "Cicero would like me to dispatch of some gnome known only as "Crazy Peepers." If I take care of this Peepers character Cicero will tell me where I can find a secret room with plenty of loot.", 611, 1550074)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I've taken care of Peepers.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I've taken care of that Peepers character, I should return to Cicero.")
  28. AddQuestStepChat(Quest, 2, "Return to Cicero.", 1, "I've dispatched of that Crazy Peepers character for Cicero, I should go back to him and get the location of this "secret" room.", 11, 1550022, 1550059)
  29. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  30. end
  31. function Step2Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "I've spoken with Cicero.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned to Cicero and informed him of that crazy gnome's demise.")
  34. AddQuestStepChat(Quest, 3, "Deliver the letter to Merchant Tula Mawh.", 1, "Cicero says that I have to take this letter to a merchant down here in the sewers by the name of Tula, and she will give me the directions I need.", 1223, 1550014)
  35. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  36. end
  37. function Step3Complete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 3, "I delivered the letter to Tula.")
  39. UpdateQuestTaskGroupDescription(Quest, 3, "I delivered the letter for that pesky little rodent, and it turned out to be some sort of love letter.")
  40. AddQuestStepChat(Quest, 4, "Return to Cicero, again.", 1, "That dirty little rat is either trying to pull a fast one over on me, or he thinks he can use me as a personal letter carrier.", 11, 1550022, 1550059)
  41. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  42. end
  43. function QuestComplete(Quest, QuestGiver, Player)
  44. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  45. UpdateQuestStepDescription(Quest, 4, "I've spoken with Cicero, again.")
  46. UpdateQuestTaskGroupDescription(Quest, 4, "It turns out he just needed a letter delivered. Cicero gave me the directions to the Serpent's Lair.")
  47. UpdateQuestDescription(Quest, "Well after killing a crazy gnome and playing love letter messenger, Cicero finally gave me directions to the Serpent's Lair. I only hope the place was worth the trouble.")
  48. GiveQuestReward(Quest, Player)
  49. end
  50. function Reload(Quest, QuestGiver, Player, Step)
  51. if Step == 1 then
  52. Step1Complete(Quest, QuestGiver, Player)
  53. elseif Step == 2 then
  54. Step2Complete(Quest, QuestGiver, Player)
  55. elseif Step == 3 then
  56. Step3Complete(Quest, QuestGiver, Player)
  57. elseif Step == 4 then
  58. QuestComplete(Quest, QuestGiver, Player)
  59. end
  60. end