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

Item stacking in Inventory #3

Closed
sven-n opened this issue Nov 25, 2017 · 1 comment
Closed

Item stacking in Inventory #3

sven-n opened this issue Nov 25, 2017 · 1 comment

Comments

@sven-n
Copy link
Member

sven-n commented Nov 25, 2017

When moving the same kind of an item to another, or picking it up, it should be possible that the item is automatically stacked up to it's maximum amount on one item slot. I'm not sure if that works for move on the official servers, but it would be nice to have even when not.

Example (move):
Move health potion to another health potion -> They are getting merged on one item slot up to 3 pieces
Example (pickup):
Pick up a health potion off the ground, having another health potion in the inventory -> They are getting merged on one item slot up to 3 pieces

The amount of the stacked item is transmitted to the game client in the same field as the durability. Durability is usually only relevant for equippable items - stackable items are not equippable -> works.

It's probably required to extend the ItemDefintion by a flag 'Stackable' or a field 'MaxmiumNumberOfPieces' to be able to define this for a certain kind of item.

@sven-n
Copy link
Member Author

sven-n commented Dec 12, 2018

Found out that stacking when moving items just works for some specific items (e.g. Symbol of Kundun) on the original client/server. However, I don’t see a reason to introduce the same limits in OpenMU ;)

@sven-n sven-n closed this as completed in daa170c Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant