fix(equip): uneq all leaves one of two identical items equipped
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 74/100
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
- Equip two identical items, e.g. two Clips (
@item 2607 2) or two identical daggers on an Assassin. - Run
uneq all. - 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenKore/openkore
-
fix(cart): items added to the cart lose refine and cardsPossibly taken @baphomello claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
fix(vending): other players' shop list 0B3D is misreadPossibly taken @baphomello claimed this today. Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Maintainers usually reply within 1 day
-
Will WX's interface get a dark mode?Possibly taken @baphomello claimed this 10 days ago. Openfeature request
Difficulty 5/5 Over a week Newbie friendliness 15/100
OpenKore/openkore#4316 · 4 comments ·
Maintainers usually reply within 1 day
-
Missing portalsOpenfeature request
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Maintainers usually reply within 1 day
-
feature request
Difficulty 5/5 Over a week Newbie friendliness 20/100
Maintainers usually reply within 1 day
All issues in OpenKore/openkore
Similar issues
-
On macOS, lcovutil.pm loads itself twice and warns "Subroutine ... redefined" for each subroutineOpen
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
linux-test-project/lcov#574 ·
-
bug needs-assignee size/L
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
EffortlessMetrics/perl-lsp#10241 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
inverse-inc/packetfence#9741 ·
Maintainers usually reply within 1 day
-
Package Update Update Bot
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
priv-kweihmann/meta-sca#13305 ·
-
[BUG] Inverted check in Images::process_image_crop prevents fallback to full-size coordinatesPossibly taken @subhwastaken claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
openfoodfacts/openfoodfacts-server#15511 ·
Maintainers usually reply within 1 day