graystone_bank_tally_delivery.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : graystone_bank_tally_delivery.lua
  3. Script Purpose : Handles the quest, "Graystone Bank Tally Delivery"
  4. Script Author : Dorbin
  5. Script Date : 3/11/2022
  6. Script Notes :
  7. Zone : Graystone Yard
  8. Quest Giver : Dori
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I must speak with Robert Newbury.", 1, "I must speak with Robert Newbury at the Qeynos Exchange in the harbor district.", 75, 2210106,2210223)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest, "Qeynos Harbor")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("Make sure Robert Newbury recieves this tally directly. You'll find him in the Qeynos Exchange at the harbor. Now, this needs to be delivered right away, so no dawdling!")
  21. Dialog.AddVoiceover("voiceover/english/banker_dori/qey_village03/bankerdori001.mp3", 161424087,848076549)
  22. PlayFlavor(QuestGiver, "", "", "agree", 0, 0, Player)
  23. Dialog.AddOption("You got it, Dori.")
  24. Dialog.Start()
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. end
  30. function Step1Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 1, "I've spoken with Robert Newbury.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I've given the tally to Robert Newbury in the Qeynos Exchange.")
  33. UpdateQuestZone(Quest, "Graystone Yard")
  34. AddQuestStepChat(Quest, 2, "I need to return to Dorin in Graystone.", 1, "I must deliver this message back to Banker Dori in Graystone Yard.", 1223, 2350026)
  35. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 2, "I've returned to Banker Dori.")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "I've given the message to Dori in Graystone's Qeynos Exchange.")
  40. UpdateQuestDescription(Quest, "I've returned to Dori with the letter from banker Newbury about the impending inventory of her bank. It seems to me that if she hired better help than Jalan, she'd be doing herself a favor.")
  41. GiveQuestReward(Quest, Player)
  42. end
  43. function Reload(Quest, QuestGiver, Player, Step)
  44. if Step == 1 then
  45. Step1Complete(Quest, QuestGiver, Player)
  46. elseif Step == 2 then
  47. QuestComplete(Quest, QuestGiver, Player)
  48. end
  49. end