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
Posted by Darkophagus at 2011-01-21 12:25:32 Voted 10.00 on 01/21/11
Have been using this on a PW for awhile and forgot to vote so here it is. I give this a solid 10 as it does everything it claims to do and is easy to configure. I also found it easy to setup additional seperate chests that hold their own seperate inventories. Very nice. _________________________ -Staring silently into the pool of madness-
Posted by eviljason at 2010-12-04 15:37:18 Voted 10.00 on 12/04/10
Awesome, and easy to implement.
Posted by Hanzo666 at 2010-11-08 22:39:47 Voted 10.00 on 11/08/10
Beautiful! I had no problem installing it over a old version of this! And it just works so nicely!
Posted by Civious at 2010-08-14 10:40:56 Voted 9.75 on 08/14/10
Excellent stuff!
Is +scarface+ still around?
I'd like to expand this but not without permission
Posted by atikamarie at 2010-08-13 13:50:13 Voted 10.00 on 08/13/10
This is awesome! I have used it before.
I am wondering if there is a way to modify it so that it can support family names or guilds? For example, if you are part of Guild X you have access to Guild X's chest, but if you are part of Guild Y, you only get Guild Y's chest.
Posted by eviljason at 2010-07-29 09:07:17 Voted 10.00 on 12/04/10
Great system! Thank You.
Posted by EpicDude86 at 2010-03-25 09:51:41 Voted 10.00 on 03/25/10
Simple, clean, effective. Love it! _________________________ Love,
Epic Dude
Posted by dunahan at 2010-01-23 07:24:31 Voted 10.00 on 01/23/10
Just an comfortable system, a full 10! _________________________ Link
Isladora, an island in the Sea of Swords
Posted by Styxx42 at 2009-07-02 06:51:33 Voted 10.00 on 07/02/09
Very nice indeed. It has all been said before I am just getting around to playing NWN and this really makes a nice addition.
Posted by Dagesh at 2009-03-12 15:55:11 Voted 10.00 on 03/12/09
Very clean and very effective. I was easily able to move the listening patterns to the OnPlayerChat event as well. Thanks Scarface.
Posted by Razare at 2009-02-10 16:19:27 Voted 10.00 on 02/10/09
You commented your scripts even... 10.
Posted by wesker99801 at 2008-12-20 14:43:37 Voted 10.00 on 12/20/08
Thank you very much! I use this on my server, it's great.
Posted by +scarface+ at 2008-08-31 10:15:59 Voted 10.00
Yes that can be done, but not something I'd personally be interested in doing, sorry :)
Posted by the_deztroyer at 2008-08-19 14:21:32 Voted 9.75 on 08/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 2008-08-18 12:21:45 Voted 10.00 on 08/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 2008-07-31 06:20:07 Voted 10.00 on 07/31/08
...sorry, forgot to vote! _________________________ You will Despair!
Posted by Czecky_Despair at 2008-07-31 06:09:45 Voted 10.00 on 07/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 2008-05-26 11:12:53 Voted 10.00 on 05/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 2008-04-27 14:12:13 Voted 10.00 on 04/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 2008-04-15 17:16:50 Voted 10.00 on 04/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
Posted by Corysia at 2007-09-23 13:18:19 Voted 9.00 on 09/23/07
Islandia is also using this system as of this weekend.
Note that the module name must not have any spaces in it or the database file does not get created. I resolved this by adding a DATABASE_NAME constant to the sfpb_config file and replaced all uses of sModName and GetName(GetModule()).
Also, only the first 20 characters of the combined playername + underscore + charactername are used as the key to the data. I've encountered at least one player with an 18 character long login name, which leaves only the first letter of their character's name to provide a unique key. CD keys are an option, but I know too many players who play with different keys. I'm one of them.
Posted by NineCoronas at 2007-08-31 01:18:44 Voted 10.00 on 08/31/07
Just to give credit, the PW Dawn of Nordock is going to use this system. Thanks for the hard work Scarface. _________________________ "A dagger in the night is worth a thousand swords at dawn..."
Posted by dodgy at 2007-08-17 07:54:20 Voted 10.00 on 08/17/07
Another TOptenTastic vote for the Great man Scarface
Im currently using these scripts at my server Death and Dishonor.
IP 75.65.193.17:5121 _________________________ Link
Posted by +scarface+ at 2007-07-04 09:04:54 Voted 10.00
@ Cackfiend, it's just missing the backup file which is created again once you use the "Build Module" option and build all scripts, nothing to worry about. _________________________ §çà®Fãçë�