into_the_sewers_for_lucius.lua 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : into_the_sewers_for_lucius.lua
  3. Script Purpose : Handles the quest, "Into The Sewers For Lucius"
  4. Script Author : torsten\\Dorbin
  5. Script Date : 15.07.2022
  6. Script Notes :
  7. Zone : Beggar's Court
  8. Quest Giver : Lucius Vulso
  9. Preceded by : Casing the Joint
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "I must kill six trash hoppers.", 6, 100, "I need to go into the sewers and find six trash hoppers and kill them. Once they're dead, I'll scrape the slime off of their bodies. I sure hope they're not too big.", 611, 8430032)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I have killed the trash hoppers.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I've managed to kill enough trash hoppers to gather up this slime for Lucius.")
  20. AddQuestStepChat(Quest, 2, "I should return to Lucius.", 1, "I should bring these trash hoppers to Lucius.", 611, 1370036)
  21. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  22. end
  23. function QuestComplete(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 2, "I gave the trash hoppers to Lucius.")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "I've given the slime to Lucius so he can pursue his crazy plan. I sure hope it doesn't work.")
  26. UpdateQuestDescription(Quest, "I've given Lucius Vulso enough slime from the frog's skin to mask his scent. If he manages to pull off this bank heist, I'll have to follow his lead and get out of the city. I'm the only one who was seen asking about the place... what was I thinking?")
  27. GiveQuestReward(Quest, Player)
  28. end
  29. function Accepted(Quest, QuestGiver, Player)
  30. FaceTarget(QuestGiver, Player)
  31. Dialog.New(QuestGiver, Player)
  32. Dialog.AddDialog("Regret this? Never! If I pull this off, you and I will be famous! I examined the layout of the districts ... the quickest route around the sewers is through a putrid marsh of frogs called trash hoppers. Kill these frogs and scrape the slime from their bodies. I'll use this slime to mask my scent when I sneak through the bog. Now, get me that slime, and I'll pay you for your time.")
  33. Dialog.AddOption("This sounds questionable already...")
  34. Dialog.Start()
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. Step1Complete(Quest, QuestGiver, Player)
  39. elseif Step == 2 then
  40. QuestComplete(Quest, QuestGiver, Player)
  41. end
  42. end