Skip to content

Add Unexpected Treasure quest implementation#10071

Open
Lydya-nick77 wants to merge 1 commit into
LandSandBoat:basefrom
Lydya-nick77:unexpected-treasure-quest
Open

Add Unexpected Treasure quest implementation#10071
Lydya-nick77 wants to merge 1 commit into
LandSandBoat:basefrom
Lydya-nick77:unexpected-treasure-quest

Conversation

@Lydya-nick77
Copy link
Copy Markdown

@Lydya-nick77 Lydya-nick77 commented May 20, 2026

I affirm:

  • I understand that if I do not agree to the following points by completing the checkboxes my PR will be ignored.
  • I understand I should leave resolving conversations to the LandSandBoat team so that reviewers won't miss what was said.
  • I have read and understood the Contributing Guide and the Code of Conduct.
  • I have tested my code and the things my code has changed since the last commit in the PR and will test after any later commits.

What does this pull request do?

Adds the missing quest Unexpected Treasure in San d'Oria by adding the file scripts/quests/sandoria/Unexpected_Treasure.lua

Steps to test these changes

Purchase a Cupboard from Justi at the furniture shop in (F-8) and put it in your mog house.
Zone out and back into your mog house.
Wait some time (1 real-world minutes).
Talk to your Moogle. He will say he found something, and give you a Key Item Small teacup.
Return to the furniture shop and speak to Morunaude twice.
Speak to Calovour in the Cathedral (M-6).
Trade Calovour a Mistletoe to complete the quest.

@Lydya-nick77 Lydya-nick77 force-pushed the unexpected-treasure-quest branch from 242387f to c77281b Compare May 20, 2026 03:30
@Lydya-nick77 Lydya-nick77 force-pushed the unexpected-treasure-quest branch from f24c3cd to cb15193 Compare May 20, 2026 05:07

[637] = function(player, csid, option, npc)
-- Calovour explains she needs a Sprig of Mistletoe; no state change needed.
end,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unneeded onEventFinish. It does nothing

elseif prog == 1 then
return quest:progressEvent(636)
else
return quest:event(636)
Copy link
Copy Markdown
Contributor

@Xaver-DaRed Xaver-DaRed May 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Why is the same event called twice? And if this is the actual behavior, why different steps. just else it


[636] = function(player, csid, option, npc)
quest:setVar(player, 'Prog', 2)
end,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And continuing my previous comment, you should check for the var == 1 or else you will de-progress the quest on accident.

@Xaver-DaRed
Copy link
Copy Markdown
Contributor

Why is this quest coded in a completely different manner than most quests?

onEventFinish =
{
[30003] = function(player, csid, option, npc)
quest:setLocalVar(player, 'questSeen', 1)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the questSeen var for?

If the quest is accepted it won't be available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants