delivery_for_thardrin.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : Quests/NorthQeynos/delivery_for_thardrin.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.11 05:05:30
  5. Script Purpose :
  6. Zone : NorthQeynos
  7. Quest Giver: Thardrin Steeleye
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I have to deliver Sneed Galliway's supplies to the Trading Post.", 1, "Sneed Galliway still needs those supplies from the Qeynos Cache.", 1046, 2220027)
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "", "", "point", 0, 0, Player)
  19. AddConversationOption(conversation, "Ugh, that looks heavy. Guess I'm stuck with it for a bit now though.")
  20. StartConversation(conversation, QuestGiver, Player, "Of course there is something in it for you! A tip from Sneed Galliway, if you're hasty. Sneed ordered supplies from a trading company last week, and they just arrived. I need them delivered to his trading post down the road.")
  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 QuestComplete(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 delivered Sneed Galliway's supplies.")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "Thardrin Steeleye's package was delivered safely to Sneed Galliway.")
  32. UpdateQuestDescription(Quest, "After lugging that heavy crate of supplies from Thardrin to Sneed's Trading Post, my arms burned. It's just too bad the pay for it didn't load me down more than it did.")
  33. GiveQuestReward(Quest, Player)
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. QuestComplete(Quest, QuestGiver, Player)
  38. end
  39. end