ATM System

Patskie

Community Contributors
Messages
366
Points
0
Age
32
Location
Philippines
Discord
superpatskie#0110
Github
Patskie
Emulator
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

 

Attachments

Last edited by a moderator:
Nice 
default_laugh.png


 
like a walking atm lol . nice script i like it
default_biggrin.png
Thanks! 

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

Code:
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;
 
Last edited by a moderator:
can i ask for a new atm.txt file?
default_biggrin.png
with 10b limit from the bank and 1b max deposit/withdraw
default_smile.png
idk what to do sorry
default_sad.png
thanks in advance patskie

 
Back
Top