ForTheDogs.lua 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : FortheDogs.lua
  3. Script Purpose : Handles the quest, "For the Dogs"
  4. Script Author : jakejp
  5. Script Date : 6/9/2018
  6. Script Notes :
  7. Zone : Butcherblock Mountains
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Talvrae asked me to collect fresh terratrodder meat for her.", 6, 100, "I must gather fresh terratrodder meat for Talvrae.", 288, 1080061, 1081094)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have the terratrodder meat, and I should return this to Talvrae T'Zyth.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I have gathered the terratrodder meat that Talvrae needs.")
  19. AddQuestStepChat(Quest, 2, "I must return the terratrodder meat to Talvrae. I can find her at the Highland Outposts.", 1, "I must return the fresh terratrodder meat to Talvrae T'Zyth.", 288, 1081107)
  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 given Talvrae the fresh terratrodder meat she asked for.")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "I have delivered the fresh terratrodder meat to Talvrae.")
  26. UpdateQuestDescription(Quest, "I was able to gather enough terratrodder meat for Talvrae T'Zyth. I can't be sure what her plan is, but it looks like she's getting ready to feed her pets rather than conduct any type of study.")
  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. conversation = CreateConversation()
  39. PlayFlavor(QuestGiver, "talvrae_t_zyth/_exp03/exp03_rgn_butcherblock/talvrae/qst_talvrae_004.mp3", "", "", 1310097835, 2111544733, Player)
  40. AddConversationOption(conversation, "I'm sure that I can. I'll gather the meat and return soon.", "dlg_23_6")
  41. StartConversation(conversation, QuestGiver, Player, "I could not explain the details of exactly what I am doing to the likes of you, for I doubt you would understand it. The only parts important to you are the task, and the result. Can you handle that?")
  42. end
  43. function Declined(Quest, QuestGiver, Player)
  44. -- Add dialog here for when the quest is declined
  45. end