far_seas_requisition__fg_016.lua 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. --[[
  2. Script Name : Quests/TheCommonlands/far_seas_requisition__fg_016.lua
  3. Script Purpose : Handles the quest, "Far Seas Requisition - FG 016"
  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 :
  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 gloom snakes for their skins", 2, 100, "This particular order calls for two gloom snake skins, four bat wings and six spider venom glands. The location listed on the order slip points to the ruins of Neriak, Fallen Gate.", 172, 1190019)
  16. AddQuestStepKill(Quest, 2, "Hunt cursed shrillers for their wings", 4, 100, "This particular order calls for two gloom snake skins, four bat wings and six spider venom glands. The location listed on the order slip points to the ruins of Neriak, Fallen Gate.", 140, -1190021)
  17. AddQuestStepKill(Quest, 3, "Hunt shadow lurkers for their venom", 6, 100, "This particular order calls for two gloom snake skins, four bat wings and six spider venom glands. The location listed on the order slip points to the ruins of Neriak, Fallen Gate.", 163, 1190001)
  18. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  19. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  20. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  21. end
  22. function Accepted(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is accepted
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. -- Add dialog here for when the quest is declined
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. -- Remove any quest specific items here when the quest is deleted
  30. end
  31. function Step1Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 1, "I've collected enough gloom snake skins.")
  33. CheckProgress(Quest, QuestGiver, Player)
  34. end
  35. function Step2Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 2, "I've collected enough cursed shriller wings.")
  37. CheckProgress(Quest, QuestGiver, Player)
  38. end
  39. function CheckProgress(Quest, QuestGiver, Player)
  40. if QuestStepIsComplete(Player, 5240, 1) and QuestStepIsComplete(Player, 5240, 2) and QuestStepIsComplete(Player, 5240, 3) then
  41. UpdateQuestTaskGroupDescription(Quest, 1, "I've gathered all of the items on the requisition. I should turn them in.")
  42. AddQuestStepChat(Quest, 4, "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)
  43. AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
  44. end
  45. end
  46. function Step3Complete(Quest, QuestGiver, Player)
  47. UpdateQuestStepDescription(Quest, 3, "I've collected enough shadow lurker venom.")
  48. CheckProgress(Quest, QuestGiver, Player)
  49. end
  50. function QuestComplete(Quest, QuestGiver, Player)
  51. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  52. UpdateQuestStepDescription(Quest, 4, "")
  53. UpdateQuestTaskGroupDescription(Quest, 2, "I have delivered the items on the FSR to the Taskmaster at the crossroads in the Commonlands.")
  54. 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.")
  55. GiveQuestReward(Quest, Player)
  56. end
  57. function Reload(Quest, QuestGiver, Player, Step)
  58. if Step == 1 then
  59. Step1Complete(Quest, QuestGiver, Player)
  60. elseif Step == 2 then
  61. Step2Complete(Quest, QuestGiver, Player)
  62. elseif Step == 3 then
  63. Step3Complete(Quest, QuestGiver, Player)
  64. elseif Step == 4 then
  65. QuestComplete(Quest, QuestGiver, Player)
  66. end
  67. end