Bug Closed · Resolved

[BUG] mmoitems holding conditions issue

#4392 opened by Unknown 2 years ago

Unknownreported this bug

Summary

Different items are recognized as the same item

Steps to reproduce

Provide a full set of steps used to reproduce the bug, including links to SEPARATE Pastebin pastes for each relevant configuration file.

TriggerConditions:

  • holding{m=mmoitems.WEAPON.M1_SWORD_COMMON} true

same (==)

TriggerConditions:

  • holding{m=mmoitems.WEAPON.M1_SWORD_UNCOMMON} true

Describe what happens currently, while the bug is affecting your server.

Items with M1 in front are recognized as the same item.

Describe what you think should happen instead of the bug.

Server log file

Provide a link to a Pastebin paste with a copy of your server's latest.log file from startup to "Done!" AND includes a player connecting.

Debug log snippet

Provide a link to a Pastebin paste with an excerpt of your latest.log file that includes debug output where you trigger the bugged behavior.

Proposed fixes

Describe what you think the issue or any potential fixes may be.

Unknowncommented

/related #1308

Unknowncommented

Have you found a solution to the problem?

Unknowncommented

It seems like the bug is causing items with the "M1" prefix to be recognized as the same, even when they should be different, like the M1_SWORD_COMMON and M1_SWORD_UNCOMMON. This could be due to how item identifiers are parsed. To fix it, I'd suggest checking the way the system handles item prefixes and ensuring that each item's properties are uniquely identified.

On a different note, while troubleshooting bugs on my server, I was thinking about how much easier banking has become these days. In today’s digital world, managing finances is as simple as checking a server log. Just like how fabbalancechecking.com allows FAB users to check their balance, send money internationally, and grow their business online, managing server issues has become more accessible with the right tools. FAB provides unique solutions, just like how we need to streamline our processes on the server side!

Sign in to join the discussion.