Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-04-2002, 08:17 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
Personal bank script.

-=Josey=-
Ok, a friend asked me to make this for him. You may not edit this code, use it to get hired on a server, or use it on your own server without asking me and getting my express written consent. This code is merely for learning purposes.



// NPC made by Josey Hunt
if (playerenters) {
toweapons Items/Bank;
}
if (weaponfired){
say2 This is your personal bank!#bCommands are:#bdeposit <ammounthere>:deposits.#bwithdraw <ammounthere>:deposits.#bShow banked gralat:shows your#bgralat in your bank.#bThat's all!;
}
if (isweapon){
if (playerchats){
if (startswith(withdraw,#c)){
tokenize #c;
if (tokenscount==2){
if (strtofloat(#s(client.banked))=>strtofloat(#t(1))) {
playerrupees+=strtofloat(#t(1));
setstring client.banked,#v(strtofloat(#s(client.banked))-strtofloat(#t(1)));
setplayerprop #c,You withdraw #t(1) from your bank. You now have #s(client.banked) gralat left in your bank.;
}
if (!strtofloat(#s(client.banked))=>strtofloat(#t(1)) ){
setplayerprop #c,You dont have #t(1) gralat in the bank!;
}
}
}
if (startswith(deposit,#c)){
tokenize #c;
if (tokenscount==2){
if (strtofloat(#v(playerrupees))=>strtofloat(#t(1))){
playerrupees-=strtofloat(#t(1));
setstring client.banked,#v(strtofloat(#s(client.banked))+str tofloat(#t(1)));
setplayerprop #c,You deposited #t(1) into your bank. You now have #s(client.banked) gralat in your bank.;
}
}
}
if (strequals(#c,show banked gralat)){
setplayerprop #c,You have #s(client.banked) gralat in your bank.;
}
}
}


I know it's not the best, but, it works. ;D
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #2  
Old 02-04-2002, 08:26 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
-=Chicken=-

Muahha josey im eveo,Nah nice script =D not the best but it will do the job
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #3  
Old 02-04-2002, 08:30 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
It would work, yes.
Reply With Quote
  #4  
Old 02-04-2002, 09:14 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
-=Josey=-
All I was going for is for it to "work" correctly. Which it does, quite nicely also. Chicken make your posting colour in green fool!
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #5  
Old 02-04-2002, 11:52 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by joseyisleet
-=Josey=-
All I was going for is for it to "work" correctly. Which it does, quite nicely also. Chicken make your posting colour in green fool!
i think that really your just one person and you like compliment yourself, do you have multiple personalities?
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #6  
Old 02-05-2002, 11:21 AM
Ultima_P2P Ultima_P2P is offline
Registered User
Join Date: Dec 2001
Location: On Your Doorstep
Posts: 168
Ultima_P2P is on a distinguished road
Send a message via AIM to Ultima_P2P
Quote:
Originally posted by Saga2001


i think that really your just one person and you like compliment yourself, do you have multiple personalities?
No, I talk to Chicken and Josey all the time and I see both of them on graal moving around =\

Unless he can like,do ESP or some whack sh*t like that
__________________

- ¤*U£†îmå*¤

Forever in my hands
I hold the sword...
Reply With Quote
  #7  
Old 02-05-2002, 11:49 AM
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 Ultima_P2P


No, I talk to Chicken and Josey all the time and I see both of them on graal moving around =\

Unless he can like,do ESP or some whack sh*t like that
i can do ESPN, channel 76 ...
Reply With Quote
  #8  
Old 02-05-2002, 11:51 AM
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
Re: Personal bank script.

Quote:
Originally posted by joseyisleet
-=Josey=-
Ok, a friend asked me to make this for him. You may not edit this code, use it to get hired on a server, or use it on your own server without asking me and getting my express written consent. This code is merely for learning purposes.

// The long NPC

I know it's not the best, but, it works. ;D
Its nice, but, remember that anything clientside can always
be tampered with ...
Reply With Quote
  #9  
Old 02-05-2002, 01:18 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
yes, i remember when i was kalton and armodian on n-pulse... funny beans.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #10  
Old 02-05-2002, 10:39 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
-=Josey=-
Quote:
Originally posted by Saga2001


i think that really your just one person and you like compliment yourself, do you have multiple personalities?
You know you're quite humorous. ;D I'm Josey Hunt. Josh moved in with me a few weeks ago, that's why I called him an idiot when he asked for Graal2001 scripts. Chicken is a good friend of mine, and also my levels admin. I don't compliment myself, either, I try to help people. Unless they're just to lazy to try themselves. You only posted that so you would get some attention your way.
- Shrugs. I guess any idiot would do so, though.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #11  
Old 02-05-2002, 11:35 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by joseyisleet
-=Josey=-


You know you're quite humorous. ;D I'm Josey Hunt. Josh moved in with me a few weeks ago, that's why I called him an idiot when he asked for Graal2001 scripts. Chicken is a good friend of mine, and also my levels admin. I don't compliment myself, either, I try to help people. Unless they're just to lazy to try themselves. You only posted that so you would get some attention your way.
- Shrugs. I guess any idiot would do so, though.
i'd love some attention...ne one got ne?
just curious...because u post and than seeming 3 minutes later someone with a different name on the same account posts? crazy...absolutly psycho. We could get a long...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #12  
Old 02-05-2002, 11:37 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
in josey's sig
If the post is in black it's Josey, if it's in blue it's Josh, and if it's green it's Chicken!
why don't you post in any diff colors than?
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #13  
Old 02-05-2002, 11:45 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
-=Josey=-
Why do you think that I told Chicken to post in green? Because, he wasn't! Lol. Let's let this thread die now. - Daydreams. - Sees a little IcePick browsing the forums and saying "ooooooh! looky a bank script i can use! im gonna be soooo leet now ". Lol. Boredom owns us all. ;\
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 12:27 AM.


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