Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-15-2007, 10:25 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Beta Release: Sophisticated Banking System

I just finished working on a sophisticated banking system. I worked on it solely to release for public use, since I tried to make it as fancy as possible (not graphic wise, since I can't make any graphics ). Although this version is complete, I consider it a beta version since I want to implement a few things like a loan system, credit system, and interest system and so forth for possibly a future release, depending on how much time I feel like investing on this thing.

This beta version comes with a custom log in screen for users to log in to access their account information. It also comes with a registration feature for users that have not yet registered an account, which, of course, would be first time users. When inputting a desired account, if your account is less than 10 characters, right under the textbox you will see the text
"Insufficient Characters...," the same applies for when inputting a desired password. With this system, I made it a 10 character requirement for usernames and passwords. When you input the 10 characters for a username, the former "Insufficient Characters..." text will now display whether or not your desired username is available or not. Only one username is allowed per user, and only one account is allowed per user.

Now, the password portion is a bit different, with the fact that I have implemented a password strength checker to check the strength of your desired passwords (credits to Joey for helping me create this). When inputting a password, you will be notified whether it is either a 'weak' password, a 'semi-secure' password, and a 'highly secure' password.


How that works:

If your password only contains numbers, lower case letters, or upper case letters, your password will be considered 'weak'.

If your password only contains numbers and lower case letters or numbers and upper case letters or lower case and upper case letters, your password will be considered 'semi-secure'.

If your password has numbers, lower case letters, and upper case letters, it will be considered strong.



When you've inputted a desired username that is available for use and when you've inputted a desired password, you can press the register button to register your account. After pressing the register button, assuming you inputted the information correctly, you will be prompted with a 'success' gui for registering your account. In this form, you will see some text that you should read and then at the bottom you will see a copy of your username, password, and a personal code. This personal code is essentially very important for you to remember. Each user will have a different personal code. When you go to log in, if the information you type in is not the one you registered with, you will be prompted to a username/password recovery gui that will ask you for your personal code, of which you will have to enter in order for the system to tell you your username and password again. So, I'd suggest you store that number in a place that you wouldn't forget it.

After registering, you can log in, wait for the bank to load, and then you will be prompted with the actual bank gui. Currently, all you can do is view your balance, withdraw, and deposit gralats, which is essentially the basics of a banking system. This system uses player.rupees since I made it for the public, and thus, you'll have to configure it to whatever strings your server uses for money for the system to work correctly for your server.

DB: gambet_bankDB

^This system reads for this DB and simply stores and reads all information stored in this database. Just create a DB with this name and leave it alone, the system itself will do everything.


NOTE: I havn't had anyone to test it for me, so if there are any bugs or so, please let me know and I'll work on fixing them. Also, feel free to fix things around yourself if you wish. This system is for public use, so use it as you please. I didn't exactly implement different error messages for each and every case, so you might get an error message that doesn't apply to what you're trying to do at times, but just take note that what you're doing is in fact wrong, even if the error message displayed is not 100% correct. But, for the most part, I tried to make as many accurate error messages as possible.


NOTE 2: Besides the '/bank' command that you have to chat to fire the weapon, everything else is completely gui-based.



Enjoy
Attached Files
File Type: txt gambet_banksystem.txt (20.2 KB, 352 views)

Last edited by Gambet; 02-15-2007 at 10:41 PM..
Reply With Quote
  #2  
Old 02-15-2007, 10:33 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
opened the script, a lot of fancy stuff...nice nice
__________________
Reply With Quote
  #3  
Old 02-15-2007, 10:35 PM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Cool
Reply With Quote
  #4  
Old 02-15-2007, 10:43 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Screenies:



Reply With Quote
  #5  
Old 02-15-2007, 10:49 PM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Whoa Gambet this will be really useful to my server and I. Another script that doesn't have to be done. Thanks. Goodjob.
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote
  #6  
Old 02-16-2007, 12:59 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by killerogue View Post
Whoa Gambet this will be really useful to my server and I. Another script that doesn't have to be done. Thanks. Goodjob.

No problem, that's what I made it for - for people to use
Reply With Quote
  #7  
Old 02-22-2007, 02:06 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Gambet View Post
No problem, that's what I made it for - for people to use
It's very nice of people to make scripts like this, but the problem with any server that is actually going to go anywhere is that if the server uses too many of these scripts, it will be the same as any other server doing it. (it would look bad if a classic server started using this script, while 10 other UC servers did, etc)
__________________
Reply With Quote
  #8  
Old 02-22-2007, 02:10 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by cbkbud View Post
It's very nice of people to make scripts like this, but the problem with any server that is actually going to go anywhere is that if the server uses too many of these scripts, it will be the same as any other server doing it. (it would look bad if a classic server started using this script, while 10 other UC servers did, etc)

Not at all.


As long as it serves its purpose, what's the problem?


To be honest, I'd rather use this system than some plain purely text-based bank system anyday, no matter how many other servers were using it.


Besides, people don't have to just copy and paste and use the system exactly how I made it. It's easily customizable and can be turned to something fairly unique, though the core of it will still be my system, but at least it won't be completely the same.


But, yes, you do have a point, though I wouldn't agree with people just stopping from releasing scripts to the public.
Reply With Quote
  #9  
Old 02-22-2007, 02:44 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Quote:
Originally Posted by Gambet View Post
Besides, people don't have to just copy and paste and use the system exactly how I made it. It's easily customizable and can be turned to something fairly unique, though the core of it will still be my system, but at least it won't be completely the same.
Mine was made as a modular core. I thought that people may appreciate having the base commands in a player.<bank command> format as it would be useful. Thus you can change a bank style anywhere and yet still have the same useful commands. For instance, a bank in the side of an ogre mountain won't have the same level of customer service as a bank in a city . Try to overdraw in ogreland and you'd probably die .
Reply With Quote
  #10  
Old 02-22-2007, 10:54 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Maybe to keep corrupt staff from phishing you could only allow numerical pins of a certain length?
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #11  
Old 02-22-2007, 11:40 AM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
MD5 secret flags. That's how I coded V$:C's user account system.
Reply With Quote
  #12  
Old 02-22-2007, 11:56 AM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Quote:
Originally Posted by Chandler View Post
MD5 secret flags. That's how I coded V$:C's user account system.
any corrupt staff could still insert a way to intercept the variable before its encrypted moment. Napo's idea is a good one.
__________________
Reply With Quote
  #13  
Old 02-22-2007, 12:52 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by Kristi View Post
any corrupt staff could still insert a way to intercept the variable before its encrypted moment. Napo's idea is a good one.
That's true. However, a staff member could still find a way to avoid it I suppose. Although, you wouldn't allow a corrupt staff member on the force now, would you!
Reply With Quote
  #14  
Old 02-22-2007, 01:09 PM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Quote:
Originally Posted by Chandler View Post
That's true. However, a staff member could still find a way to avoid it I suppose. Although, you wouldn't allow a corrupt staff member on the force now, would you!
We are talking about a nonpaid workforce often comprised of minors...
__________________
Reply With Quote
  #15  
Old 02-22-2007, 01:18 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by Kristi View Post
We are talking about a nonpaid workforce often comprised of minors...
Hahaha.
Reply With Quote
  #16  
Old 02-22-2007, 04:59 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Wait, there are some websites that allow you to encrypt and unecrypt md5 hash.. :O

Well, using md5 can be good tho
__________________
Reply With Quote
  #17  
Old 02-22-2007, 05:05 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
You're right

Removed URL due to rule--

Just found it within five or so seconds

Last edited by Chandler; 02-22-2007 at 05:44 PM..
Reply With Quote
  #18  
Old 02-22-2007, 05:20 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Chandler View Post
You're right

http://gdataonline.com/seekhash.php

Just found it within five or so seconds
Don't just external links :o
btw, sites like that
__________________
Reply With Quote
  #19  
Old 02-22-2007, 05:47 PM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
From the results you've shown in the screens, it is impressive.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.