Skip to content

feat(receive): allow servers to customize vender item unpack structure#4166

Merged
alisonrag merged 4 commits intoOpenKore:masterfrom
baphomello:laRO_vender_items_list_item_pack
Mar 9, 2026
Merged

feat(receive): allow servers to customize vender item unpack structure#4166
alisonrag merged 4 commits intoOpenKore:masterfrom
baphomello:laRO_vender_items_list_item_pack

Conversation

@baphomello
Copy link
Contributor

Summary

This PR makes the vender_items_list item unpack process customizable for servers with modified packet structures.

Previously, the unpacked fields were mapped using a fixed key order inside Receive.pm. Some servers change the order or structure of these fields, which required editing core code.

This change introduces vender_items_list_item_keys, allowing server-specific receive modules to define the field order that corresponds to vender_items_list_item_pack.

If no custom keys are defined, the original default order is used, ensuring full backward compatibility.

Motivation

Some servers modify packet layouts for vender item lists. Allowing configurable keys avoids hardcoding structures in the core and simplifies support for custom servers.

Changes

  • Added support for vender_items_list_item_keys
  • Replaced fixed key assignment with configurable key list
  • Preserved default behavior for existing servers

@alisonrag alisonrag merged commit 05acbe0 into OpenKore:master Mar 9, 2026
9 checks passed
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