9
3

deposit_for_grekin.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. function Init(Quest)
  13. 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)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest)
  26. UpdateQuestStepDescription(Quest, 1, "I've delivered Grekin's deposit to banker Orudormo.")
  27. AddQuestStepChat(Quest, 2, "I should return to Grekin.", 1, "I should let Grekin know I deposited his money in the bank.", 75, 2340037)
  28. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  29. end
  30. function QuestComplete(Quest, QuestGiver, Player)
  31. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  32. UpdateQuestStepDescription(Quest, 2, "I let Grekin know I delievered his deposit to banker Orudormo.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I let Grekin know I delievered his deposit to to the bank")
  34. 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.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. Step1Complete(Quest, QuestGiver, Player)
  40. elseif Step == 2 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end