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
Add container:getItems() function and option stash moving items to supply stash and depot #169
Merged
omeranha
merged 28 commits into
opentibiabr:master
from
omeranha:container-getItems-and-stash-moving
Feb 28, 2022
Merged
Add container:getItems() function and option stash moving items to supply stash and depot #169
omeranha
merged 28 commits into
opentibiabr:master
from
omeranha:container-getItems-and-stash-moving
Feb 28, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This reverts commit 205df46.
omeranha
changed the title
Container get items and stash moving
Container get items function and stash moving
Dec 7, 2021
beats-dh
approved these changes
Dec 7, 2021
This comment was marked as outdated.
This comment was marked as outdated.
This PR is stale because it has been open 45 days with no activity. |
This comment was marked as outdated.
This comment was marked as outdated.
omeranha
changed the title
Container get items function and stash moving
container:getItems() function and stash moving
Feb 16, 2022
Tested:
|
majestyotbr
changed the title
container:getItems() function and stash moving
Add container:getItems() function and option stash moving items to supply stash and depot
Feb 26, 2022
Kudos, SonarCloud Quality Gate passed! |
majestyotbr
approved these changes
Feb 26, 2022
omeranha
added a commit
to opentibiabr/otservbr-global
that referenced
this pull request
Mar 21, 2022
Sync with canary pull requests: opentibiabr/canary#147 opentibiabr/canary#169 opentibiabr/canary#184 opentibiabr/canary#221
luan
pushed a commit
that referenced
this pull request
Jul 11, 2023
…pply stash and depot (#169) Part of code by @nekiro (https://github.com/nekiro) otland/forgottenserver#3160 container:getItems() function New method which will return all container items, optional bool recursive to search in sub containers of container. Usage: ``` local items = container:getItems(true) for _, item in ipairs(items) do print(item:getName()) end ``` My part of code: - New stash option. - Stow an container to your Stash(or right click container->Stow Item), the stowable items go your stash, and non-stacked items go to the selected depot chest(default is 4, config.lua configurable).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Part of code by @nekiro (https://github.com/nekiro)
otland/forgottenserver#3160
container:getItems() function
New method which will return all container items, optional bool recursive to search in sub containers of container.
Usage:
My part of code:
New stash option.
Stow an container to your Stash(or right click container->Stow Item), the stowable items go your stash, and non-stacked items go to the selected depot chest(default is 4, config.lua configurable).