Graal Forums

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

ownerofbabylon 06-19-2001 10:13 AM

Good Bank
 
I am just a server owner, not a scripter. Can someone tell me a good bank ATM script??? All the ones I have and know how to make are like hit with sword for money and I want one that when they say deposit 212 it checks if they have 212 and deposits it or withdraws it and stuff. Does anyone know this script???

Lion'el-Jonson 06-19-2001 10:17 AM

Whoa that's a hooge sig!

General 06-19-2001 10:42 AM

Just steal GCMs from the old levels pack...Its, what i do :D

grim_squeaker_x 06-19-2001 03:47 PM

Really simple and probably really stupid bank:
NPC Code:
if (playerchats) {
tokenize #c;
if (strequals(#t(0),deposit)) {
if (strtofloat(#t(1))<1) setplayerprop #c,You must type a number bigger then 0;
else if (strtofloat(#t(1))>playerrupees) setplayerprop #c,You don't have that much money!;
else {
setstring client.moneydeposited,#v(strtofloat(#s(client.mone ydeposited))+strtofloat(#t(1)));
playerrupees-=strtofloat(#t(1));
setplayerprop #c,You now have #v(strtofloat(#s(client.moneydeposited)) gralats on the bank;
}
}
if (strequals(#t(0),withdraw)) {
if (strtofloat(#t(1))<1) setplayerprop #c,You must type a number bigger then 0;
else if (strtofloat(#t(1))>strtofloat(#s(client.moneydepos ited))) setplayerprop #c,You don't have that much money on the bank!;
else {
setstring client.moneydeposited,#v(strtofloat(#s(client.mone ydeposited))-strtofloat(#t(1)));
playerrupees+=strtofloat(#t(1));
setplayerprop #c,You now have #v(strtofloat(#s(client.moneydeposited)) gralats on the bank;
}
}
if (strequals(#c,bank balance)) setplayerprop #c,You have #v(strtofloat(#s(client.moneydeposited)) gralats on the bank;
}


ownerofbabylon 06-20-2001 02:27 AM

thanks man :)

cds96 06-20-2001 03:46 AM

i have a working bank. its been used on many pw's just ask for it man, post ur email here and ill send it asap okies;)

Butz 06-20-2001 07:18 PM

Bank...
 
I could use a bank..
It would save me the time of trying to script one myself? :D
my email is...
[email protected]

LilNiglet 06-20-2001 09:17 PM

yah mail it to me too
[email protected]

kyle0654 06-22-2001 09:16 AM

Quote:

Originally posted by General
Just steal GCMs from the old levels pack...Its, what i do :D
You steal GCMs bank (mine) and I shoot you with this here shotgun!

*pulls out shotgun, loads gold bullet, and aims*

- Kyle
~ On Vacation ~

General 06-22-2001 09:36 AM

lol, yu scripted that hugeass script?


All times are GMT +2. The time now is 03:40 AM.

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