charge_of_the_leatherfoot_brigade__tippytoe.lua 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --[[
  2. Script Name : Quests/FallenGate/charge_of_the_leatherfoot_brigade__tippytoe.lua
  3. Script Purpose : Handles the quest, "Charge of the Leatherfoot Brigade - Tippytoe"
  4. Script Author : premierio015
  5. Script Date : 09.07.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Fallen Gate
  8. Quest Giver : The Sarge(1190020)
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepZoneLoc(Quest, 1, "I need to scout around for a dark, shadowy room", 10, "I've been given orders from the ghost to scout out the area, as if I were Special Agent Tippytoe.", 11, -1, 0, -56, 119 )
  14. AddQuestStepZoneLoc(Quest, 2, "I need to scout around for a trading pit in a marketplace.", 10, "I've been given orders from the ghost to scout out the area, as if I were Special Agent Tippytoe.", 11, 73, 6, -87, 119)
  15. AddQuestStepZoneLoc(Quest, 3, "I need to scout around for a water supply.", 10, "I've been given orders from the ghost to scout out the area, as if I were Special Agent Tippytoe.", 11, -28, 7, -94, 119)
  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. PlayFlavor(QuestGiver, "voiceover/english/the_sarge/fallengate/qst_the_sarge002.mp3", "", "", 451430790, 1713505088, Player)
  24. AddConversationOption(conversation, "I'm not Tippytoe! I'm... you're not listening, are you? Fine, I'll do it.")
  25. StartConversation(conversation, QuestGiver, Player, "That's what I wanna hear! I'm entrustin' you with these de-active-maker-code thingies them gnomes gave us in case something goes wrong. You keep them close, got it? Now get in there and find us a good place to put the... the thingamajig. Check for shadowy rooms, their market-stall pit, or maybe a water supply, got it? And don't get caught by those wicked elves. Got it?")
  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've found a dark, shadowy room swirling with smoke.")
  35. CheckProgress(Quest, QuestGiver, Player)
  36. end
  37. function Step2Complete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 2, "I've found a trading pit in the ruins of a former market.")
  39. CheckProgress(Quest, QuestGiver, Player)
  40. end
  41. function Step3Complete(Quest, QuestGiver, Player)
  42. UpdateQuestStepDescription(Quest, 3, "I've found a large pool of water surrounded by the undead.")
  43. CheckProgress(Quest, QuestGiver, Player)
  44. end
  45. function QuestComplete(Quest, QuestGiver, Player)
  46. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  47. UpdateQuestStepDescription(Quest, 4, "I've spoken with the Sarge's ghost")
  48. UpdateQuestTaskGroupDescription(Quest, 2, "I've spoken with the Sarge again, but he didn't remember me speaking with him.")
  49. UpdateQuestDescription(Quest, "I've scouted the areas that the Sarge mentioned, but it didn't make much of a difference to him")
  50. GiveQuestReward(Quest, Player)
  51. end
  52. function CheckProgress(Quest, QuestGiver, Player)
  53. if QuestStepIsComplete(Player, 5308, 1) and QuestStepIsComplete(Player, 5308, 2) and QuestStepIsComplete(Player, 5308, 3) then
  54. UpdateQuestTaskGroupDescription(Quest, 1, "I've scouted the area and found nothing but dead beings.")
  55. AddQuestStepChat(Quest, 4, "I need to speak with the Sarge's ghost", 10, "Now that I've found the areas that the Sarge's ghost sent Tippytoe to find, maybe I should return to him.", 11, 1190020)
  56. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  57. end
  58. end
  59. function Reload(Quest, QuestGiver, Player, Step)
  60. if Step == 1 then
  61. Step1Complete(Quest, QuestGiver, Player)
  62. elseif Step == 2 then
  63. Step2Complete(Quest, QuestGiver, Player)
  64. elseif Step == 3 then
  65. Step3Complete(Quest, QuestGiver, Player)
  66. elseif Step == 4 then
  67. QuestComplete(Quest, QuestGiver, Player)
  68. end
  69. end