Jump to content

Utility: Advanced Bank with nearly unlimited maximum balance


Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

File Name: Advanced Bank with nearly unlimited maximum balance
File Submitter: DeadlySilence
File Submitted: 06 Jun 2013
File Category: Utilities
Content Author: DeadlySilence

This is my bank NPC which I made since I couldn't find any bank that can store huge amounts of Zeny.

Special Credits: Thanks to Anakid for the great idea to implement an @bank command.

The NPC supports the following features:

  • Deposit
  • Withdraw
  • Transfer Zeny to other player's bank accounts (by name or account id)
  • Password protection
  • Transaction log (deposits, withdrawals, incoming and outgoing transfers)
  • daily interest (every morning at 6 o'clock server time, default: 5%, can be changed)
  • maximum amount per process is only determined by the server's input_max_value and the script's .maxInput
  • vast amounts of Zeny can be stored (the MySQL column is BigInt, so you can store up to 18,446,744,073,709,551,615 Zeny, that's more than 18,000,000,000 deposits of 1,000,000,000 Zeny)
  • other features are planned and I take feature requests, if I think they make sense (you can ask directly in the thread, but I prefer private messages or emails [address provided in both scripts])

The @bank command supports the following features:

  • the same as the NPC, but more versatile
  • higher limits (as it is not connected to the input_max_value, default value per process is 1,000,000,000 Zeny)
  • shortcuts for @bank <function> commands: @info, @deposit, @withdrawl, @transaction, @password

 

The @bankadmin (exclusively for admins) command supports the following features:

  • @bankadmin <option> returns the current value of an option
  • @bankadmin <option> <value> sets the value of an option
  • Valid options are name, maxinput, maxzeny, interest, whereas name must be a string and the other three have to be integers. The name can also be written with a colour code (like "@bankadmin set name "^F68712Banker^000000"" [please note the the ^000000 after the NPC's name to make the text after the name black again])

 

You need to read the README.txt file to get the database creation commands and some basic information on how to install the script.

Changelog:


  • 1.0: initial Release
  • 2.0: added caching for passwords and atcommand-menu
  • 2.1: fixed problem with spaces in usernames and added shortcuts (@bn, @info, @deposit, @withdrawl, @transaction, @password), also fixed a typo inside the commons.txt file
  • 2.2: added admin command @bankadmin where the administrators can set the NPC's variables directly (set name, maxInput, maxZeny, interest without reloading scripts)
  • 2.3 fixed some bugs with @bankadmin

 

Downloads:

As of version 2.2 I will provide complete packets as both, a tar.gz file for linux users as well as a zip file for windows users (even though you can extract zip under linux and tar.gz under windows...).

banker_2_3.tar.gz

banker_2_3.zip

Edited by DeadlySilence
  • Upvote 8
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

You did a very nice job with this.  One of the best banker scripts I've seen.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Very nice bank script! Good job! :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

Great job!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Maybe a loan system? :D just a suggestion

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

Currently I'm working on some optimization and a @bank command with which every function can be used without talking to the NPC. (As of last night, this feature is almost done, only logs are still in progress. It's likely that I will finish this tonight.)

 

A loan system sounds good, but how could the payback be forced to prevent a player from loaning 1,000,000,000 Zeny without paying them back?



I finally found some time to finish version 2.0. It now contains a fully functional @bank command with which every bank action can be done from afar.

Thanks to Anakid for this suggestion.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

Thank you DeadlySilence this is the best bank script every!!! :3

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  87
  • Reputation:   4
  • Joined:  08/09/12
  • Last Seen:  

link dead?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

link dead?

The link works for me :o

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

Meh, that's probably because the new version is yet to be approved.

I'll attach both versions and the other files to the first post.

 

//edit: Sorry for the inconvenience, the scripts are now attached to the first post. Please let me know if there are still any problems.

Edited by DeadlySilence
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  87
  • Reputation:   4
  • Joined:  08/09/12
  • Last Seen:  

it was just being added..there was no links when I checked a couple of hours ago.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

Yes, the direct download links have been added about half an hour ago.

But the link to the download section (including version 2.0) have been there for 2 days now. I gues they're inaccessible because they're not approved yet.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  87
  • Reputation:   4
  • Joined:  08/09/12
  • Last Seen:  

there's a problem with using @bank transaction when the name of the player has spaces. I tried using " " but it never worked. And also, I suggest it could be better if it could be shorter commands like @bn @deposit @withdraw @transfer ..just a suggestion tho. Im impressed.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

Thank you for your feedback. I'll have a look at the problem with the spaces and add shorter commands, too.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

I have an idea, why not try adding a "credit card" to this let players buy and sell without having to ever visit the bank at all. Just a little challenge for you :)

Also very nice bank script ill probably switch to yours soon.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

Update: I have fixed the problem with spaces in names and added shortcuts for the longer commands.

The new commands are @bn, @info, @deposit, @withdrawl, @transaction, @password.

 

Usage:

@bn: same as @bank

@info : will display information about the bank and your account

@deposit <amount> : deposits given amount

@withdraw <amount> : withdraws given amount

@transaction <username/id> <amount> : transfers given amount to give username's/id's account

@password [<new password>] : changes current bank password to new password, new password is optional and the password will be reset if no new password was given

 

End of update log.

 


 

@Stolao: That's a good idea. I'll have a look at this this weekend, maybe. I think it will require a source modification, unless every merchant NPC gets updated manually to support the bank, though. :P

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Ya probably will need a source modification, to do sql queries when buying if players Zeny is less then required amount and another query when selling and Zeny is above max.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Ahhh.. Honestly, I'm tired with source mods....

I have to patch it over and over again, please stop this torture... Arrggghhhh!

(I was under the 'Masquerade - Gloomy' spell) :P

Edit: Before I forget, can you please put all of those files in a single archive file? Thanks ;)

Edited by nanakiwurtz
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

Ahhh.. Honestly, I'm tired with source mods....

I have to patch it over and over again, please stop this torture... Arrggghhhh!

(I was under the 'Masquerade - Gloomy' spell) :P

Edit: Before I forget, can you please put all of those files in a single archive file? Thanks ;)

 

That's a great idea. I'll put the latest files into an archive with the next release. I'll release version 2.2 in about one or two hours.

Updated again.

 

2.2: added admin command @bankadmin where the administrators can set the NPC's variables directly (set name, maxInput, maxZeny, interest without reloading scripts)

 

The @bankadmin (exclusively for admins) command supports the following features:

  • @bankadmin <option> returns the current value of an option
  • @bankadmin <option> <value> sets the value of an option
  • Valid options are name, maxinput, maxzeny, interest, whereas name must be a string and the other three have to be integers. The name can also be written with a colour code (like "@bankadmin set  name "^F68712Banker^000000"" [please note the the ^000000 after the NPC's name to make the text after the name black again])

 

 

//edit: I really shouldn't release stuff at night, I made some mistakes with version 2.2.

If you happened to download it already, please download version 2.3 instead. @bankadmin works now.

I'm sorry for the inconvenience.

Edited by DeadlySilence
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Lol, deadly I always work on scripts after work, and ya tend to make mistakes so your not alone ~

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  135
  • Reputation:   17
  • Joined:  12/31/11
  • Last Seen:  

is @bank a src edit command?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

No, it's script command.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

As nanakiwurtz said, it's a script command, however unless you have rAthena, this script will most likely not work for you. Atleast, the command won't work for you.

Edited by GmOcean
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  77
  • Reputation:   3
  • Joined:  06/06/13
  • Last Seen:  

Thanks for sharing this banker script... it's awesomeee....  /no1 +1

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...