Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-11-2001, 11:21 AM
ninjaterd ninjaterd is offline
Banned
Join Date: Oct 2001
Location: somewere
Posts: 247
ninjaterd is on a distinguished road
Send a message via AIM to ninjaterd
Lightbulb Bank Script????

Help ......im making a server and i need a bank so could anyone tell me a bank script......plzzzzzzzz
Reply With Quote
  #2  
Old 11-11-2001, 12:47 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
-_-'
try it yourself and don't ask for a full script, ask for someone to point you to the right direction
Reply With Quote
  #3  
Old 11-11-2001, 12:59 PM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
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
Reply With Quote
  #4  
Old 11-11-2001, 01:53 PM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
i got one i made not too long ago that i can spare, but it'll cost ya
Reply With Quote
  #5  
Old 11-11-2001, 07:28 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
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...
__________________
No Webhost at the moment
Reply With Quote
  #6  
Old 11-11-2001, 07:33 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
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.;
}
}
}

__________________

Reply With Quote
  #7  
Old 11-13-2001, 10:49 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
  #8  
Old 11-13-2001, 02:32 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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 !
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:45 AM.


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