letter_to_riason.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : Quests/Antonica/letter_to_riason.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.29 06:08:27
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I must deliver a letter to Riason at Windstalker Village in Antonica.", 1, "I must deliver Merchant Cooper's letter to Riason Hanagom at Windstalker pond.", 75, 120150)
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. AddConversationOption(conversation, "Not to worry, I'll get it there... unread.")
  19. StartConversation(conversation, QuestGiver, Player, "Truly a lifesaver! Deliver this to Riason Hanagom, no need to return here when you're finished. Tell him that he'll need to pay you for your services. Do try not to look at it. The letter is rather personal and I would feel awkward if someone else were to read it.")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. -- Add dialog here for when the quest is declined
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. -- Remove any quest specific items here when the quest is deleted
  26. end
  27. function QuestComplete(Quest, QuestGiver, Player)
  28. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  29. UpdateQuestStepDescription(Quest, 1, "I've delivered the letter to Riason.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I've delivered the letter to Riason Hanagom at Windstalker pond.")
  31. UpdateQuestDescription(Quest, "I've delivered the letter to Riason Hanagom as requested of me. I cannot say what will happen now, but the situation certainly seems less than savory.")
  32. GiveQuestReward(Quest, Player)
  33. end
  34. function Reload(Quest, QuestGiver, Player, Step)
  35. if Step == 1 then
  36. QuestComplete(Quest, QuestGiver, Player)
  37. end
  38. end