9
3

graystone_bank_tally_delivery.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. end
  19. function Declined(Quest, QuestGiver, Player)
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. end
  23. function Step1Complete(Quest, QuestGiver, Player)
  24. UpdateQuestStepDescription(Quest, 1, "I've spoken with Robert Newbury.")
  25. UpdateQuestTaskGroupDescription(Quest, 1, "I've given the tally to Robert Newbury in the Qeynos Exchange.")
  26. UpdateQuestZone(Quest, "Graystone Yard")
  27. 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)
  28. AddQuestStepCompleteAction(Quest, 2, "Step1Complete")
  29. end
  30. function QuestComplete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I've returned to Banker Dori.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I've given the message to Dori in Graystone's Qeynos Exchange.")
  33. 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.")
  34. GiveQuestReward(Quest, Player)
  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