-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5824 from hooksta4/minstrel_in_despair
[Quest]A Minstrel in Despair to IF
- Loading branch information
Showing
3 changed files
with
49 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
----------------------------------- | ||
-- A Minstrel in Despair | ||
----------------------------------- | ||
-- Log ID: 3, Quest ID: 12 | ||
-- Mertaire : !pos -17 0 -61 245 | ||
----------------------------------- | ||
local quest = Quest:new(xi.questLog.JEUNO, xi.quest.id.jeuno.A_MINSTREL_IN_DESPAIR) | ||
|
||
quest.reward = | ||
{ | ||
fame = 30, | ||
fameArea = xi.fameArea.JEUNO, | ||
gil = 2100, | ||
} | ||
|
||
quest.sections = | ||
{ | ||
{ | ||
check = function(player, status, vars) | ||
return status == xi.questStatus.QUEST_AVAILABLE and | ||
player:getQuestStatus(xi.questLog.JEUNO, xi.quest.id.jeuno.THE_OLD_MONUMENT) == xi.questStatus.QUEST_COMPLETED | ||
end, | ||
|
||
[xi.zone.LOWER_JEUNO] = | ||
{ | ||
['Mertaire'] = | ||
{ | ||
onTrade = function(player, npc, trade) | ||
if npcUtil.tradeHasExactly(trade, { xi.item.POETIC_PARCHMENT }) then | ||
return quest:progressEvent(101) | ||
end | ||
end, | ||
}, | ||
|
||
onEventFinish = | ||
{ | ||
[101] = function(player, csid, option, npc) | ||
if quest:complete(player) then | ||
player:confirmTrade() | ||
end | ||
end, | ||
} | ||
}, | ||
}, | ||
} | ||
|
||
return quest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters