Difference between revisions of "Extensions:Safety Deposit Box"
(Initialize) Tag: 2017 source edit |
m (Added image) Tag: 2017 source edit |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{Extensioninfobox|title=Safety Deposit Box|desc=Adds a safety deposit box to Lorekeeper|auth=[[user:Preimpression]]|status=Testing|github={{Github|user=preimpression|branch=extension/safety-deposit-box}}|LKVer=2.1.1|migration=yes|package=no}} | ||
+ | |||
This creates a Safety Deposit Box based on Neopets for users to store items they don't want to risk using in crafting, submissions, etc. Users can deposit items to their safety deposit box from the user inventory and then withdraw from the Safety Deposit Box. All Notes and Data on these stacks is maintained, therefore during withdrawal, it will include the data in the logs. | This creates a Safety Deposit Box based on Neopets for users to store items they don't want to risk using in crafting, submissions, etc. Users can deposit items to their safety deposit box from the user inventory and then withdraw from the Safety Deposit Box. All Notes and Data on these stacks is maintained, therefore during withdrawal, it will include the data in the logs. | ||
Currently, storage of character-owned items isn't supported, but I am always open to PRs and community expansion. | Currently, storage of character-owned items isn't supported, but I am always open to PRs and community expansion. | ||
− | |||
− | |||
==Installation== | ==Installation== | ||
Line 15: | Line 15: | ||
'''It is recommended that you read [[Tutorial: Installing Extensions]] for MERGING and TROUBLESHOOTING before proceeding.''' | '''It is recommended that you read [[Tutorial: Installing Extensions]] for MERGING and TROUBLESHOOTING before proceeding.''' | ||
+ | |||
+ | [[File:Screenshot of Safety Deposit Box in Use.png|alt=Screenshot of Safety Deposit Box in Use|thumb|Screenshot of Safety Deposit Box in Use.]] | ||
==Configuration== | ==Configuration== | ||
'''Extensibility''' | '''Extensibility''' | ||
+ | |||
There is room to extend this to include other types of things, such as pets or awards, but those don't come out of the box. Currency is planned, but not yet released. | There is room to extend this to include other types of things, such as pets or awards, but those don't come out of the box. Currency is planned, but not yet released. | ||
'''Lang File Included''' | '''Lang File Included''' | ||
+ | |||
If you'd like to change the url or display name of your safety deposit box you can edit the file <source lang="php" enclose="none">resources/lang/en/safetydeposit.php</source> | If you'd like to change the url or display name of your safety deposit box you can edit the file <source lang="php" enclose="none">resources/lang/en/safetydeposit.php</source> | ||
For instance, where it currently says <source lang="php" enclose="none">['url' => 'safetydeposit']</source>, you can change it to <source lang="php" enclose="none">['url' => 'storage']</source>. | For instance, where it currently says <source lang="php" enclose="none">['url' => 'safetydeposit']</source>, you can change it to <source lang="php" enclose="none">['url' => 'storage']</source>. |
Latest revision as of 10:00, 25 May 2023
Description | Adds a safety deposit box to Lorekeeper |
---|---|
Author(s) | user:Preimpression |
Status | Testing |
Github | extension/safety-deposit-box |
LK Version | 2.1.1 |
Contains a Migration | |
This creates a Safety Deposit Box based on Neopets for users to store items they don't want to risk using in crafting, submissions, etc. Users can deposit items to their safety deposit box from the user inventory and then withdraw from the Safety Deposit Box. All Notes and Data on these stacks is maintained, therefore during withdrawal, it will include the data in the logs.
Currently, storage of character-owned items isn't supported, but I am always open to PRs and community expansion.
Installation
Pull the branch and run the following commands in your console:
php artisan migrate
- This adds the applicable database tables and columns.
php artisan update-extension-tracker
- This adds the extension to your Credits page.
php artisan optimize
- Should do this in general when installing any extension to clear and re-cache your routes. You may need to do this twice.
It is recommended that you read Tutorial: Installing Extensions for MERGING and TROUBLESHOOTING before proceeding.
Configuration
Extensibility
There is room to extend this to include other types of things, such as pets or awards, but those don't come out of the box. Currency is planned, but not yet released.
Lang File Included
If you'd like to change the url or display name of your safety deposit box you can edit the file resources/lang/en/safetydeposit.php
For instance, where it currently says ['url' => 'safetydeposit']
, you can change it to ['url' => 'storage']
.
Usage
Users can go to their inventories and hit the button that says "Safety Deposit Box" (or whatever you've changed your lang to) to see their own. Users can't see other users' safety deposit boxes, nor can admins.