-
Notifications
You must be signed in to change notification settings - Fork 757
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
Implementation of Hercules Ultimate Storage System (HUSS) #3330
base: master
Are you sure you want to change the base?
Conversation
This commit includes: - HUSS main implementation - openstorage script command update - @storage atcommand update - @clearstorage atcommand update - @storeall atcommand update - @storagelist atcommand update
- There can be an unlimited amount of storages and limits. - All setting names are case-sensitive and must be keyed accurately. - The storage capacity will default to MAX_STORAGE in mmo.h if it is set higher - Storage ID 1 is the default (official) storage for accounts. - Integrated storage_constants (Constant) into the configuration so that it can be assigned dynamically
Thank you @jasonch35 hope this one will get implemented. |
Yes, Limit is capped by MAX_STORAGE which is 600 by default. |
Btw, I kept the "default" storage without warning/errors as it is set as default in original Herc's branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for putting the effort in fixing the previous PRs!
I did not try running it yet, but from the code review, I got those questions/points that may need to be addressed.
src/map/storage.c
Outdated
if ((sd->storage.access & STORAGE_ACCESS_PUT) == 0) { | ||
clif->delitem(sd, index, amount, DELITEM_NORMAL); | ||
clif->additem(sd, index, amount, 0); | ||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same question here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not test, but another question here: clif->delitem
and clif->additem
are related to player inventory, in this case, shouldn't we use the calls for Cart instead (clif->cart_additem
/ clif->cart_delitem
)? since this is a move from cart to storage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tested. You're right, should be clif->cart_delitem
/ clif->cart_additem
. Changed. c8947dc
Pull Request Prelude
Changes Proposed
MAX_STORAGE
at config readingStorage Configuration
Script Command
openstorage(<storage_constant>{, <storage_mode>});
Storage Modes
All atcommands utilizing storage has been updated as well:
@storage <storage name/id>
@storeall <storage name/id>
@clearstorage <storage name/id>
@storagelist
command only list Main storage for nowIssues addressed:
Credits to: @sagunkho and @dastgirp
Let's gooooo let's push this through!