fix(vending): other players' shop list 0B3D is misread

Open
#4,426 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.

  • #4427 by @baphomello — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
perl
Domain
networking

Research direction

Start with vender_items_list, which reads the shop list with the 0800 layout, and the laRO layout override that already handles this packet. Compare the 64-byte 0B3D record (refine and grade at the end) against the linked packets_struct.hpp and RODecomp references. Run a parser harness on a 0B3D capture to confirm the item fields. Done means every item in the sample shop parses with correct price and amount, and the ServerType0, bRO, iRO and twRO layouts no longer trip the unique Actor ID assertion.

Written by the indexing model from the issue text.

Description

Openkore version git

OpenKore master 19ef338f539f588c54c5652b72bc6eaae6af298e

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

Since RE 2020-07-23, other players' shop lists come as 0B3D, whose 64-byte record ends with refine and grade (packets_struct.hpp, RODecomp). vender_items_list reads it with the server type's 0800 layout instead, so only the first item is right. The rest are garbage and cannot be bought with vender.

Only laRO overrides the layout. With the ServerType0, bRO, iRO and twRO layouts, a parser harness dies with Assertion (Actor ID in ActorList must be unique) failed!.

Relevant Log Output

Shop with Red Potion x10, Orange Potion x3 and a +7 Knife [Poring Card]; names translated from the lab's kr/pt tables:

vender 0
0  Red Potion                         100z 10
1  DAMAGED Unknown #128512         76,800z 768
2  +1 Unknown #78710016       327,680,000z 0
3  Unknown                          1,792z 0
Expected Result

The three items, with their prices and amounts, and all of them buyable.

How to Reproduce
  1. On a server type that sends 0B3D, open a shop with two or more items on another character.
  2. Run vl, then vender 0 on the bot: only the first item is right.
  3. Try to buy any other item with vender 0 <item> 1.
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.