9
3

hawk_hunt.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : Quests/TheElddarGrove/hawk_hunt.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.05 03:05:15
  5. Script Purpose :
  6. Zone : TheElddarGrove
  7. Quest Giver: Gregor Earthstride
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to gather some hawks for Gregor Earthstride.", 5, 100, "I need to kill five hawks in the Forest ruins for Gregor Earthstride in the Elddar Grove.", 80, 1960013,8270026)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. UpdateQuestZone(Quest,"Forest Ruins")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "", "", "agree", 0, 0, Player)
  20. AddConversationOption(conversation, "I'll see what I can do.")
  21. StartConversation(conversation, QuestGiver, Player, "If you find some feathers worth using, I might have something that interests you... I'll be here working with Nightbow for a while on other orders if you need me again.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  31. UpdateQuestStepDescription(Quest, 1, "I have retrieved the hawks Gregor Earthstride needs.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I've managed to hunt down five hawks for Gregor Earthstride.")
  33. UpdateQuestZone(Quest,"The Elddar Grove")
  34. AddQuestStepChat(Quest, 2, "I need to deliver these hawks to Gregor Earthstride.", 1, "I need to kill five hawks in the Forest ruins for Gregor Earthstride in the Elddar Grove.", 80, 2070010)
  35. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 2, "I delivered the hawks Gregor Earthstride he requested.")
  39. UpdateQuestTaskGroupDescription(Quest, 2, "Gregor Earthstride seemed pleased with the hawks I gave him.")
  40. UpdateQuestDescription(Quest, "Gregor Earthstride was grateful for the hawks I downed for him. I found it hard to bite my tongue when he mentioned that he could not find the birds he needed... after all, he is a ranger!")
  41. GiveQuestReward(Quest, Player)
  42. end
  43. function Reload(Quest, QuestGiver, Player, Step)
  44. if Step == 1 then
  45. Step1Complete(Quest, QuestGiver, Player)
  46. elseif Step == 2 then
  47. QuestComplete(Quest, QuestGiver, Player)
  48. end
  49. end