9
3

hawk_hunt.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  27. UpdateQuestStepDescription(Quest, 1, "I have retrieved the hawks Gregor Earthstride needs.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I've managed to hunt down five hawks for Gregor Earthstride.")
  29. UpdateQuestZone(Quest,"The Elddar Grove")
  30. 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)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I delivered the hawks Gregor Earthstride he requested.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "Gregor Earthstride seemed pleased with the hawks I gave him.")
  36. 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!")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1Complete(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end