Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: server does not accurately track skill references for added skills #1557

Open
3 tasks done
EmosewaMC opened this issue May 1, 2024 · 0 comments
Open
3 tasks done
Labels
bug Something isn't working P-low This issue can affect gameplay, but does not prevent a user from playing or progressing

Comments

@EmosewaMC
Copy link
Collaborator

EmosewaMC commented May 1, 2024

Make sure you've done the following:

  • I have checked that this issue has not already been reported.

  • I have validated that this issue is not a syntax error of either MySQL or SQLite.

  • I have pulled the latest version of the main branch of DarkflameServer and have confirmed that the issue exists there.

DarkflameServer Version

All

Issue Description

currently the server allows the same skill to be equipped in two different slots when in live how this would work is the skill would only be in the first slot that it was equipped to, and then if all items that used that skill were unequipped, or if an equipping item overrides the original skills slot, the other slot would assume the skill.

Reproduction Steps

equip these two items
https://explorer.lu-dev.net/objects/13582 Mole Whacker (via subitem 13934 Molewhacker Left Hand Proxy)
https://explorer.lu-dev.net/objects/5995 Speedy Cap
observe that unequipping the items removes the skill from the wrong slot instead of keeping it there or moving it if another items takes over that slot.

Expected Behavior

2 items with the same skill:

  • first equipped item slot is where the skill will reside. unequipping either item will not remove the skill but instead decrement a reference counter by 1.
  • equipping another item will remove the skill as usual, but only by decrementing a reference counter. the item will do either of the following based on what happened
    • a new item overrides the slot 2 skills are in means the other slot will take ownership and add skill will need to be sent again for the new slot.
    • a new item overriding the slot not owned by the skill but owned by a reference will result in the new item skill being added and the reference counter going down by 1.

Environment

日本人

@EmosewaMC EmosewaMC added bug Something isn't working triage An issue that needs triage P-low This issue can affect gameplay, but does not prevent a user from playing or progressing and removed triage An issue that needs triage labels May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P-low This issue can affect gameplay, but does not prevent a user from playing or progressing
Projects
None yet
Development

No branches or pull requests

1 participant