This is a High performance persistent banking system using Biowares database.
I decided to remake my persistent banking system due to an idea I had to improve the performance and get rid of all previous bugs with the old system.
You can allow players to save their items persistently without hindering server performance.
You can save ANY items, equipment, weapons, stacked items, and gold with no problems at all very fast and efficiently using Biowares database. Containers (i.e. bags will not be saved to avoid any possible exploits, fair warning is given to the player).
You can also save gold persistently via the banker NPC. The Banker NPC uses listening patterns, you basically speak the amount you want to deposit/withdraw by typing it into the char bar.
These are the database speeds with 100 items stored in a chest:
Database Read 78 msec
Database Write 128 msec
As you can see both the read and write are extremely fast (up to 74x normal database speed), so no real need for NWNX.
Implementation:
This new system uses utilizes the database in a very different way, so I am afraid players will lose any gold/items saved with the previous system, but considering this version is 74x more efficient and bug free it's in your best interest to replace the old version.
If replacing the old version, delete ALL of the scripts that begin with bank_ then delete the conversation named bank_conv.
Import the .erf files into your module.
Place the "Persistent Chests" anywhere you want in your module (as many as you like).
Place the "Banker" NPC anywhere you want in your module (as many as you like).
You can adjust some settings in the "sfpb_config" script.
Use the "build Module" option and select to compile all scripts (this is very important).
The Persistent Chest is located in >> Placeables >> Custom >> Special >> Custom 1.
The Banker is located in >> Creatures >> Custom >> Special >> Custom 1.
All done.
Enjoy :D
Scarface
Latest Update 4th-Nov-2006
o Fixed the nasty duping bug that was caused by players logging out while using the persistent chests ;D
Thank you very much! I use this on my server, it's great.
Posted by +scarface+ at 10:15:59 Voted10.00
Yes that can be done, but not something I'd personally be interested in doing, sorry :) Peace _________________________ §çà®Fãçë? NWN1 Submissions: [Persistent Banking] - [Character Appearance Modifier] [XP/GP Distribution] - [Item Crafting] - [Socketed Items] NWN2 Submissions: [Persistent Banking]
Posted by the_deztroyer at on08/19/08
Is there any way to script the Persistent chest So that I can use say 10-12 of them in the same room, sort of a Safe Deposit System in a bank, with seperate keys bought from the Banker? My idea was to use the chests in every town of my PW so that a player could go into the local bank and have access to his items in any town...like magic containers. I set it up and the problem I ran into was obvious. The items placed in one chest appear in ALL chests I set up. Otherwise the Banker and chest are all top-shelf coolness!
Posted by raltyinferno at on08/18/08
Sweet _________________________ You can get more with a kind word and a gun than you can with just a kind word.
Posted by Czecky_Despair at on07/31/08
...sorry, forgot to vote! _________________________ You will Despair!
Posted by Czecky_Despair at on07/31/08
Great system. Use it in my mod. It has made my life easier, and should compliment any PW. _________________________ You will Despair!
Posted by Jimmy_Buffit at on05/26/08
This is a really nice system and very easy to use. Thanks again scarface for sharing your hard work:) _________________________ Currently stalking the dungeons of ForkWest.com
Posted by Blasco-Yang at on04/27/08
Extemely easy to implement. I've been looking for something like this for a while. Great work Scar. Easily a 10 as far as I'm concerned.
Posted by OmegaDM at on04/15/08
Been using this system for awhile in my PW, very good work. Only suggestion is to make the convo private (which I did in my own PW), but otherwise a very nice simple, "working" persistent bank. kudos Z _________________________ Omega Forge on the vault