FeathersForGherrana.lua 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : FeathersforGherrana.lua
  3. Script Purpose : Handles the quest, "Feathers for Gherrana"
  4. Script Author : jakejp
  5. Script Date : 6/7/2018
  6. Script Notes :
  7. Zone : Butcherblock Mountains
  8. Quest Giver : Gherrana Cobbleblork
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to collect Kragploom aviak feathers.", 10, 100, "I need to collect some healthy Kragploom aviak feathers for Gherrana, a gnome at the Highland Outposts.", 151, 1080073, 1080075, 1080076, 1080079, 1080081, 1080084, 1080252, 1080253, 1080255, 1080256, 1080338, 1080339, 1080343, 1080344, 1080346, 1080349, 1080352, 1081101)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have collected several Kragploom aviak feathers.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected several Kragploom aviak feathers for Gherrana.")
  19. AddQuestStepChat(Quest, 2, "I need to speak with Gherrana at the Highland Outposts.", 1, "I need to bring the Kragploom scavenger feathers back to Gherrana.", 11, 1081120)
  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 spoke with Gherrana.")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "I gave Gherrana the feathers.")
  26. UpdateQuestDescription(Quest, "I brought back a pile of Kragploom aviak feathers for Gherrana. Now she can continue work on her flying contraption... or stuff a down pillow.")
  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, "Off I go!")
  41. StartConversation(conversation, QuestGiver, Player, "Splendid! You might have an easier time getting them than I did. When I asked the Kragplooms themselves, they tried to eat me! Can you believe that! Me! I don't taste very good... At least I don't think I do. Anyways I'll need a great deal of feathers, so you better start now. Oh, and you will be fully compensated for your efforts.")
  42. end
  43. function Declined(Quest, QuestGiver, Player)
  44. -- Add dialog here for when the quest is declined
  45. end