far_seas_requisition__fg_158_.lua 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. --[[
  2. Script Name : Quests/TheCommonlands/far_seas_requisition__fg_158_.lua
  3. Script Purpose : Handles the quest, "Far Seas Requisition - FG 158"
  4. Script Author : premierio015
  5. Script Date : 26.05.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands, Fallen Gate
  8. Quest Giver : Far Seas Requisition - FG 158
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. SetQuestFeatherColor(Quest, 3)
  14. SetQuestRepeatable(Quest)
  15. AddQuestStepKill(Quest, 1, "Hunt cursed shrillers for their wings", 4, 100, "This particular order calls for four shriller wings and four gloom snake fangs. The location listed on the order slip points to the ruins of Neriak, Fallen Gate.", 140, 1190021)
  16. AddQuestStepKill(Quest, 2, "Hunt gloom snakes for their fangs", 4, 100, "This particular order calls for four shriller wings and four gloom snake fangs. The location listed on the order slip points to the ruins of Neriak, Fallen Gate.", 112, 1190019)
  17. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  18. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  19. end
  20. function Accepted(Quest, QuestGiver, Player)
  21. -- Add dialog here for when the quest is accepted
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I've collected enough cursed shriller wings.")
  31. CheckProgress(Quest, QuestGiver, Player)
  32. end
  33. function CheckProgress(Quest, QuestGiver, Player)
  34. if QuestStepIsComplete(Player, 5242, 1) and QuestStepIsComplete(Player, 5242, 2) then
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I've gathered all of the items on the requisition. I should turn them in.")
  36. AddQuestStepChat(Quest, 3, "Find the Taskmaster at the Crossroads in the Commonlands", 1, "Deliver filled FSR order to the Taskmaster at the crossroads in the Commonlands.", 11, 330260)
  37. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  38. end
  39. end
  40. function Step2Complete(Quest, QuestGiver, Player)
  41. UpdateQuestStepDescription(Quest, 2, "I've collected enough gloom snake fangs.")
  42. CheckProgress(Quest, QuestGiver, Player)
  43. end
  44. function QuestComplete(Quest, QuestGiver, Player)
  45. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  46. UpdateQuestStepDescription(Quest, 3, "")
  47. UpdateQuestTaskGroupDescription(Quest, 2, "I have delivered the items on the FSR to the Taskmaster at the crossroads in the Commonlands.")
  48. UpdateQuestDescription(Quest, "I filled the Far Seas Requisition and delivered the goods to the Taskmaster at the crossroads in the Commonlands. I have been paid in full for this work.")
  49. GiveQuestReward(Quest, Player)
  50. end
  51. function Reload(Quest, QuestGiver, Player, Step)
  52. if Step == 1 then
  53. Step1Complete(Quest, QuestGiver, Player)
  54. elseif Step == 2 then
  55. Step2Complete(Quest, QuestGiver, Player)
  56. elseif Step == 3 then
  57. QuestComplete(Quest, QuestGiver, Player)
  58. end
  59. end