performer_courier_service.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. UpdateQuestZone(Quest,"Qeynos Harbor")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "", "", "thanks", 0, 0, Player)
  20. AddConversationOption(conversation, "I'll be on my way then.")
  21. 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.")
  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. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  31. UpdateQuestStepDescription(Quest, 1, "I've delivered the message to Innkeeper Galsway.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "Innkeeper Galsway was unhappy about Dawson's delay.")
  33. UpdateQuestZone(Quest,"North Qeynos")
  34. 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)
  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've returned to Dawson Magnificent.")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "Dawson Magnificent understood about the reduced payment.")
  41. 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.")
  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