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.
Thats not a bad idea at all, however don't forget simple code takes less resources in a PW ;) I think you've done great. testing has indicated the fix's work perfect. However I've only been testing your banker, and swapped your chest codes with the modifications. Simple is key to me, as I am doing my best to find ways to reduce lag, while still haveing a "fleshed" world. This script set is perfect for anyone who wishs for players to have storage for both items and gold.
Posted by Xanas at 23:46:00 Voted10.00
Actually I understand that well enough, I don't plan on having a high loot module either :) But I was actually thinking of being nice and forwarding it to their bank account and letting them handle gold in either way.. just haven't actually done that yet but it'll be in a later version.
Posted by Mohobie01 at 2004-04-1622:03:00
I did a quick test by myself to check it. It appears to function as intended without issues concerning name truncation. As far as players recreating characters with extremely similar names, my thought is if they want it that bad, they would find a different approach anyways. ;) Looks good works great, I can't forsee any issues with this system now. but if I stumble across any I'll be sure to let ya know. On the chests, In my module gold is very limited, so a loss of even a few hundred could hurt a player, there are 2 lines that you should be able to transfer from the code I posted : int iGold = GetGold(OBJECT_SELF); GiveGoldToCreature(oPC, iGold); can be placed into your onclose above the while loop, as a simple fix. welps I guess I'll be movin on to new headaches and brain farts... thanks so much for your aid. Mohobie
Posted by Xanas at 18:58:00 Voted10.00
If that way doesn't work for you or you can think of any problems with it later on just tell me and I'll do the full fledged bank accounts thing I talked about below. It'll basically be using one more item to be included with the system that will be put in the players inventory the first time the bank is used. They'll be assigned an account #, etc. I'll probably even set it up so that you can have a "routing #" that makes the banks be not module wide and include a feature that allows you to split up bank management files based on the # of players to lessen problems of possible corruption. (Bioware DB can corrupt and I've heard that's more of a problem when there are many players).
Posted by Mohobie01 at 2004-04-1617:17:00
Oh great thank you, I'll install it tonight. My player with the truncated name doesn't come on till late night. But thats when Ill be doing some work on the module, so I'll get a chance to try it out for ya. I wanted to add a little note, about the donation box idea I had. Adding that setplot line turned out to be a failure. I think i'm running into the same problem i had with the gethasinventory check. If i get bored enough or it becomes an issue in my module I'll work on a modified version of these scripts to fix that. Xanas, you seem todo alot of scripting...just a small little neet idea would be maybe a lil animated gif that says powered by Xanas technology. Or even just a lil pic. Hehe I'd put it on my site... ;) Mohobie
Posted by Xanas at 15:13:00 Voted10.00
Ok, in this version I attempt to deal with Mohobies problem by truncating PCPlayerName + CharName to 25 characters
Posted by Xanas at 15:00:00 Voted10.00
Well what you can do is just make it cut their name down.. I don't think it can be the length though because as far as I know variable names dont' have a set length. I'm not sure if the db has a limitation but I couldn't imagine it'd be that short. So let me see, there are a few ways to handle this. We can either A) switch to a system where a player is assigned an account # that is attached to an object placed in their inventory. That would require me to write one more script to include with the system that would be attached to the modules oncliententer event. (it would basically put this item in their inventory the first time).. I could put the item in their inventory the first time they speak with the banker or something else..) Or, I could simply truncate the long names myself through a basic function. Just use GetSubString(0, 20) and max it out at 20 characters or something. Of course the disadvantage of that is they can create a new character with that partial name and get the gold.. but, since it still uses their playername that shouldn't matter.. what do you think would be the best solution? One will require more work for those who want to include the system and one won't but will possibly allow people to create new characters that can get the gold out if they know the length limit.
Posted by Mohobie01 at 2004-04-1614:27:00
Xana's I'm writing to inform you that I have found a bug in the bankers code. I'm pretty busy today so I won't have time to look into it, but it appears that players who have a long name can experience issues when useing the banker. I'm not certain but it appears that a players name can get truncated, and result in the players funds not being saved(or recalled) properly. I have 1 player in my module who has experienced this issue. Previously i attributed it to a fluke similar to one you posted below. however the bank system has proven to work with all my players, excluding this one. I'm no good with database files, but a quick prob into the database files shows that his name was infact truncated. Below is a copy paste of 2 examples from my database discoveries: Jreban_Spelbush Drizzle of Sind vs. Farbarian_Daniel Farber_gold The top one is from my player who's name was truncated. Ive also noticed that this one lacked the _gold on the end...could be to limitations in character size? I wish i had a lil more time to look into it, and I may be able to later tonight. But I was hoping i could get your aid on this one. Thanks and I hope to hear from ya. Mohobie.
Posted by Xanas at 11:24:00 Voted10.00
That's fine, you might choose to post it in a more popular script also though :) BTW, I'm pretty sure as of now this script is feature complete. If people really really want it to disallow gold or to forward gold put in it to peoples bank accounts ask and I'll put in the time. But for myself I am thinking with a banker in the same bank if people do that they kinda deserve it for not talking to the npcs before putting their stuff in a strange chest. LOL. But I'm there are other views so if it's wanted I'll include it. If there are any other nice features people think this should include tell me that as well and I'll try it out. Oh, and bugs. If there are any bugs I'm not aware of them so please let me know.