TeirDalTimer.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : TeirDalTimber.lua
  3. Script Purpose : Handles the quest, "Teir'Dal Timber"
  4. Script Author : jakejp
  5. Script Date : 6/21/2018
  6. Script Notes :
  7. Zone : Butcherblock Mountains
  8. Quest Giver : Ninoin D'syl
  9. Preceded by : None
  10. Followed by : Fletch Me More!
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepHarvest(Quest, 1, "I need to collect severed ash for Ninoin.", 10, 100, "I have agreed to harvest pieces of timber for Ninoin D'syl so that she may make new arrow shafts.", 826, 1081033, 1081039, 1081238)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have gathered a sufficent amount of severed ash.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I have gathered a significant amount of timber.")
  19. AddQuestStepChat(Quest, 2, "I need to bring the pile of timber to Ninoin.", 1, "I need to bring the timber I gathered back to Ninoin D'syl.", 11, 1080135)
  20. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  21. end
  22. function QuestComplete(Quest, QuestGiver, Player)
  23. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  24. UpdateQuestStepDescription(Quest, 2, "I have brought the pile of timber to Ninoin.")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "I have brought the timber to Ninoin D'syl.")
  26. UpdateQuestDescription(Quest, "Ninoin was pleased with the lumber I brought. As agreed, I was compensated for my efforts.")
  27. GiveQuestReward(Quest, Player)
  28. end
  29. function Reload(Quest, QuestGiver, Player, Step)
  30. if Step == 1 then
  31. Step1Complete(Quest, QuestGiver, Player)
  32. elseif Step == 2 then
  33. QuestComplete(Quest, QuestGiver, Player)
  34. end
  35. end
  36. function Accepted(Quest, QuestGiver, Player)
  37. FaceTarget(QuestGiver, Player)
  38. local con = CreateConversation()
  39. PlayFlavor(QuestGiver, "", "", "", 0, 0, Player)
  40. AddConversationOption(con, "Right away!")
  41. AddConversationOption(con, "What's in it for me?", "dlg_7")
  42. StartConversation(con, QuestGiver, Player, "Hmm, I suppose that would work. Though I do like the idea of beating someone into submission... Anyways, I need fresh cut timber to whittle down into arrow shafts. Bring me a substantial pile of timber from the trees around here.")
  43. end
  44. function Declined(Quest, QuestGiver, Player)
  45. -- Add dialog here for when the quest is declined
  46. end