Repository navigation
Trade the seasonal NPC exchanges their dialogs state - #3864
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 24 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
erwan-joly
force-pushed
the
events/3376-seasonal-exchanges
branch
from
November 29, 2026 09:19
d804be6 to
327915b
Compare
Rebased on master and regenerated the AddNpcExchangeDialogGoldAndBuff migration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CUfJ46iekh4rbiCyoTamtn
erwan-joly
force-pushed
the
events/3376-seasonal-exchanges
branch
from
November 29, 2026 09:49
327915b to
3270588
Compare
3 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #3376
Wires the seasonal NPC exchanges where the client's
npctalk.datdialog lines andItem.datdescriptions state both sides of the trade. It uses theNpcExchangestable from #3766 and #3779. Values come from the current client archive (NSgtdData.NOS). None of these n_runs appear in the stored packet traces.Exchanges
OldExchangeForChristmasGiftBoxOldExchangeForChristmasSnowmanRaidSealExchangeForEasterEggFairyExchangeForEasterGrasslinSealExchangeForRedMagicalFairyExchangeForHalloweenBoxExchangeForThanksgivingGiftBoxExchangeForJackOLanternSealPlusHalloweenBlessingOldExchangeForChristmasReindeerAntlers84 to 87 are not listed in #3376, but they are the same kind of seasonal exchange on Santa's dialog, and master did not handle them either.
Item.dat has two Egg Fairy entries. 538 is the standard fairy. 8067 has the same fairy index but sits in the limited-item range (index 8, extra flags), like 8023 for the Grasslin Fairy.
What changed
NpcExchangehas three new optional columns (migrationAddNpcExchangeDialogGoldAndBuff):Dialog: a row that names a dialog is only given by an NPC with that dialog. n_run 47 uses it so each of the three NPCs hands out their own box.Gold: gold taken along with the materials. If the player has too little, the existingsayiNotEnoughGoldis sent and nothing is taken. On success the gold is removed and agoldpacket is sent.CardId: a buff cast on the player after the item is given, throughIBuffService.ApplyAsync. Its duration comes from the card.NpcExchangeServiceapplies the three columns. As before, the NPC's dialog must offer the runner.NpcExchangeHandlersubclass per runner, following the existing pattern.Left for later (data does not settle them)
&@button on the shop NPCs. Its reward and the costume condition are not stated.A packet trace of any of these buttons on the official server would settle them.
Tests
NpcExchangeServiceTests:NotEnoughGoldis said.NpcExchangeParserTests: every new row is written with its materials, gold, dialog and card.MigrationTests.EveryModelChangeHasItsMigrationpasses.Manual test plan (added under "NPC exchanges")
Verification
Only unit tests have checked this so far. It has not been tried in the client.
🤖 Generated with Claude Code