This is a very simple system, import, and place the chest and the banker. The storage NPC is used to speed up the process, but don't worry about placing that one since it's handled automatically. Built in HOTU/SOU toolset, but compatible with original, just use an erf tool to fix the ExportInfo.gff if you need to or contact me and I'll try to do it for you/show you how to do it.
done I think.. if you are still having trouble though I'll continue to answer over there.
Posted by AG at on04/21/04
Xanas, Alrighty, heh (here he goes again...), I've changed the chest scripts to create an invidual database entry for each placed chest so they can just be used for private storage chests, and show all goods placed inside to anyone. Each chest should have a unique tag. I'm still having a problem with the gold return function, it is returning the amount twice. I'll post what I have in the BW scripting forum so you can see it. If you would have a look, I would surely appreciate it. Thanks again. Algernon's Ghost
Posted by AG at on04/21/04
Xanas, One other question, If I change the scripts to look for the chest tag instead of cd key (already have actually, and it works fine), will I still have the problem with more than one player opening the chest at the same time, and the first to close it getting all of the items? I'm just not clear on this part. Thanks. Algernon's Ghost
Posted by AG at on04/21/04
Xanas, Thanks for the response. Whoops, I forgot about the previous post about gold after reading all the other posts. I will mess with it a little, and see what I can come up with. I'll let you know. Algernon's Ghost
Posted by Xanas at 03:14:00 Voted10.00
Well, first of all I suggest following the advice of the below if you are worried about your players having that problem. Simply add the lines int iGold = GetGold(OBJECT_SELF); GiveGoldToCreature(oPC, iGold); right above the while loop in the onclose and that will automatically give that gold back to them. But putting a banker in there for them to talk to before accessing the chests is a good idea. As far as 2 players opening chests simultaneously.. the one who closes the chest will end up getting the items saved.. while the other one will not. I do suggest if you want to make the chests specific to the housing and not to the player, that you mess with the script as it is now.. and just take out the references to the players public cdkey, playername, etc. and just use like the tag of the chest (make it where each chest has a different tag of course). And so yeah, you can do pretty much what you want with it. The code is pretty simple so you shouldn't have too many problems with it, but if you post in biowares forum if you have trouble I'll try to help there. It's harder to reply here.
Posted by AG at on04/21/04
Xanas, This is indeed a nice simple storage chest system, and I will test the chest functions out for possible use on our PW. I have a couple of questions though. Why is gold storage not allowed in the chests? Any gold placed in them is lost when opened again. This will be a problem, as players will undoubtedly put gold in the chests. I am looking mainly for players with houses to have a solution for storing items. If I place multiple instances of the chest, could there be issues if two players access chests simultaneously? Also, is it possible to modify the code so that individual instances of chests can be tagged differently, and have the items only appear in the chest in which they were originally placed (still only for the proper player of course)? Thanks in advance for any assistance and advice.
Posted by CassidyB at on04/19/04
Great script, and great support. Thanks for takeing the ime
Posted by CassidyB at 2004-04-1922:26:00
OK, I think you know about this bug, but I had a problem with players putting money in the bank and not being able to get it out. While reading the posts it seems that the fact that the players had long names could be the issue. I uploaded your new script and added it in. I hope that is the fix I needed. //CassidyB
Posted by Xanas at 12:19:00 Voted10.00
Yeah but anything I would add in the future would probably be in the way of pre-storage checks. It would be just checking of local variables on an item on the player or something to that effect. But I do understand the need to keep simple code or I wouldn't have made this as few scripts as possible.