9
3

nightbows_deposit.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : Quests/TheElddarGrove/nightbows_deposit.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.08 10:05:03
  5. Script Purpose :
  6. Zone : TheElddarGrove
  7. Quest Giver: Master Archer Nightbow
  8. Preceded by: Arrows for Fanthis
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to take In-Range's deposit to Grisvane Stonearm in the Qeynos Exchange in Qeynos Harbor.", 1, "I need to take In-Range's deposit to Grisvane Stonearm in the Qeynos Exchange in Qeynos Harbor.", 10, 2210222)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. UpdateQuestZone(Quest,"Qeynos Harbor")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/master_archer_nightbow/qey_elddar/armsdealernightbow002.mp3", "", "agree", 2931514549, 74273653, Player)
  20. AddConversationOption(conversation, "I'll bring you back the recipt.")
  21. StartConversation(conversation, QuestGiver, Player, "A dwarf named Grisvane Stonearm will take the deposit. You need to peek over the Exchange's counter to find him. He's been doing the figures for this shop for nearly twenty years, and it just wouldn't do to go to someone else. Bring a recipt for the deposit when you're done please!")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I spoke with Grisvane Stonearm.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I've deposited In-Range's money at the Qeynos Exchange.")
  32. AddQuestStepChat(Quest, 2, "I need return this recipt to Nightbow at In-Range in the Elddar Grove.", 1, "Nightbow will want this recipt to know that I have made her despot to the Qeynos Exchange.", 75, 2070011)
  33. AddQuestStepCompleteAction(Quest,2, "QuestComplete")
  34. UpdateQuestZone(Quest,"The Elddar Grove")
  35. end
  36. function QuestComplete(Quest, QuestGiver, Player)
  37. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  38. UpdateQuestStepDescription(Quest, 2, "I returned to Armsdealer Nightbow.")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned to Nightbow with the recipt for In-Range's money.")
  40. UpdateQuestDescription(Quest, "I've deposited In-Range's daily earnings with the bank, where I met a dwarf named Grisvane. The proprietor of the shop, Aysabelle Nightbow, paid me for running the coins over to the bank.")
  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 == 1 then
  47. QuestComplete(Quest, QuestGiver, Player)
  48. end
  49. end