9
3

casing_the_joint.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : casing_the_joint.lua
  3. Script Purpose : Handles the quest, "Casing the Joint"
  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 : None
  10. Followed by : Into The Sewers For Lucius
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I need to talk with the Banker in Stonestair Byway.", 1, "I need to speak with the banker in Stonestair Byway. I need to get him to like me before he'll talk.", 11, 1350044)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. UpdateQuestZone(Quest,"Stonestair Byway")
  17. end
  18. function Step1Complete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I have spoken with Banker Kamen.")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "Banker Kaman has told me of a rumor about being able to tunnel into the vaults from the sewer.")
  21. UpdateQuestZone(Quest,"Beggar's Court")
  22. AddQuestStepChat(Quest, 2, "I should return to Lucius Vulso.", 1, "I should let Lucius know about this supposed rumor.", 11, 1370036)
  23. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  24. end
  25. function QuestComplete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 2, "I've spoken with Lucius.")
  27. UpdateQuestTaskGroupDescription(Quest, 2, "Lucius has been given the information about the rumored lack of security in the Stonestair bank vault.")
  28. UpdateQuestDescription(Quest, "I've told Lucius about the rumored security leak in the vaults. It seems Lucius was having me ask around so that he wouldn't be the one identified for being suspicious.")
  29. GiveQuestReward(Quest, Player)
  30. end
  31. function Accepted(Quest, QuestGiver, Player)
  32. FaceTarget(QuestGiver, Player)
  33. Dialog.New(QuestGiver, Player)
  34. Dialog.AddDialog("I have a brilliant idea to make a lot of money out of no money at all. But, before I try this scheme, I need you to get some information. Go to the bank in Stonestair Byway and talk with the banker. Gain his trust, then find out how secure the vault is. Got it?")
  35. Dialog.AddVoiceover("voiceover/english/lucius_vulso/fprt_hood04/quests/luciusvulso/lucius_x1_accept.mp3", 200782149, 3355305222)
  36. Dialog.AddOption("Got it.")
  37. Dialog.Start()
  38. end
  39. function Declined(Quest, QuestGiver, Player)
  40. -- Add dialog here for when the quest is declined
  41. end
  42. function Deleted(Quest, QuestGiver, Player)
  43. -- Remove any quest specific items here when the quest is deleted
  44. end
  45. function Reload(Quest, QuestGiver, Player, Step)
  46. if Step == 1 then
  47. Step1Complete(Quest, QuestGiver, Player)
  48. elseif Step == 2 then
  49. QuestComplete(Quest, QuestGiver, Player)
  50. end
  51. end