performer_courier_service.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/NorthQeynos/performer_courier_service.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.11 09:05:38
  5. Script Purpose :
  6. Zone : NorthQeynos
  7. Quest Giver: Dawson Magnificent
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to deliver a message to Innkeeper Galsway.", 1, "I need to inform Galsway that Dawson and his performing troupe will be delayed.", 11, 2210022)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "", "", "thanks", 0, 0, Player)
  19. AddConversationOption(conversation, "I'll be on my way then.")
  20. StartConversation(conversation, QuestGiver, Player, "Return to me after you've spoken with Inn Keeper Galsway, and I'll see that you'll have a few more coins to rub together.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  30. UpdateQuestStepDescription(Quest, 1, "I've delivered the message to Innkeeper Galsway.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "Innkeeper Galsway was unhappy about Dawson's delay.")
  32. AddQuestStepChat(Quest, 2, "I need return to Dawson Magnificent.", 1, "I need to let Dawson Magnificent know that Galsway would be already, but his pay would be reduced.", 11, 2220113)
  33. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  37. UpdateQuestStepDescription(Quest, 2, "I've returned to Dawson Magnificent.")
  38. UpdateQuestTaskGroupDescription(Quest, 2, "Dawson Magnificent understood about the reduced payment.")
  39. UpdateQuestDescription(Quest, "I spoke with Innkeeper Galsway regarding Dawson Magnificent's tardiness. He didn't seem displeased, though he was disappointed to hear that his favorite performers would be late.")
  40. GiveQuestReward(Quest, Player)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. Step1Complete(Quest, QuestGiver, Player)
  45. elseif Step == 2 then
  46. QuestComplete(Quest, QuestGiver, Player)
  47. end
  48. end