Jump to content
Patskie

ATM System

Recommended Posts

This script enhances player capabilities by depositing, withdrawing and inquiring their balance anytime, anywhere!
 
How to use : 
Just use @atm in-game.
 
How to install : 
• Import the bank.sql on your database REMOVED ON VERSION 2.0

 Go to conf/script.conf

• Find input_max_value: 10000000 and change it to 2147483647

• Go to src/common/mmo.h

• Find #define MAX_ZENY 1000000000 and change it to 2000000000

• Recompile your server and re-start it

• Put atm.txt on your npc folder
• Reload the script by using @reloadscript or @loadscript and enjoy!
 
Script features : 
• Register your account on the bank REMOVED ON VERSION 2.0

• Automatically register your account to the bank system  ADDED ON VERSION 2.0

• Interest triggers every 00:00 each day ADDED ON VERSION 2.0 THANKS TO ANGELMELODY FOR THE SUGGESTION!

• Limited times of reminder on your account number during login ADDED ON VERSION 2.0

• The bank can hold up to 9,223,372,036,854,775,807 zeny from it's original 2,147,483,647 zeny ADDED ON VERSION 2.0
• Deposit zeny to the bank

• Withdraw zeny from the bank
• Inquire your account balance
 
Script restriction : 

• You should put your account number first before doing transactions. By default your account number is your account id ADDED ON VERSION 2.0
• Restrict 0 zeny deposit and withdraw
• Restrict depositing amount which is larger than the current holding zeny
• Restrict the user to withdraw amount which is larger than the balance of the account
• Restrict the user to withdraw which will probably result of holding 2,000,000,000 zeny or more
 

Changelog : 

1.0 - Initial Release

2.0 - Massive update!



atm.txt

http://pastebin.com/raw.php?i=2YW0wPPp

Edited by Patskie

Share this post


Link to post
Share on other sites

just wondering if someone release like your script but not zeny item will be deposit

An item will be deposit?

Share this post


Link to post
Share on other sites

like a walking atm lol . nice script i like it :D

Thanks! 

 

 

how can i change if i want the bank limit is 10b and the max withdraw and deposit 1b?

Try : 

case 2:      + query_sql "SELECT `money` FROM `bank` WHERE `account_id` = '" +getcharid(3)+ "'",.@m;      + if ( .@m >= 10000000000 ) close; // Prevent from depositing if money in sql is 10,000,000,000 or more		mes .@npc$;		mes "How much will you deposit?";.....      - input @amount;      + input @amount,0,1000000000;.....      - input @wamount;      + input @wamount,0,1000000000;

 

Edited by Patskie

Share this post


Link to post
Share on other sites

umm excuse me sir/mam, where will i put this? :D sorry im new

npc/custom folder

 

 

can i ask for a new atm.txt file? :D with 10b limit from the bank and 1b max deposit/withdraw :) idk what to do sorry :( thanks in advance patskie

+ means add

- means remove

Share this post


Link to post
Share on other sites

@atm uknown command

What version are you using?

 

 

I hope Bank will pay me interest every month/day  :)

I would add that to my queue and maybe i will upgrade the script lol. i started this along time ago. which is somehow outdated as of the moment.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.