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  Xanas Simple Bank Management
Author  Xanas
Submitted / Updated  04-06-2004 / 11-22-2006
Category  Database Related
Expansions  NWN-1.62
View Code  

Select All Text | View Code in separate window
Format  Code Only
Type  Type - Banking
Includes  BioWare Standard
Description
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.

Files

NameTypeSizeDownloads
xabanking3.rarxabanking3.rar
Submitted: 04-06-2004 / Last Updated: 04-16-2004
rar6.01Kb1009
--
SCORE OUT OF 10
9.71
9 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 (29):

1 2 3

Posted by Mohobie01 at 2004-04-1711:13:00    
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.

1 2 3

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 Modules


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