fix(equip): uneq all leaves one of two identical items equipped

Open Beginner friendly
#4,430 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.

  • #4431 by @baphomello — open

Assessment

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

Research direction

Start at the uneq all branch in src/Commands.pm around lines 6348-6351, where equipped items are collected and then re-resolved by name against {equipped}. The fix keeps the identity of each collected entry instead of doing a name lookup, since {equipped} is only updated when the server replies. Done means running uneq all with two identical Clips or two daggers sends one unequip per item and leaves nothing equipped, matching the sent-packet log in the report.

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

uneq all collects the equipped items, then looks each one up again by name (Commands.pm). {equipped} only changes when the server answers, so with two items of the same name both lookups return the first one: it is unequipped twice and the other one stays on.

Relevant Log Output

Two Clips and a Hat; names translated from the lab's kr/pt tables:

uneq all
Sent packet    : 00AB    [Unequip]      (x3)
You unequip Clip [1] (1) - Accessory
You unequip Clip [1] (1) - Accessory
You unequip Hat (3) - Helmet

Clip (2) stays equipped. With two Knives on an Assassin, the left-hand Knife stays equipped (equip = 32 in the DB).

Expected Result

Every equipped item is unequipped once.

How to Reproduce
  1. Equip two identical items, e.g. two Clips (@item 2607 2) or two identical daggers on an Assassin.
  2. Run uneq all.
  3. One of them is still equipped.
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.