deposit_for_grekin.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : deposit_for_grekin.lua
  3. Script Purpose : Handles the quest, "Deposit for Grekin"
  4. Script Author : Dorbin
  5. Script Date : 2/24/2022
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Starcrest Commune
  8. Quest Giver : Grekin
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I need to deliver the deposit to banker Orudormo.", 1, "I have to deliver merchant Grekin's deposit to banker Orudormo in Starcrest.", 401, 2340031)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. PlayFlavor(QuestGiver, "", "", "agree", 0, 0, Player)
  21. Dialog.AddDialog("For starters, it is only a day's proceeds. Also, there are three guards between the banks and us. I'm pretty sure you would be caught if you tried to run. Aside from all that, you have a friendly face and I think I can trust you. Take this box to the bank and return with the receipt.")
  22. Dialog.AddVoiceover("voiceover/english/merchant_grekin/qey_village02/merchantgrekin001.mp3", 2487079650,1001036096)
  23. Dialog.AddOption("Okay. I will be back shortly with the receipt.")
  24. Dialog.Start()
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. -- Add dialog here for when the quest is declined
  28. end
  29. function Deleted(Quest, QuestGiver, Player)
  30. -- Remove any quest specific items here when the quest is deleted
  31. end
  32. function Step1Complete(Quest)
  33. UpdateQuestStepDescription(Quest, 1, "I've delivered Grekin's deposit to banker Orudormo.")
  34. AddQuestStepChat(Quest, 2, "I should return to Grekin.", 1, "I should let Grekin know I deposited his money in the bank.", 75, 2340037)
  35. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 2, "I let Grekin know I delievered his deposit to banker Orudormo.")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "I let Grekin know I delievered his deposit to to the bank")
  41. UpdateQuestDescription(Quest, "I deposited Grekin's money in the local bank. His merchant tent was really very close to the bank after all; I hardly had any trouble finding it.")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. QuestComplete(Quest, QuestGiver, Player)
  49. end
  50. end