1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- --[[
- Script Name : Quests/TheCommonlands/far_seas_requisition__fg_016.lua
- Script Purpose : Handles the quest, "Far Seas Requisition - FG 016"
- Script Author : premierio015
- Script Date : 26.05.2021
- Script Notes : Auto generated with QuestParser.
- Zone : Commonlands, Fallen Gate
- Quest Giver :
- Preceded by : None
- Followed by : None
- --]]
- function Init(Quest)
- SetQuestFeatherColor(Quest, 3)
- SetQuestRepeatable(Quest)
- 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)
- 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)
- 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)
- AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
- AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
- AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
- end
- function Accepted(Quest, QuestGiver, Player)
- -- Add dialog here for when the quest is accepted
- end
- function Declined(Quest, QuestGiver, Player)
- -- Add dialog here for when the quest is declined
- end
- function Deleted(Quest, QuestGiver, Player)
- -- Remove any quest specific items here when the quest is deleted
- end
- function Step1Complete(Quest, QuestGiver, Player)
- UpdateQuestStepDescription(Quest, 1, "I've collected enough gloom snake skins.")
- CheckProgress(Quest, QuestGiver, Player)
- end
- function Step2Complete(Quest, QuestGiver, Player)
- UpdateQuestStepDescription(Quest, 2, "I've collected enough cursed shriller wings.")
- CheckProgress(Quest, QuestGiver, Player)
- end
- function CheckProgress(Quest, QuestGiver, Player)
- if QuestStepIsComplete(Player, 5240, 1) and QuestStepIsComplete(Player, 5240, 2) and QuestStepIsComplete(Player, 5240, 3) then
-
- UpdateQuestTaskGroupDescription(Quest, 1, "I've gathered all of the items on the requisition. I should turn them in.")
- 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)
- AddQuestStepCompleteAction(Quest, 4, "QuestComplete")
- end
- end
- function Step3Complete(Quest, QuestGiver, Player)
- UpdateQuestStepDescription(Quest, 3, "I've collected enough shadow lurker venom.")
- CheckProgress(Quest, QuestGiver, Player)
- end
- function QuestComplete(Quest, QuestGiver, Player)
- -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
- UpdateQuestStepDescription(Quest, 4, "")
- UpdateQuestTaskGroupDescription(Quest, 2, "I have delivered the items on the FSR to the Taskmaster at the crossroads in the Commonlands.")
- 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.")
- GiveQuestReward(Quest, Player)
- end
- function Reload(Quest, QuestGiver, Player, Step)
- if Step == 1 then
- Step1Complete(Quest, QuestGiver, Player)
- elseif Step == 2 then
- Step2Complete(Quest, QuestGiver, Player)
- elseif Step == 3 then
- Step3Complete(Quest, QuestGiver, Player)
- elseif Step == 4 then
- QuestComplete(Quest, QuestGiver, Player)
- end
- end
|