Upload this script as a Database NPC and chose a level for it to be in. Nothing needs to be edited in the NPC.
//##########INFORMATION BOX########## //#___________Bank System___________# //#Author: Xzirox Sk˙Firé # //#Contact: xzirox@graal.net # //# Made by XziR Corp # //################################### //#___________Disclaimer____________# //#You are free to use this script # //#on any server that you want to, # //#aslong as you do not remove/edit # //#this information box. # //#You do not have to give out this # //#script to anyone that wants it. # //################################### //#CLIENTSIDE if (created) { // Initialize the attributes showcharacter; setcharprop #3,head1.png; setcharprop #C0,orange; setcharprop #C1,red; setcharprop #C2,darkred; setcharprop #C3,red; setcharprop #C4,pink; setcharprop #2,shield1.gif; shieldpower = 1; dir = 2; this.basenr = int(random(10000,50000)); //Decides the number to start creating bankaccounts on } if (playerchats) { tokenize #c; if (this.mode = 1) { if (strlen(#t(0))<=10) { setstring client.bankaccpass,#t(0); setstring client.money,#v(strtofloat(#s(client.money))-50); this.last1 = int(random(0,9)); this.last2 = int(random(0,9)); this.last3 = int(random(0,9)); this.last4 = int(random(0,9)); setstring this.tmpbanknr,#v(int(random(this.basenr,this.basenr+1000)))-#v(this.last1)#v(this.last2)#v(this.last3)#v(this.last4); if (!strcontains(#s(this.tmpbanknr),#s(this.bankaccounts))) { setstring client.bankaccnr,#s(this.tmpbanknr); unset this.tmpbanknr; addstring this.bankaccounts,#s(client.bankaccnr); } this.mode = 0; } else { message - Your password can only contain 10 characters! -; } } if (startswith(/openacc,#c)) { if (!strcontains(#s(this.bankaccounts),#s(client.bankaccnr))) { if (strtofloat(#s(client.money)) >= 50) { message - Please say a password for your account -; this.mode = 1; } else { message You need 50 money to open a bank account!; } } else { message You already have a bank account!; } } if (startswith(/deposit,#c)) { if (tokenscount == 2) { if (strcontains(#s(this.bankaccounts),#s(client.bankaccnr))) { if (strtofloat(#s(client.money)) >= strtofloat(#t(1))) { setstring client.money,#v(strtofloat(#s(client.money))-strtofloat(#t(1))); setstring this.#a,#v(strtofloat(#s(this.#a))+strtofloat(#t(1))); } else { message You dont have #t(1) money!; } } else { message You dont have a bank account!; } } else { setplayerprop #c,Correct syntax: /deposit ; } } if (startswith(/withdraw,#c)) { if (tokenscount == 2) { if (strcontains(#s(this.bankaccounts),#s(client.bankaccnr))) { if (strtofloat(#s(this.#a)) >= strtofloat(#t(1))) { setstring client.money,#v(strtofloat(#s(client.money))+strtofloat(#t(1))); setstring this.#a,#v(strtofloat(#s(this.#a))-strtofloat(#t(1))); } else { message You dont have that much money in the bank!; } } else { message You dont have a bank account!; } } else { message Correct syntax: /withdraw ; } } } Download the whole package!