HopefulNetReturns.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : Quests/Darklight/HopefulNetReturns.lua
  3. Script Purpose : Handles the quest, "Hopeful Net Returns"
  4. Script Author : FeaRFx
  5. Script Date : 13/06/2016
  6. Script Notes :
  7. Zone : Darklight Wood
  8. Quest Giver : Aunthrae
  9. Preceded by : What's in Demand? (WhatsinDemand.lua)
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Give the fishing net to Dirzdia T'Zauvirr", 1, "Deliver the fishing net to Dirzdia T'Zauvirr at the southern bridge spanning over the Searing Tendril River.", 0, 340096)
  14. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  15. GiveFishingNet(Quest, QuestGiver, Player)
  16. end
  17. function GiveFishingNet(Quest, QuestGiver, Player)
  18. SummonItem(Player, 7296, 1)
  19. end
  20. function QuestComplete(Quest, QuestGiver, Player)
  21. RemoveItem(Player, 7296)
  22. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  23. UpdateQuestStepDescription(Quest, 1, "I gave the fishing net to Dirzdia T'Zauvirr")
  24. UpdateQuestTaskGroupDescription(Quest, 1, "I found Dirzdia T'Zauvirr and delivered the net given to me by Aunthrae.")
  25. UpdateQuestDescription(Quest, "I found Dirzdia T'Zauvirr at the southern bridge over the Lower Tendril River.")
  26. GiveQuestReward(Quest, Player)
  27. end
  28. function Reload(Quest, QuestGiver, Player, Step)
  29. if Step == 1 then
  30. QuestComplete(Quest, QuestGiver, Player)
  31. end
  32. end
  33. function Accepted(Quest, QuestGiver, Player)
  34. -- Add dialog here for when the quest is accepted
  35. end
  36. function Declined(Quest, QuestGiver, Player)
  37. -- Add dialog here for when the quest is declined
  38. end