into_the_sewers_for_lucius.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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
  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. function Init(Quest)
  13. 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, 1540013)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have killed the trash hoppers.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I've managed to kill enough trash hoppers to gather up this slime for Lucius.")
  19. AddQuestStepChat(Quest, 2, "I should return to Lucius.", 1, "I should return to Lucius.", 11, 1370036)
  20. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  21. end
  22. function QuestComplete(Quest, QuestGiver, Player)
  23. 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?")
  24. GiveQuestReward(Quest, Player)
  25. end
  26. function Reload(Quest, QuestGiver, Player, Step)
  27. if Step == 1 then
  28. Step1Complete(Quest, QuestGiver, Player)
  29. elseif Step == 2 then
  30. QuestComplete(Quest, QuestGiver, Player)
  31. end
  32. end