Talus 2:Script Systems:Storage Chests
From Talus Wiki
You are reading Talus 2 - Script Systems - Storage Chests
These erfs contain sets of containers that will store items persistently using the nwnx/aps system by Papillon.
After placing chests, change the tag of each chest to something unique to make their contents unique.
Chests that share a tag will share inventory.
Additionally, to test or use these in your own module, you must add a waypoint in a nonaccessible area named WP_ITEM_TEST for the purpose of ensuring an item can be recreated.
Without this item, these chests will just hand everything back to players because it tests all items before storing them.
Builders submitting Talus areas do not need to include their own WP_ITEM_TEST waypoint.
ERF Notes:
These chests use scripts written for the NWNX/APS system by Papillon. If you do not have that installed, do not use these. The basic effect is that onclosing they will send all items to SQL database for storage. That includes most stackable items. Also they check for nonmodule items and reject them.
Steps to install:
1: import this erf
2: place a waypoint named WP_ITEM_TEST somewhere inaccessible to players.
3: place some of the chests under placeables->custom->containers & switches.
4: Make their tags unique so they don't share inventory.
5: IF YOU LACK THE containers TABLE: Load your module and run the following commands by typing the ~ key:
dm_runscript demo_createtable
dm_runscript ld_pcont_alter
IF YOU ALREADY HAVE containers TABLE IN DATABASE: load mod and run via ~ :
dm_runscript ld_pcont_alter
or, edit the size of count to be a BIGINT (length 19) or INT (length 10).