1 //===== rAthena Script =======================================
3 //===== By: ==================================================
5 //===== Current Version: =====================================
7 //===== Compatible With: =====================================
9 //===== Description: =========================================
10 //= An account wide Banker to store Zeny
11 //===== Additional Comments: =================================
12 //= Syrus22 - There's an optional transaction fee at the top of
13 //= the script. To use it simply change the first set command
14 //= to set the cost variable to whatever you want the fee to be.
15 //= Version 2.0: Optimized and brought the script up to standard. [Jguy]
16 //============================================================
18 prontera,132,217,5 script Banker 109,{
21 mes "Welcome to the First Bank of Prontera. How can I help you today?";
23 switch(select("I'd like to make a deposit.:I'd like to make a withdrawl.:What's my current balance?:Cancel")) {
26 mes "Very well... How much would you like to deposit? The maximum you can deposit at once is 999,999 Zeny.";
30 mes "Oh, and do realize there is a " +@cost + " Zeny charge on all transactions!";
35 mes "Make sure you ask me to deposit a real amount.";
38 else if (@deposit > Zeny) {
39 mes "It does not appear like you have the amount of zeny you're trying to deposit!";
42 else if (@deposit > (Zeny - @cost)) {
43 mes "You need " + @cost + " Zeny to cover the transaction fee!";
47 set Zeny,Zeny - @deposit;
48 set Zeny,Zeny - @cost;
49 set #bankstorage,#bankstorage + @deposit;
51 mes "Thank you very much... Your zeny is in good hands.";
56 mes "Very well... How much would you like to withdraw? The maximum you can withdraw at one time is 999,999 Zeny";
60 mes "Oh, and do realize there is a " +@cost + " Zeny charge on all transactions!";
65 mes "Please don't play games. I need a real amount to withdraw.";
68 else if (@withdrawl > #bankstorage) {
69 mes "You only have ^00FF00" + callfunc("F_InsertComma",#bankstorage) +"^000000 zeny in your account!";
72 else if ((@cost > Zeny) && ((Zeny + @withdrawl) > @cost)) {
74 mes "You don't have the Zeny for the transaction fee right now. Would you like me to take the fee directly from your withdrawl?";
76 switch(select("Yes please.:No, Thanks")){
79 mes "Removing " + @cost + " from your withdrawl to cover the deposit fee...";
80 set @withdrawl,@withdrawl - @cost;
81 set #bankstorage,#bankstorage - @cost;
84 set Zeny,Zeny - @cost;
85 set Zeny,Zeny + @withdrawl;
86 set #bankstorage,#bankstorage - @withdrawl;
88 mes "There's your Zeny. Have a good day.";
92 mes "Very well... come again soon.";
97 set Zeny,Zeny - @cost;
98 set Zeny,Zeny + @withdrawl;
99 set #bankstorage,#bankstorage - @withdrawl;
101 mes "There's your Zeny. Have a good day.";
106 mes "Hmmmm... let me check some paper work.";
108 mes "*Rustle, Rustle*";
111 mes "You currently have " + callfunc("F_InsertComma",#bankstorage) + " Zeny in your account.";
115 mes "Very well... come again soon.";