//===== Custom eAthena Script =======================================
//= Guild Bank
//===== By: =========================================================
//= Mercurial
//===== Description =================================================
//= A Guild Bank where every member of a guild can deposit/withdraw
//= money.
//===== Version Change Log ==========================================
//= 1.3 - Added Guild Rank Security(darkpurple) and optimized it a bit lol.(need more suggestions)
//= 1.2 - Optimized the script and changed the way script works. not supports unlimited Bank Accounts :).
//= 1.1 - Added Guild Master Control Panel(Theres only Set Password Option for now)
//= 128x5 Guild Bank Account Limit
//= 1.0 - First Guild Banker Release
//===================================================================
prontera,140,182,4 script Guild Banker 964,{
set .@gb$,
"[Guild Banker]";
{
mes "Sorry, But you cannot have a guild bank without a guild.";
}
{
mes "I am the Guild Banker";
mes "What would you like todo?";
switch(select("Register Guild",
"Set/Change Guild Password",
"Withdraw",
"Deposit",
"Set Rank Number Privilege"))
{
case 1:
mes "Guild Bank Registration requires 100,000z";
mes "Would you like to continue?";
{
case 1:
if(zeny<100000)
{
mes "Sorry, but you don't have enough zeny to register a Guild Bank";
}
else
{
{
mes "The Guild "+strcharinfo(2)+" is already registered in our database";
}
else
{
mes "You now have access to guild bank";
}
}
case 2:
goto GB_End;
}
case 2:
{
mes "Are you sure you want to set a password or change password for the guild bank?";
{
case 1:
gpas_return:
mes "Please enter the password.";
mes "Note: if you don't want any password input 'empty' without quotes";
mes "If you have just registered recently you might need to set a password before using Guild Bank.";
mes "Please enter the password again for verification.";
{
mes "Password does not match, Please try again.";
goto gpas_return;
}
else
{
mes "You have succesfully set a password for your Guild Bank";
mes "Thank you, Come again.";
}
case 2:
goto GB_End;
}
}
else
goto GB_NoReg;
case 3:
goto gb_withdraw;
case 4:
goto gb_deposit;
case 5:
mes "Please Input the Rank that will be able to withdraw.";
mes "0-Guild Master & 19-Newbie";
mes "Example: you input 18... therefore 18 and below can withdraw in this guild bank";
}
}
else
{
mes "I am the Guild Banker";
mes "What would you like todo?";
switch(select("Withdraw",
"Deposit"))
{
case 1:
gb_withdraw:
goto GB_NoWithdraw;
{
mes "Would you like to withdraw some zeny?";
{
case 1:
gpassword_x:
{
mes "You are required to enter a password before you can withdraw some zeny";
mes "Please enter the password";
{
mes "Incorrect Password Please Try again.";
goto gpassword_x;
}
else
goto password_o;
}
else
{
password_o:
mes "How much zeny would you like to withdraw?";
{
mes "The Guild Bank doesn't have enough zeny.";
}
else
{
set zeny,
zeny+@gwithdraw;
mes "There you go, Come again!";
}
}
case 2:
goto GB_End;
}
}
else
goto GB_NoReg;
case 2:
gb_deposit:
{
mes "Your have "+zeny+" zeny.";
mes "Would you like to deposit some zeny?";
{
case 1:
mes "How much zeny would you like to deposit?";
if(@gdeposit>zeny)
{
mes "You don't have enough zeny.";
}
else
{
mes "There you go, Come again!";
}
case 2:
goto GB_End;
}
}
else
goto GB_NoReg;
}
}
GB_NoWithdraw:
mes "Your Guild Rank is not authorized to withdraw zeny, Thank you";
GB_NoReg:
mes "Your Guild is not registered in the Guild Bank Database";
GB_End:
}