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
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 on08/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 on08/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 Access from facebook Link
Posted by Kabuki at on08/16/07
What will we do with out you Scar, seriously?
Posted by danielf30 at on08/08/07
This is tops and im using it, very awesome work, thanks SF _________________________ Check out my PW: Rolepay: Arcana arcana.homelinx.org:5121 Link
Posted by Milliorn at on08/06/07
congrats on your second HOF download. _________________________ A Carpathian Nightmare - Action Direct Connect IP 216.161.26.219:5121 A Carpathian Nightmare Website Forums! Link Link Check out my band "Slowly Truth Dies" on Myspace! Link
Posted by +scarface+ at 00:34:49 Voted10.00
Thank you for the support guys and allowing another one of my systems to be posted into the 'Hall Of Fame'. _________________________ §çà®Fãçë? NWN1 Submissions: [Persistent Banking] - [Character Appearance Modifier] [XP/GP Distribution] - [Item Crafting] - [Socketed Items] NWN2 Submissions: [Persistent Banking]
Posted by Mike1_9 at on07/27/07
Great banking system. _________________________ Link
Posted by AmanShadar at on07/12/07
Voting is good. _________________________ AmanShadar's Spawn System (Creatures, Placeables, Items, and Traps) AmanShadar's Death System AmanShadar's Ship System Critter Info Module
Posted by +scarface+ at 09:04:54 Voted10.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ãçë? NWN1 Submissions: [Persistent Banking] - [Character Appearance Modifier] [XP/GP Distribution] - [Item Crafting] - [Socketed Items] NWN2 Submissions: [Persistent Banking]