Neverwinter Vault

Expand AllContract All -Site -My Profile -Features

Neverwinter Nights 2

-NWN2 Files -NWN2 Game Info -NWN2 Resources -NWN2 Community

Neverwinter Nights

-NWN Files -NWN Game Info -NWN Resources -NWN Community

Vault Network
RPG Vault
VN Boards
IGN Vault
Vault Wiki
· Age of Conan
· Anarchy Online
· Asheron's Call
· Dark Age of Camelot
· City of Heroes
· D&D
· EVE Online
· EverQuest
· EverQuest 2
· Final Fantasy
· Guild Wars
· Lineage 2
· Lord of the Rings Online
· Middle Earth
· Neverwinter Nights
· Pirates of the Burning Sea
· Rise of the Argonauts
· Star Wars Galaxies
· Tabula Rasa
· The Matrix Online
· The Witcher
· Titan Quest
· Two Worlds
· Vanguard
· Warhammer
· World of Warcraft

Planet Network
Planet Hub

IGN
Games
Cheats
Entertainment

The Web   The Site  



NWN SCRIPTS

- Jump to comments -
Title  PCNT - Persistent Containers
Author  Knat
Submitted / Updated  06-16-2003 / 11-22-2006
Category  Database Related
Expansions  Works on all versions
View Code  

Select All Text | View Code in separate window
Format  Module and Code
Type  Type - Item Storage
Includes  BioWare Standard
Description
PCNT - Persistent Container Scripts by Knat

update to 1.1, fixed even more exploits and some bugs

this code got developed during the database beta time...

features:
  • does only need one database call to read or write a complete inventory.
  • easy to customize and flexible
  • you can specify a container capacity limit just by changing the WillSafe property of your placeable
  • you can specify how a container gets indexed by changing the ReflexSafe property:
  • optional caching included (greatly reduces database usage to a minimum)
  • you can block items based on TAG or base item type
  • works with every itemtype now
  • advanced anti-exploit mechanisms
  • multiplayer compatible
  • uses a hashed index to overcome the 32 char limit of sVarName
  • modular code, easy to expand or change...
see readme.txt and script headers for more info. check pcnt.mod for a quick demonstration

Files

NameTypeSizeDownloads
pcnt.zippcnt.zip
Submitted: 06-16-2003 / Last Updated: 06-27-2003
zip28.59Kb2347
--
SCORE OUT OF 10
8.95
12 votes
View Stats
Cast Your Vote!

PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS
No Images




You Must Be Logged In to Participate.
Comments (38):

  1  2 Next>

Posted by Daijin at 2011-10-20 15:06:04    Voted 10.00 on 10/20/11
Casting my vote of 10 again!!!
_________________________
Dream Well, Faith, Loyalty, Truth, Honor, Friendship always.....

Daijin Dreamweaver, Leader of the Dream Warriors for 32 years, going strong.

Nwn The Dunjon Shard:
Link

Posted by Doomie22 ( 213.106.xxx.xxx ) at 2006-04-04 06:47:18    
Excellent system, one question. Can it be converted into using the mysql database? Is it just a simple case of changing the SetLocal to SetPersistent? (I know I need to add the aps scripts)

Doomie

Posted by OmegaDM at 2005-09-16 15:42:56    Voted 9.00 on 09/16/05
system is pretty straight forward, but instruction on its use and implementation could use more detail
_________________________
Omega Forge on the vault

Posted by DuncanZahn at 2005-04-06 23:29:13    Voted 10.00 on 04/06/05
Very well done!

Posted by MoradinSoulForger ( 67.161.xxx.xxx ) at 2004-12-04 10:58:00    
I'm not sure how Will Save can be manipulated to increase or decrease capacity....what am I missing? Is this an actual saving throw against characters Will stat?

Posted by MoradinSoulForger ( 67.161.xxx.xxx ) at 2004-12-04 10:57:00    
I'm not sure how Will Save can be manipulated to increase or decrease capacity....what am I missing? Is this an actual saving throw against characters Will stat?

Posted by caesarbear at 2004-09-23 14:05:59    Voted 4.00 on 09/23/04
A nice idea, but it does not work with most custom items.

Posted by Tichondrius at 2004-09-20 07:04:12    Voted 9.50 on 09/20/04
Actually one of the best persistent containers on the Wault. I give it 9.5/10 bcs they cannot hold the dynamic item properties. Nevertheless if you use this set of scripts, youll definitly love it. ;)

Posted by Deleverator at 2004-08-27 14:58:59    Voted 10.00 on 08/27/04

Posted by Ondaderthad at 2004-08-14 19:07:33    Voted 9.00 on 08/14/04
Simple, efficient and very easy to use.
_________________________
The Best PW system is getting even better.
PLATEMAIL Tech Preview

Posted by Nazrohn at 2004-08-11 16:56:00    Voted 10.00 on 08/11/04

Posted by Dreamwarder at 2004-06-22 04:37:00    
This is an excellent set of scripts and I would recommend them to anyone. I've only noticed one issue:

If an item that you put in a persistent container has a dynamic item property attached to it, then it will have lost that item property when you remove the item from the container after server reset. It would be great to see an update that addresses permanent dynamic item properties, but these scripts are top-notch regardless.

Posted by Silverti at 2004-06-12 20:50:28    Voted 5.00 on 06/12/04
I used this sytem for some time and finally took it out. I had to do a lot of modifications to get it to work and in the end it was plagued by lost items, cheaters and all kinds of problems since HOU was released. It really did turn into a large problem on Adventure Island. I ended up going with a new system posted here in ign that works great. Sorry KNAT, I like your other code.

_________________________
Creater / Designer / Host
Adventure Island 1: NWN
Adventure Island 2: NWN2

Link

Posted by Urlryn at 2004-03-22 23:57:00    
Ok I have no idea why this isn't working.

I import the erf
Create the Chest
I Edit the properties and set the scripts:
--- assign pcnt_open to the OnOpen event
--- assign pcnt_close to the OnClose event

Willsafe and Reflexsafe....are those supposed to be Reflex Save and Will Save?

If so I set Reflex to 2
Will what is the max? I could find nothing showing what the limits are supposed to be for this option.

Place the chest on the map....save

Load up and login with character or DM and nobody can open the chest.


Posted by Bane_Moonglum at 2004-03-22 23:23:07    Voted 10.00 on 03/22/04
Very nice - been using this for awhile!!

Posted by Artimes ( ..xxx.xxx ) at 2004-03-21 19:01:00    
Great Script! I might have missed it in the documentation but figured out that the one of the saving values was the maximum storage.

Great Work!

Posted by MorganQuickthrust at 2004-03-15 16:05:22    Voted 8.00 on 03/15/04

Posted by MorganQuickthrust at 2004-02-26 12:02:00    Voted 8.00 on 03/15/04
If you want housing, Donnmathan, check out Knats housing system also. It rocks! ;)

Interesting point on using Pack Animals, Fatgato! This could be very useful in creating true Pack Animals and Trade Caravans if we can setup a system that integrates it properly. Knat, do you see PCNT as possibly being able to accomplish this? Obviously it might need somemodifications, I'm just curious if you think it's possible. You know the code better then any of us. You mention that PCNT can be used on creatures too. I'd love to be able to create real trade caravans that actually carry stuff that can be waylaid by Bandits and what not. heh heh...

Also, the download here still seems to be pointing to 1.0 and not 1.1. ;)

Posted by Donnmathan ( ..xxx.xxx ) at 2004-02-26 10:20:00    
Quick question - when you are saying that will save is used to limit the amount the chest can hold, are we talking weight, number of items, what? Otherwise...excellent work! Was wanting to add housing with persistant (secure) storage to my PW, and it seems to be exactly what I needed.

Posted by fatgato at 2004-02-24 19:36:00    
I ahve some pack mules and other pack animals on my server I was curious if there was a way to make them be vaults? But the only problem is this if they get killed can you make it so the items fall on the ground? I am not sure if its possible but woudl be interesting.


Posted by MorganQuickthrust at 2004-02-22 09:28:00    Voted 8.00 on 03/15/04
Knat, it doesn't appear that the upload for this worked. The previous version is still the one that get's downloaded. Just wanted you to know. I'll post at The Fold about this too in case you don't check here that often. Heh heh... ;)

Posted by Daijin at 2004-02-22 01:04:00    Voted 10.00 on 10/20/11
Hmm, the downloaded file says 6-28-03?Dream Warriors Leader of 24 years, Faith, Loyalty, Honor, Truth and Friendship always.......
_________________________
Dream Well, Faith, Loyalty, Truth, Honor, Friendship always.....

Daijin Dreamweaver, Leader of the Dream Warriors for 32 years, going strong.

Nwn The Dunjon Shard:
Link

Posted by Old_Scores_Transfered at 2004-02-20 10:29:25    Voted 9.00 on 02/20/04
This is a compilation of the old system into a single score. There were 8 that made this score of 8.50 then rounded to 9.

Posted by _Knat ( ..xxx.xxx ) at 2004-02-08 05:42:00    
i will soon release a major update to this script, which fixes a few dupe/exploit problems and some other quirks..

stay tuned...

Posted by Silverti at 2004-01-29 20:07:00    Voted 5.00 on 06/12/04
Well, I have been using this for a long time and now the bugs are really comming out. Right now, if I open a chest, anotehr player will click on it and get the "locked" status. So while he is keeping it open, I can then pick it and get into his stuff (actually it dup's).

_________________________
Creater / Designer / Host
Adventure Island 1: NWN
Adventure Island 2: NWN2

Link

Posted by mynzai ( ..xxx.xxx ) at 2003-09-17 19:11:00    
Yeah, some of my items do not get stored. Looks like 'custom' ones. Not sure if they have a resref, but if it's custom it won't be in .2da, is that right?

Is there anyway to get it to work with requiring resref strings? Such as storing the object? I know it's 'less' efficient, but i'd rather have it working.

Any thoughts? otherwise great work Knat!
m

Posted by Knat ( ..xxx.xxx ) at 2003-08-04 04:11:00    
@Vain:

yes, works fine with custom items

@howdie:

items without a resref get rejected for obvious reasons (i convert items into strings and a resref is a critical part of those item informations i need. storing them as strings is a lot more efficient compared to storing them as complete objects).

but you should not have a problem with items aquired after version 1.30 because bioware fixed most/all of the blank-resref problems.

gold HAS a resref and gets stored properly (it_gold if i remember properly)..

Posted by Vain ( ..xxx.xxx ) at 2003-07-29 11:01:00    
Hmmm... is this supposed to work with custom items?

Posted by HOWDIE ( ..xxx.xxx ) at 2003-07-13 08:01:00    
edit: *** WITHOUT a resref WONT be stored

Posted by Howdie ( ..xxx.xxx ) at 2003-07-13 07:23:00    
i think you should warn people that items with a module res ref wont be stored .. eg GOLD :(

  1  2 Next>

You must be Logged In to post comments in this section.

 
Most recent posts on the MMO General Boards
Analyst: Star Wars: The Old Republic Could...Analyst: Star Wars: The Old Republic Could Sell 3M: more numbers
- last reply by Acao on Aug 15, 2011 06:15 PM
which class will your first character be
- last reply by Blisteringballs on Aug 15, 2011 05:50 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 05:00 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 04:00 PM
NWN Idea Database Update
- posted by Vault_News on Aug 15, 2011 03:46 PM
Missing Votes for NWN2 Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:40 PM
Missing Votes for NWN Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:39 PM
Random Questions and game altering suggest...Random Questions and game altering suggestions!!!
- last reply by ArkadyTepes on Aug 15, 2011 03:22 PM
State of the game?
- last reply by LyricOpera on Aug 15, 2011 01:37 PM
Yesterday streaming, now demanding downloa...Yesterday streaming, now demanding download :(
- last reply by Sinane-tk on Aug 15, 2011 10:23 AM
 

   


IGN Entertainment
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.
Copyright 1996-2011, IGN Entertainment, Inc. | Support | Privacy Policy | User Agreement | RSS Feeds
IGN’s enterprise databases running Oracle, SQL and MySQL are professionally monitored and managed by Pythian Remote DBA.


NWN2 Hall of Fame

HOF NWN2 Tutorials


View all Hall of Fame entries


Neverwinter Nights 2

TOP NWN2 Modules

NEW Modules

NEW Reviews

NEW INTL. Modules

TOP Hakpaks

TOP Gameworlds

TOP Tutorials

TOP Prefab:Areas

TOP Blueprints

TOP Plugins

TOP UI

TOP Other

TOP Visual Effects

TOP Scripts

TOP Tools

TOP Movies

TOP Models

TOP Characters





Hall of Fame

HOF NWN Modules


View all Hall of Fame entries


TOP NWN Modules

NEW NWN Modules

NEW Reviews

TOP Intl. Modules

TOP NWN Hakpaks

TOP NWN Gameworlds

TOP NWN Models

TOP NWN Portraits

TOP NWN Scripts

TOP NWN Prefabs

TOP NWN Other

TOP NWN Movies

TOP Sounds

TOP NWN Textures

TOP NWN Creatures

TOP NWN Characters