Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Bank Script???? (https://forums.graalonline.com/forums/showthread.php?t=16610)

ninjaterd 11-11-2001 11:21 AM

Bank Script????
 
Help ......im making a server and i need a bank so could anyone tell me a bank script......plzzzzzzzz

Python523 11-11-2001 12:47 PM

-_-'
try it yourself and don't ask for a full script, ask for someone to point you to the right direction

Poogle 11-11-2001 12:59 PM

Re: Bank Script????
 
Quote:

Originally posted by ninjaterd
Help ......im making a server and i need a bank so could anyone tell me a bank script......plzzzzzzzz
Banks suck

royce 11-11-2001 01:53 PM

i got one i made not too long ago that i can spare, but it'll cost ya

TDO2000 11-11-2001 07:28 PM

if(playerchats && isleader){
if(strequals(#c,deposit all)){
this.deposit=playerrupees+strtofloat(#s(bankaccoun t));
setstring bankaccount,#v(this.deposit);
playerrupees=0;
}
if(strequals(#c,get all)){
this.get=strtofloat(#s(bankaccount));
playerrupees+=this.get;
setstring bankaccount,0;
}
if(strequals(#c,amount)){
setplayerprop #c, You have #s(bankaccount) ruppes;
}
}


It's just some example and not tested.
I didn't add a function to deposit a random number of rupees but as an example it should be ok...

grim_squeaker_x 11-11-2001 07:33 PM

NPC Code:
if (playerchats) {
if (strequals(#c,balance)) setplayerprop #c,Balance: #s(client.bankbalance);
if (startswith(deposit,#c)) {
this.temp=abs(strtofloat(#e(7,-1,#c)));
if (playerrupees<this.temp) setplayerprop #c,You don't have enough money;
else {
playerrupees-=this.temp;
setstring client.bankbalance,#v(strtofloat(#s(client.bankbal ance))+this.temp);
setplayerprop #c,#v(this.temp) Gralats deposited. You now have #s(client.bankbalance) Gralats on the bank.;
}
}
if (startswith(withdraw,#c)) {
this.temp=abs(strtofloat(#e(8,-1,#c)));
this.temp2=strtofloat(#s(client.bankbalance));
if (this.temp2<this.temp) setplayerprop #c, You don't have enough money on the bank!;
else {
playerrupees+=this.temp;
setstring client.bankbalance,#v(this.temp2-this.temp);
setplayerprop #c,#v(this.temp) Gralats withdrawn. You now have #s(client.bankbalance) Gralats on the bank.;
}
}
}


Python523 11-13-2001 10:49 AM

I've seen TONS of banks scripts on different sites, you either must not know how to surf the internet or you're just very lazy

nyghtGT 11-13-2001 02:32 PM

Quote:

Originally posted by Python523
I've seen TONS of banks scripts on different sites, you either must not know how to surf the internet or you're just very lazy
zorgonline.cjb.net LOL !


All times are GMT +2. The time now is 09:56 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.