Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lua][Quest] Lufets Lake Salt to IF #7136

Merged
merged 1 commit into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/globals/quests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ xi.quest.id =
FEAR_OF_THE_DARK = 78, -- + Converted
WARDING_VAMPIRES = 79, -- +
SLEEPLESS_NIGHTS = 80, -- ±
LUFETS_LAKE_SALT = 81, -- ±
LUFETS_LAKE_SALT = 81, -- ± Converted
HEALING_THE_LAND = 82, -- ±
SORCERY_OF_THE_NORTH = 83, -- ±
THE_CRIMSON_TRIAL = 84, -- ± Converted
Expand Down
78 changes: 78 additions & 0 deletions scripts/quests/sandoria/Lufets_Lake_Salt.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
-----------------------------------
-- Lufets Lake Salt
-----------------------------------
-- Log ID: 0, Quest ID: 81
-----------------------------------
-- Nogelle : !pos -70 -5.5 -33 232
-----------------------------------

local quest = Quest:new(xi.questLog.SANDORIA, xi.quest.id.sandoria.LUFETS_LAKE_SALT)

quest.reward =
{
gil = 600,
title = xi.title.BEAN_CUISINE_SALTER,
}

quest.sections =
{
{
check = function(player, status, vars)
return status == xi.questStatus.QUEST_AVAILABLE
end,

[xi.zone.PORT_SAN_DORIA] =
{
['Nogelle'] = quest:progressEvent(12),

onEventFinish =
{
[12] = function(player, csid, option, npc)
if option == 1 then
quest:begin(player)
end
end,
},
},
},
{
check = function(player, status, vars)
return status == xi.questStatus.QUEST_ACCEPTED
end,

[xi.zone.PORT_SAN_DORIA] =
{
['Nogelle'] =
{
onTrade = function(player, npc, trade)
if npcUtil.tradeHas(trade, { { xi.item.CHUNK_OF_LUFET_SALT, 3 } }) then
return quest:progressEvent(11)
end
end,

onTrigger = quest:event(10),
},

onEventFinish =
{
[11] = function(player, csid, option, npc)
if quest:complete(player) then
player:confirmTrade()
end
end,
},
},
},
{
check = function(player, status, vars)
return status == xi.questStatus.QUEST_COMPLETED
end,

[xi.zone.PORT_SAN_DORIA] =
{
['Nogelle'] = quest:event(522):replaceDefault(),
},
},
}

return quest
44 changes: 0 additions & 44 deletions scripts/zones/Port_San_dOria/npcs/Nogelle.lua

This file was deleted.