far_seas_requisition_ant0235.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. --[[
  2. Script Name : Quests/Antonica/far_seas_requisition_ant0235.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.15 04:05:06
  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 klicnik mites.", 6, 100, "I must hunt down the creatures in Antonica to fill the requisition.", 162, 120067)
  15. AddQuestStepKill(Quest, 2, "I must kill some moat rats", 6, 100, "I must hunt down the creatures in Antonica to fill the requisition.", 99, 120066)
  16. AddQuestStepKill(Quest, 3, "I must kill some lowland vipers", 6, 100, "I must hunt down the creatures in Antonica to fill the requisition.", 102, 120068)
  17. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  18. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  19. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  20. end
  21. function Accepted(Quest, QuestGiver, Player)
  22. -- Add dialog here for when the quest is accepted
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. -- Add dialog here for when the quest is declined
  26. end
  27. function Deleted(Quest, QuestGiver, Player)
  28. -- Remove any quest specific items here when the quest is deleted
  29. end
  30. function Step1Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 1, "I have killed some klicnik mites.")
  32. QuestCheck(Quest, QuestGiver, Player)
  33. end
  34. function Step2Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "I have killed some moat rats.")
  36. QuestCheck(Quest, QuestGiver, Player)
  37. end
  38. function Step3Complete(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 3, "I have killed some lowland vipers.")
  40. QuestCheck(Quest, QuestGiver, Player)
  41. end
  42. function QuestCheck(Quest, QuestGiver, Player)
  43. if QuestStepIsComplete(Player,5820,1) and QuestStepIsComplete(Player,5820,2) and QuestStepIsComplete(Player,5820,3) then
  44. UpdateQuestTaskGroupDescription(Quest, 1, "I have hunted down all the resources to fill the requisition.")
  45. AddQuestStepChat(Quest, 4, "I must speak with Taskmaster Lynette", 1, "I must find Taskmaster Lynette at Coldwind Point in Antonica and deliver this fulfilled contract.", 75, 121256)
  46. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  47. end
  48. end
  49. function QuestComplete(Quest, QuestGiver, Player)
  50. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  51. UpdateQuestStepDescription(Quest, 4, "I visited Taskmaster Lynette.")
  52. UpdateQuestTaskGroupDescription(Quest, 2, "I have delivered the requisition goods to the Taskmaster.")
  53. 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.")
  54. GiveQuestReward(Quest, Player)
  55. end
  56. function Reload(Quest, QuestGiver, Player, Step)
  57. if Step == 1 then
  58. Step1Complete(Quest, QuestGiver, Player)
  59. elseif Step == 2 then
  60. Step2Complete(Quest, QuestGiver, Player)
  61. elseif Step == 3 then
  62. Step3Complete(Quest, QuestGiver, Player)
  63. elseif Step == 4 then
  64. QuestComplete(Quest, QuestGiver, Player)
  65. end
  66. end