-
Notifications
You must be signed in to change notification settings - Fork 772
Mapflag nostorage and nogstorage #2221
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
Conversation
|
please squash all commits, because fix commits is useless until not pushed to master |
1cb70d3 to
6f568cc
Compare
|
@4144 Thank you for explain and be clear. I'm new in pull requests... Anyway, i've combined them in one commit. |
6f568cc to
da7c5e6
Compare
|
@4144 Hi! Can you review this? Thank you =] |
da7c5e6 to
93066fa
Compare
|
@carloshenrq probably same flags need check also in script commands related to storages? |
|
@4144 Actually I don't think it should be needed. There're some servers that set @storage for VIP players... but inside battlegrounds, for example, this might be blocked to prevent abuse... Anyway, I can put a type in the mapflag... like: prontera mapflag nostorage 1 // block only atcommands but the block de script commands'll be last used. |
|
Isn't this doable via the map zone db, and it's much more configurable since you can set any command not just the storage and you can specify a group id to bypass the restriction.. other than that if you're still adding this i would suggest renaming it to noatstorage noatgstorage since that is a more accurate naming. |
|
yes probably type can be good idea |
93066fa to
a3167a6
Compare
|
@4144 Ok! I'll change =] Just for record... I've copied and pasted from others mapflags like this one: (refer to if( !state )) and %s", params) Should be an issue/task for change others to new format? |
|
yes in code many wrong style. but in new code better not add more style issues. about task yes, probably some one should fix style issues |
a3167a6 to
5c7ddc8
Compare
|
@4144 Have done all changes! Can you review it? Thank you =] |
5c7ddc8 to
a1f5614
Compare
a1f5614 to
2dc76fa
Compare
2dc76fa to
0b931f7
Compare
0b931f7 to
582336d
Compare
Pull Request Prelude
Changes Proposed
This pull request, add 2 new mapflags by default. nostorage and nogstorage.
This change only affect atcommands like @storage and @gstorage, NPCs are still able to open player storage.
By now, we can apply this using plugins, but i believe this flag can be default in hercules.
Affected Branches:
master
Issues addressed:
Known Issues and TODO List