StockComponents.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : StockComponents.lua
  3. Script Purpose : jakejp
  4. Script Author : QuestParser (Replace this)
  5. Script Date : 6/17/2018
  6. Script Notes :
  7. Zone : Butcherblock Mountains
  8. Quest Giver : Thayvl Ulthonis
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Collect dust from several wisps.", 10, 100, "Thayvl has asked me to collect the dust from several wisps found here in the Butcherblock Mountains.", 342, 1080261, 1081126, 1080072, 1081100)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have collected dust from several wisps.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected the dust from several slain wisps.")
  19. AddQuestStepChat(Quest, 2, "Speak with Thayvl Ulthonis.", 1, "I need to return to Thayvl Ulthonis. He can be found in the Butcherblock highlands.", 11, 1080130)
  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 spoken with Thayvl Ulthonis.")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "I presented Thayvl with a large amount of wandering essence dust.")
  26. UpdateQuestDescription(Quest, "Who says a Teir'Dal can't keep their word? Thayvl rewarded me well 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. conversation = CreateConversation()
  39. PlayFlavor(QuestGiver, "", "", "", 0, 0, Player)
  40. AddConversationOption(conversation, "We have a deal. I will return with a large amount of dust shortly.")
  41. StartConversation(conversation, QuestGiver, Player, "Hmm. Alright, I might be able to part with a trinket of sorts in exchange for your help. The sooner I have all the material components I've been... asked to bring back, the sooner I can return to... home. Yes, home.")
  42. end
  43. function Declined(Quest, QuestGiver, Player)
  44. -- Add dialog here for when the quest is declined
  45. end