Files

12 lines
2.3 KiB
Markdown

# Character-bank current presentation
The source SHOW_BANK handler could emit native bank-open while the character was outside active world state. A sent banker actor also remained usable after eligibility or map/realm presentation changed. The retained equipment_bank_open check covered sent/generation only, so later bank transfers could continue from a stale presentation. The dedicated full-packet/lifecycle fixture reports 33 failures among 139 checks on the old behavior and zero after the fix.
SHOW_BANK now requires an active selected owner and realm, with no logout or pending transfer/teleport. Creature bankers must be eligible and sent in the current map/realm with a nonzero generation. The retained interaction uses the same scope plus its original generation. Source actor creates assign generation with ++generation and record presentation realm/map; this uses existing genuine presentation evidence. No distance threshold or NPC permission is invented.
The source NPCHandler::SendShowBank writes the GUID and binds the server's current banker. The existing native interaction writer emits GUID, Bank67 and Success; full output bytes are compared. Genuine GM self-bank remains accepted in active owner context. Both creature and supported helper-pet banker paths remain covered. No new native-reader or live bank UI acceptance is claimed.
Checks cover fresh packet and bag-slot purchase routing, inactive/unknown/retired actor scopes, eligibility, generation, map/realm changes, malformed source packets, recovery, recreation requiring a fresh source offer, and GM self-bank. These are explicit binding/world-state transitions, not a claim of full source teardown coverage. The existing gameplay fixture passes after its three bank-positive setups receive real current presentation metadata; the independently merged binder fixture still passes all 105 checks.
Only bank cases and equipment_bank_open changed in this commit; binder13e67caa was merged first and is independent. The new fixture is registered as native-character-bank-presentation. Changed world translation plus focused fixtures were compiled against matching host dependencies. The inline bank helper changes no class layout or ABI, but all native consumers should be rebuilt for integration. No codec/content/client changes.