Jump to content
  • 0

Unique Banker using @bn ? Anyone knows?


Kiritoryu

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  59
  • Reputation:   0
  • Joined:  12/13/12
  • Last Seen:  

Any one know how to make a Banker system where u dont use banknote? Using @tradebn in trade to input bn trade amount and @bn to check your remaining banknote

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 1

  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

-	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
Link to comment
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
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.

×
×
  • Create New...