9
3

charge_of_the_leatherfoot_brigade__the_sarge.lua 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : Quests/FallenGate/charge_of_the_leatherfoot_brigade__the_sarge.lua
  3. Script Purpose : Handles the quest, "Charge of the Leatherfoot Brigade - The Sarge"
  4. Script Author : premierio015
  5. Script Date : 10.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. AddQuestStep(Quest, 1, "I need to find Special Agent Tippytoe... if there's anything left of him.", 1, 100, "I know none of this will make a difference, but I should try to find Special Agent Tippytoe. From the wreckage of this place, he could be anywhere!", 11)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/the_sarge/fallengate/qst_the_sarge011.mp3", "", "", 1990431638, 87558142, Player)
  20. AddConversationOption(conversation, "- Sure... I'll find this halfling... not that it really matters, does it?")
  21. StartConversation(conversation, QuestGiver, Player, "I know you're scared, kid! I'm scared, too! All I ever wanted was to settle down on a jum-jum farm, eat jum-jum pie all day, watch the sun set with my sweetheart... but we all know why we're here. And that means we leave no one behind. Go find Lumpy--Tippytoe--whatever he calls himself! Bring him and those codes back! Remember our motto: Leatherfoot Forever!")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I've found Special Agent Tippytoe's remains.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I've found the remains of Special Agent Tippytoe. It seems he stopped for a short lunch and was found.")
  32. AddQuestStep(Quest, 2, "I need to see if I can open the box next to Tippytoe's remains", 1, 100, "The box next to Tippytoe looks like it might be what held the de-activation codes. Maybe I should look inside.", 11)
  33. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  34. end
  35. function Step2Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 2, "I've opened the box")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I've found an odd spectral ring inside the box.")
  38. AddQuestStepChat(Quest, 3, "I need to speak with the Sarge's ghost", 1, "I should return to the Sarge and see how this all ends.", 11, 1190020)
  39. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  40. end
  41. function QuestComplete(Quest, QuestGiver, Player)
  42. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  43. UpdateQuestStepDescription(Quest, 3, "I've spoken with the Sarge's ghost")
  44. UpdateQuestTaskGroupDescription(Quest, 3, "I've spoken with the Sarge one last time.")
  45. UpdateQuestDescription(Quest, "It seems that at the last moments of Sarge's life, he took the device and ran deep into the former city of Neriak. From what is left of the place, it seems he managed to do what he intended.")
  46. GiveQuestReward(Quest, Player)
  47. end
  48. function Reload(Quest, QuestGiver, Player, Step)
  49. if Step == 1 then
  50. Step1Complete(Quest, QuestGiver, Player)
  51. elseif Step == 2 then
  52. Step2Complete(Quest, QuestGiver, Player)
  53. elseif Step == 3 then
  54. QuestComplete(Quest, QuestGiver, Player)
  55. end
  56. end