Kiritoryu Posted December 20, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.01 Content Count: 59 Reputation: 0 Joined: 12/13/12 Last Seen: June 20, 2013 Share Posted December 20, 2012 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 Quote Link to comment Share on other sites More sharing options...
1 Capuche Posted December 20, 2012 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 613 Joined: 07/05/12 Last Seen: April 15 Share Posted December 20, 2012 (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 December 29, 2012 by Capuche 3 Quote Link to comment Share on other sites More sharing options...
Question
Kiritoryu
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.