fix(cart): items added to the cart lose refine and cards

Open Beginner friendly
#4,428 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@baphomello is already working on this.

Since Nov 24, 2026.

  • #4429 by @baphomello — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
perl
Domain
networking

Research direction

The bad field list is the one for packet 0B45 (item added to cart), which has upgrade twice; compare it with the 0B44 entry, which is correct, and fix the duplicate. Start from the packet definitions where the cart-add structures are declared. Done when a cart item added with refine and cards keeps its name, refine and cards in the 'Cart Item Added' message and cart get finds it.

Written by the indexing model from the issue text.

Description

Openkore version git

OpenKore master 50a10b01b

XKore Mode

XKore 0

RO Server Name

Local rAthena, using the kRO_RagexeRE_2021_11_03 server type

Link to RO server

rAthena, running locally

Result

The 0B45 (item added to cart) field list has upgrade twice, so every field after broken is shifted: refine gets the grade, cards get the option bytes and options get the refine. Items added to the cart lose their refine and cards, gain a fake option, and their name no longer matches the inventory, so cart get <name> and other name lookups fail until the server resends the cart (relog).

The layout matches 0B44, whose field list is right (packets_struct.hpp, RODecomp). It came with #3598.

Relevant Log Output

Names translated from the lab's kr/pt tables:

Item added to inventory: +7 Knife [Poring Card] [3] (1) x 1 - Weapon
Cart Item Added: Knife [3] [1 Option] (0) x 1 - Weapon
Cart Item Added: Cotton Shirt [1 Option] (1) x 1 - Armor      <- was +4 Cotton Shirt
cart get "+7 Knife [Poring Card] [3]" 1
Cart item '+7 Knife [Poring Card] [3]' does not exist.
Expected Result

The cart item keeps its refine, cards and name, as after a relog.

How to Reproduce
  1. On a server type that sends 0B45, get a refined or carded item (@item2 1201 1 1 7 0 4001 0 0 0).
  2. Run cart add <index>: the message shows no refine and no card, plus [1 Option].
  3. Run cart get "<inventory name>" 1: the item is not found.
Dominant language
Perl
Stars
1.5k
Forks
1.2k
Avg merge
13h 13m
Merged PRs (30d)
130

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenKore/openkore

All issues in OpenKore/openkore

Similar issues

More Perl issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.