Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   I need help with money system (https://forums.graalonline.com/forums/showthread.php?t=25403)

mhermher 03-10-2002 07:16 PM

I need help with money system
 
Hi, can anyone help me with this?
I knwo there aint any commands like playerlaysgoldrupee or stuff,
btu i need it to work that if you lay an goldrupee client.string will reduce with 100 and same with toehr rupees

heres what i got so far
[CODE]// NPC made by GÄ$â€*£Ÿ -Testing-
if (playerenters) {
toweapons -moneysystem;
}
if (timeout) {
playerrupees=client.money;
}
timeout=0.05;
if (timeout) {
if (playerlaysgoldrupee&&client.money>99) {
client,money-=100;
}
if (playerlaysredrupee&&client.money>29) {
client,money-=30;
}
if (playerlaysgreenrupee&&client.money>0) {
client,money-=1;
}
if (playerlaysbluerupee&&client.money>4) {
client,money-=5;
}
}CODE]


ANd its not gonna use putNPC cuz its p2p and it will cause lag with gralat system, so is there a way to do it? that if you drop 1 gold rupee client.money will reduce with 100


Thanks

Slaktmaster 03-10-2002 08:03 PM

Har har, most stuff in there is weird. IM me.

mhermher 03-10-2002 08:13 PM

Quote:

Originally posted by Slaktmaster
Har har, most stuff in there is weird. IM me.
Affirmative.

amonrabr 03-10-2002 10:46 PM

Re: I need help with money system
 
Quote:

Originally posted by mhermher
Hi, can anyone help me with this?
I knwo there aint any commands like playerlaysgoldrupee or stuff,
btu i need it to work that if you lay an goldrupee client.string will reduce with 100 and same with toehr rupees

heres what i got so far
[CODE]// NPC made by GÄ$?£? -Testing-
if (playerenters) {
toweapons -moneysystem;
}
if (timeout) {
playerrupees=client.money;
}
timeout=0.05;
if (timeout) {
if (playerlaysgoldrupee&&client.money>99) {
client,money-=100;
}
if (playerlaysredrupee&&client.money>29) {
client,money-=30;
}
if (playerlaysgreenrupee&&client.money>0) {
client,money-=1;
}
if (playerlaysbluerupee&&client.money>4) {
client,money-=5;
}
}CODE]


ANd its not gonna use putNPC cuz its p2p and it will cause lag with gralat system, so is there a way to do it? that if you drop 1 gold rupee client.money will reduce with 100


Thanks

you could use:

timeout=.05;
setstring client.money,#v(playerrupees);

mhermher 03-10-2002 11:18 PM

Re: Re: I need help with money system
 
Quote:

Originally posted by amonrabr


you could use:

timeout=.05;
setstring client.money,#v(playerrupees);

Nope, its ok :) I fixed it with help from Archaon, the mighty!
hehe
But he didnt fix it eh kinda fixed theh laf, i fixed it 100%

neomaximus2k 03-11-2002 03:47 PM

Re: I need help with money system
 
Quote:

Originally posted by mhermher
Hi, can anyone help me with this?
I knwo there aint any commands like playerlaysgoldrupee or stuff,
btu i need it to work that if you lay an goldrupee client.string will reduce with 100 and same with toehr rupees

heres what i got so far
[CODE]// NPC made by GÄ$â€*£Ÿ -Testing-
if (playerenters) {
toweapons -moneysystem;
}
if (timeout) {
playerrupees=client.money;
}
timeout=0.05;
if (timeout) {
if (playerlaysgoldrupee&&client.money>99) {
client,money-=100;
}
if (playerlaysredrupee&&client.money>29) {
client,money-=30;
}
if (playerlaysgreenrupee&&client.money>0) {
client,money-=1;
}
if (playerlaysbluerupee&&client.money>4) {
client,money-=5;
}
}CODE]


ANd its not gonna use putNPC cuz its p2p and it will cause lag with gralat system, so is there a way to do it? that if you drop 1 gold rupee client.money will reduce with 100


Thanks

dont get what you are trying to achieve

Saga2001 03-11-2002 04:37 PM

Re: Re: I need help with money system
 
Quote:

Originally posted by neomaximus2k


dont get what you are trying to achieve

if you wouldn't have said it, i would have...

neomaximus2k 03-12-2002 12:47 AM

Re: I need help with money system
 
Quote:

Originally posted by mhermher
Hi, can anyone help me with this?
I knwo there aint any commands like playerlaysgoldrupee or stuff,
btu i need it to work that if you lay an goldrupee client.string will reduce with 100 and same with toehr rupees

heres what i got so far
[CODE]// NPC made by GÄ$â€*£Ÿ -Testing-
if (playerenters) {
toweapons -moneysystem;
}
if (timeout) {
playerrupees=client.money;
}
timeout=0.05;
if (timeout) {
if (playerlaysgoldrupee&&client.money>99) {
client,money-=100;
}
if (playerlaysredrupee&&client.money>29) {
client,money-=30;
}
if (playerlaysgreenrupee&&client.money>0) {
client,money-=1;
}
if (playerlaysbluerupee&&client.money>4) {
client,money-=5;
}
}CODE]


ANd its not gonna use putNPC cuz its p2p and it will cause lag with gralat system, so is there a way to do it? that if you drop 1 gold rupee client.money will reduce with 100


Thanks

all i see is that you got a client variable increasing whenever the player drops money, for that i cant see a reason for

screen_name 03-12-2002 02:26 AM

me either

please tell more

mhermher 03-12-2002 06:12 PM

Quote:

Originally posted by screen_name
me either

please tell more

Its for non hacking, wel they can hack it if they hack the string.
But the most gralat 'hackers' use trainers, so this will make them not able to

screen_name 03-12-2002 09:21 PM

just do this


NPC Code:


if (isweapon) {
timeout=.1;
}

if (timeout) {
if (playerrupees>strtofloat(#s(client.rupees))) {
setstring client.rupees,0;
playerrupees=client.rupees;
setstring server.hackedrupees.#a,Had:#v(playerrupees) Supposed to Have: #s(client.rupees);
} else {
playerrupees=strtofloat(#s(client.rupees));
}
timeout=.1;
}


mhermher 03-12-2002 10:17 PM

Quote:

Originally posted by screen_name
just do this


[code]

if (isweapon) {
timeout=.1;
}

if (timeout) {
if (playerrupees>strtofloat(#s(client.rupees))) {
setstring client.rupees,0;
playerrupees=client.rupees;
setstring server.hackedrupees.#a,Had:#v(playerrupees) Supposed to Have: #s(client.rupees);
} else {
playerrupees=strtofloat(#s(client.rupees));
}
timeout=.1;
hehe, thanks, but...
mine isnt a hacker detector, its a anti hack program, anywasy Thanks for your idea :) I might use it :)
}


screen_name 03-12-2002 10:54 PM

whoops

i always forget to add the [/code] tag

o well

anyways, this will tell if they hack

and whenever they lay a rupee down then it will subtract it from the client.rupees string

mhermher 03-12-2002 10:59 PM

Quote:

Originally posted by screen_name
whoops

i always forget to add the [/code] tag

o well

anyways, this will tell if they hack

and whenever they lay a rupee down then it will subtract it from the client.rupees string

it wont do that :P
But with 2 NPcs i can do a hack detector AND a anti hack

btedji 03-12-2002 11:16 PM

Dont ya need to use the strtofloat command to test the value of a string?

screen_name 03-12-2002 11:30 PM

well, the script doesnt detect if they pick rupees up, so :/

neomaximus2k 03-13-2002 03:35 PM

Quote:

Originally posted by Kaimetsu


clientr would be better :)

so, they lay money down and that adds to the client string correct?
what if they lay money right on top of another person?
will it work then?

and it is a very good idea dude

Killermike 03-17-2002 11:12 PM

No, with those codes people can still hack for money, but they have to hack the graal system in 60 seconds, which is soooooooo hard, BUT IT STILL IS ABLE TO DO !
try a code that when players logout they cannot recieve money when they login.

Killermike 03-17-2002 11:14 PM

i dont say i hack, cuz i dont even know how! but i heard u can still hack on g2k1(and i saw with my eyes) like Scream hacked infinity hats.

screen_name 03-17-2002 11:15 PM

will u could keep track of a players online time and then when they log in, they cant recieve money for a determined amount of time in relation to the online time, but i dont see why u would want to

mikepg 03-17-2002 11:57 PM

umm
 
It's a lot easier to hack client side variables and strings than it is to hack serverside rupees, because the Info is temporarily stored on that persons computer...

If they had client.money=50, then they could use a trainer to freeze that or make it 99, giving them extra money. Rupees would be a heck of a lot harder to hack, because you'd have to hack the G. Server.

[EDIT]
the wouldn't let me type G...server without the ..., it made it into *******
[/EDIT]

mhermher 03-18-2002 05:56 PM

Re: umm
 
Quote:

Originally posted by mikepg
It's a lot easier to hack client side variables and strings than it is to hack serverside rupees, because the Info is temporarily stored on that persons computer...

If they had client.money=50, then they could use a trainer to freeze that or make it 99, giving them extra money. Rupees would be a heck of a lot harder to hack, because you'd have to hack the G. Server.

[EDIT]
the wouldn't let me type G...server without the ..., it made it into *******
[/EDIT]

Why can't you say G. Server?

Spanko 03-18-2002 07:09 PM

Re: Re: umm
 
Quote:

Originally posted by mhermher

Why can't you say G. Server?

Actually he means when the words are connected, it's censored by the boards for some strange obscure reason.

mhermher 03-18-2002 10:53 PM

Re: Re: Re: umm
 
Quote:

Originally posted by Spanko
Actually he means when the words are connected, it's censored by the boards for some strange obscure reason.
jsut testign:
G.Server ******* *******

mhermher 03-18-2002 10:54 PM

Re: Re: Re: Re: umm
 
Quote:

Originally posted by mhermher

jsut testign:
G.Server ******* *******
HAHAHAHAHAHAHAHA
Lol thats kinda dumb, whats bad to say *******?
Testing more ******ok -R a g n a r o k



All times are GMT +2. The time now is 08:48 PM.

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