Jump to content
  • 0

Unique Banker using @bn ? Anyone knows?


Question

1 answer to this question

Recommended Posts

  • 1
Posted (edited)
-	script	atcmd_bank	-1,{
OnInit:
bindatcmd("bn","atcmd_bank::Onbn");
bindatcmd("withdrawlbn","atcmd_bank::Ontradebn");
bindatcmd("depositbn","atcmd_bank::Ondeposit");
end;

Onbn:
message strcharinfo(0),"You currently have " + #bankstorage + " Zeny in your account.";
end;

Ontradebn:
if( atoi(.@atcmd_parameters$[0]) < 1 )
	message strcharinfo(0),"Please don't play games. I need a real amount to withdraw.";
else if( atoi(.@atcmd_parameters$[0]) > #bankstorage )
	message strcharinfo(0),"I show you only have ^00FF00" + #bankstorage +"^000000 zeny in your account!";
else {
	set Zeny,Zeny + atoi(.@atcmd_parameters$[0]);
	set #bankstorage,#bankstorage - atoi(.@atcmd_parameters$[0]);
	message strcharinfo(0),"There's your Zeny. Have a good day.";
	message strcharinfo(0), "############## Withdrawl: " +.@atcmd_parameters$[0]+ " Zeny ##############";
	message strcharinfo(0), "####### You have now " +#bankstorage+ " Zeny in Bank #######"; }
end;

Ondeposit:
if( atoi(.@atcmd_parameters$[0]) < 1 )
	message strcharinfo(0),"Make sure you ask me to deposit a real amount.";
else if( atoi(.@atcmd_parameters$[0]) > Zeny )
	message strcharinfo(0),"It does not appear like you have the amount of zeny you're trying to deposit!";
else if( atoi(.@atcmd_parameters$[0]) + #bankstorage > 2000000000 ) {
	message strcharinfo(0),"Sorry, Bank Storage is full.";
	message strcharinfo(0), "####### You have " +#bankstorage+ " Zeny in Bank #######"; }
else {
	set Zeny,Zeny - atoi(.@atcmd_parameters$[0]);
	set #bankstorage,#bankstorage + atoi(.@atcmd_parameters$[0]);
	message strcharinfo(0),"Thank you very much... Your zeny is in good hands.";
	message strcharinfo(0), "############## Deposit: " +.@atcmd_parameters$[0]+ " Zeny ##############";
	message strcharinfo(0), "####### You have now " +#bankstorage+ " Zeny in Bank #######"; }
end;
}

Edited by Capuche
  • Upvote 3

Join the conversation

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

Guest
Answer this question...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...