9
3

SoHotYouCatchThemCooked.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : Quests/Darklight/SoHotYouCatchThemCooked.lua
  3. Script Author : fearfx
  4. Script Date : 2017.01.24 06:01:15
  5. Script Purpose :
  6. Zone : Darklight
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepHarvest(Quest, 1, "I need to catch eight seared char.", 8, 100, "I need some seared char for Dirzdia.", 2541, 37177)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Step1Complete(Quest, QuestGiver, Player)
  16. UpdateQuestStepDescription(Quest, 1, "I have caught the seared char.")
  17. AddQuestStepChat(Quest, 2, "I need to bring these fish back to Dirzdia.", 1, "I need some seared char for Dirzdia.", 2541, 140025)
  18. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  19. end
  20. function QuestComplete(Quest, QuestGiver, Player)
  21. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  22. UpdateQuestStepDescription(Quest, 2, "I have brought the fish to Dirzdia.")
  23. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected the seared char for Dirzdia.")
  24. UpdateQuestDescription(Quest, "I have brought Dirzdia the seared char she wanted.")
  25. while HasItem(Player, 37177, 1) do
  26. RemoveItem(Player, 37177)
  27. end
  28. GiveQuestReward(Quest, Player)
  29. end
  30. function Reload(Quest, QuestGiver, Player, Step)
  31. if Step == 1 then
  32. Step1Complete(Quest, QuestGiver, Player)
  33. elseif Step == 2 then
  34. QuestComplete(Quest, QuestGiver, Player)
  35. end
  36. end
  37. function Accepted(Quest, QuestGiver, Player)
  38. -- Add dialog here for when the quest is accepted
  39. end
  40. function Declined(Quest, QuestGiver, Player)
  41. -- Add dialog here for when the quest is declined
  42. end