9
3

far_seas_requisition_ant0351.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --[[
  2. Script Name : Quests/Antonica/far_seas_requisition_ant0351.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.15 04:05:13
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. SetQuestFeatherColor(Quest, 3)
  13. SetQuestRepeatable(Quest)
  14. AddQuestStepKill(Quest, 1, "I must kill some bear cubs", 5, 100, "I must hunt down the creatures in Antonica to fill the requisition.", 93, 120257,120473)
  15. AddQuestStepKill(Quest, 2, "I must kill some pond beavers", 5, 100, "I must hunt down the creatures in Antonica to fill the requisition.", 94, 120415)
  16. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  17. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  18. end
  19. function Accepted(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is accepted
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have killed some bear cubs")
  30. QuestCheck(Quest, QuestGiver, Player)
  31. end
  32. function Step2Complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I have killed some pond beavers.")
  34. QuestCheck(Quest, QuestGiver, Player)
  35. end
  36. function QuestCheck(Quest, QuestGiver, Player)
  37. if QuestStepIsComplete(Player,5823,1) and QuestStepIsComplete(Player,5823,2) then
  38. UpdateQuestTaskGroupDescription(Quest, 1, "I have hunted down all the resources to fill the requisition.")
  39. AddQuestStepChat(Quest, 3, "I must speak with Taskmaster Lynette", 1, "I must find Taskmaster Lynette at Coldwind Point in Antonica and deliver this fulfilled contract.", 75, 121256)
  40. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  41. end
  42. end
  43. function QuestComplete(Quest, QuestGiver, Player)
  44. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  45. UpdateQuestStepDescription(Quest, 3, "I visited Taskmaster Lynette.")
  46. UpdateQuestTaskGroupDescription(Quest, 2, "I have delivered the requisition goods to the Taskmaster.")
  47. UpdateQuestDescription(Quest, "I filled the Far Seas Requisition and delivered the goods to the Taskmaster out in Antonica. I have been paid in full for this work.")
  48. GiveQuestReward(Quest, Player)
  49. end
  50. function Reload(Quest, QuestGiver, Player, Step)
  51. if Step == 1 then
  52. Step1Complete(Quest, QuestGiver, Player)
  53. elseif Step == 2 then
  54. Step2Complete(Quest, QuestGiver, Player)
  55. elseif Step == 3 then
  56. QuestComplete(Quest, QuestGiver, Player)
  57. end
  58. end