Difference between revisions of "Extensions:Safety Deposit Box"

From Lorekeeper Wiki
Jump to navigation Jump to search
Tag: 2017 source edit
m
Tag: 2017 source edit
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.
 
{{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}}
 
  
 
==Installation==
 
==Installation==

Revision as of 09:55, 25 May 2023

Safety Deposit Box
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.