9
3

FletchMeMore.lua 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : FletchMeMore.lua
  3. Script Purpose : Handles the quest, "Fletch Me More!"
  4. Script Author : jakejp
  5. Script Date : 6/22/2018
  6. Script Notes :
  7. Zone : Butcherblock Mountains
  8. Quest Giver : Ninoin D'syl
  9. Preceded by : Tier'Dal Timber
  10. Followed by : Straight and to the Point
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to hunt Kragploom aviaks for their feathers.", 12, 100, "I need to gather feathers for Ninoin. She insisted I gather them from the Kragploom predators that stalk the Butcherblock highlands.", 147, 1080084, 1080079)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have gathered a sufficent number of feathers for Ninoin.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I have gathered a sufficent number of feathers from the Kragploom predators.")
  19. AddQuestStepChat(Quest, 2, "I need to return the aviak feathers to Ninoin.", 1, "I need to bring the feathers 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 returned the aviak feathers to Ninoin.")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "I have brought the feathers back to Ninoin D'Syl.")
  26. UpdateQuestDescription(Quest, "Ninoin was pleased with the Kragploom feathers I brought her. 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. AddConversationOption(con, "It will be done in due course.")
  40. StartConversation(con, QuestGiver, Player, "Yes, Kragploom should work quite well. Bring me several feathers from any type of Kragploom you're able to hunt down. Their plumage would be best to make my arrows from.")
  41. end
  42. function Declined(Quest, QuestGiver, Player)
  43. -- Add dialog here for when the quest is declined
  44. end