donations_from_the_banker.lua 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : donations_from_the_banker.lua
  3. Script Purpose : Handles the quest, "Donations from the Banker"
  4. Script Author : torsten\\Dorbin
  5. Script Date : 15.07.2022
  6. Script Notes :
  7. Zone : Beggar's Court
  8. Quest Giver : Manius Galla
  9. Preceded by : Joining the Gang
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I need to speak with the banker Voranius in Beggar's Court.", 1, "I need to speak with the banker in Beggar's Court and make sure he hands over his \"donation.\"", 11, 1370012)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I've spoken with the banker Voranius in Beggar's Court.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "The banker was scared of my threat and gave his 'donation'. He also said some bad things about Manius.")
  20. AddQuestStepChat(Quest, 2, "I should return to Manius.", 1, "I should give Manius the banker's \"donation\" and also let him know what the banker said about him.", 11, 1370127)
  21. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  22. end
  23. function QuestComplete(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 2, "I've spoken with the banker Voranius in Beggar's Court.")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "I've given Manius the \"donation\" and also let him know what the banker said. Hopefully I got it right.")
  26. UpdateQuestDescription(Quest, "I've collected the 'donation' from the banker and given it to Manius. I've also told Manius what the banker said about him. Needless to say, he wasn't too happy. I just realized that I forgot to ask him about joining his gang. Maybe I'll ask him some other time.")
  27. GiveQuestReward(Quest, Player)
  28. end
  29. function Accepted(Quest, QuestGiver, Player)
  30. FaceTarget(QuestGiver, Player)
  31. Dialog.New(QuestGiver, Player)
  32. Dialog.AddDialog("Go to that banker up in the Court. Tell him it's time for us to make a \"withdrawal.\" If he balks, ask him if his kin can afford any more ... accidents. And if you try to keep the money, you'll have an accident. A big one. Got it?")
  33. Dialog.AddOption("Sure thing.")
  34. Dialog.Start()
  35. end
  36. function Declined(Quest, QuestGiver, Player)
  37. -- Add dialog here for when the quest is declined
  38. end
  39. function Deleted(Quest, QuestGiver, Player)
  40. -- Remove any quest specific items here when the quest is deleted
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. Step1Complete(Quest, QuestGiver, Player)
  45. elseif Step == 2 then
  46. QuestComplete(Quest, QuestGiver, Player)
  47. end
  48. end