Skip to content

Add retroactive inventory and bank appearance backfill#227

Merged
Nyeriah merged 1 commit into
azerothcore:masterfrom
Aldori15:retroactive-inventory-sync
May 9, 2026
Merged

Add retroactive inventory and bank appearance backfill#227
Nyeriah merged 1 commit into
azerothcore:masterfrom
Aldori15:retroactive-inventory-sync

Conversation

@Aldori15

@Aldori15 Aldori15 commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Previously we've had CheckRetroActiveQuestAppearances() method to retroactively collect appearances that were rewarded from completed quests. This PR adds CheckRetroActiveInventoryAppearances() method that runs during the retroactive pass (when CheckRetroActiveQuestAppearances() is ran) and collects appearances from items players already own in their inventory or bank.

What it does

During the one-time retroactive login pass, it now scans:

  • Equipped gear
  • Backpack
  • Bag contents
  • Bank slots
  • Bank bag contents

Why

Previously, retroactive handling focused on quest rewards and could miss items already sitting in inventory/bank.

Notes

  • Existing collection eligibility rules are still respected.
  • This is a one-time backfill tied to the retroactive check flow. Retroactive eligibility rules are unchanged.

Add one-time retroactive backfill for already-owned appearances.

- Introduce CheckRetroActiveInventoryAppearances(Player*).
- Scan equipped slots, backpack, bag contents, bank main slots, and bank bag contents.
- Reuse AddToDatabase() eligibility rules for each found item.
- Call inventory backfill from CheckRetroActiveQuestAppearances().
- Add UseCollectionSystem guards to retroactive checks.

Result: existing eligible items in inventory/bank are learned on login during retroactive pass.
@Nyeriah
Nyeriah merged commit d1a6238 into azerothcore:master May 9, 2026
1 check passed
@Aldori15
Aldori15 deleted the retroactive-inventory-sync branch May 9, 2026 19:07
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.

2 participants