Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Hacker Prevention? (https://forums.graalonline.com/forums/showthread.php?t=22183)

lordhelmut 01-27-2002 02:45 AM

Hacker Prevention?
 
Alright we have seen many hackers on Babylon. I would like to ask about a couple of security measures to take. First off, is there anyway to make a NPC that detects if they are going faster than a certain speed? Kinda like an Anti-Speed Boots thing lol.

Second, since people hack a lot of money on Babylon, were constantly having to take it away. Were going to make it so that they have to have purses to carry more and more. I was wondering however if its possible to check maybe like if the player has less than a hour of onlinetime and has more than 5000.

Or stefan could just fix it so the speed hacking and Money hacking wont work =/

btedji 01-27-2002 03:00 AM

you could just use the players x value and y values to see how far he is going in a certain amount of time

for the ruppes you would need to use timevar and the players rupees count

neither of those things would work very well for preventing hacking though

kittygirl765 01-27-2002 03:01 AM

I tried to make somethin liek that b4, but its really complicated, and often gets buggy. But if u try to make a system that actually prevents then from hacking, then ppl will try to hack your hacking prevention system =D

lordhelmut 01-27-2002 03:01 AM

damn =/

kittygirl765 01-27-2002 03:08 AM

Re: Hacker Prevention?
 
Quote:

Originally posted by lordhelmut
[B]Second, since people hack a lot of money on Babylon, were constantly having to take it away.
The only real way to prevent money hacking is to use npc server b/c the server handles all the money giving and taking stuff. But npc server is probably out of the question here =P!

BocoC 01-27-2002 04:37 AM

Try something like this:
NPC Code:

if (created) timeout=0.05;
if (timeout) {
if ((abs(this.px-playerx)>0.6)||(abs(this.py-playery)>0.6)) {
playerx=this.px;
playery=this.py;
}
this.px=playerx;
this.py=playery;
timeout=0.05;
}


That should work. Since a player moves a max of 0.6 tiles every 0.5 seconds (level 3 shield), it checks if a player goes faster. You can modify upon it if you want.

Kadar 01-27-2002 04:58 AM

LH, I will help u

Echos 01-27-2002 08:41 AM

Quote:

Originally posted by BocoC
Try something like this:
NPC Code:

if (created) timeout=0.05;
if (timeout) {
if ((abs(this.px-playerx)>0.6)||(abs(this.py-playery)>0.6)) {
playerx=this.px;
playery=this.py;
}
this.px=playerx;
this.py=playery;
timeout=0.05;
}


That should work. Since a player moves a max of 0.6 tiles every 0.5 seconds (level 3 shield), it checks if a player goes faster. You can modify upon it if you want.

[Kaimetsu]

Nope, won't work. Wanna know why? Because on a speed-hacked computer, timeouts run faster than normal too. You might get 40 timeouts per second, so even if you were running at the normal distance-per-timeout, you'd still be going fast.

[/Kaimetsu]

Loriel 01-27-2002 09:20 AM

Quote:

Originally posted by Echos
[Kaimetsu]
Nope, won't work. Wanna know why? Because on a speed-hacked computer, timeouts run faster than normal too. You might get 40 timeouts per second, so even if you were running at the normal distance-per-timeout, you'd still be going fast.
[/Kaimetsu]

I guess that's not really the problem, some trainers are just changing the x/y value like badly scripted speedups.
But I think a problem would be that the script would mess with the player coordinates while going through links or riding a horse etc.

entravial 01-27-2002 09:46 AM

~AlphaFlame~

Hmmm if that's all you have hacker problems with I applaude you. Most servers have problems with hackers changing variables... but then again, when the variables are named things like "this.jailed" and flags like "isclass" I can't possibly see why. :rolleyes:

royce 01-27-2002 09:48 AM

Create your own attribute system and do account swipe.

Echos 01-27-2002 10:00 AM

Quote:

Originally posted by Loriel

I guess that's not really the problem, some trainers are just changing the x/y value like badly scripted speedups.
But I think a problem would be that the script would mess with the player coordinates while going through links or riding a horse etc.

[Kaimetsu]

Oh, right, it'd work for the low-class trainers. But not for what is standardly known as the speed hack.

[/Kaimetsu]

joseyisleet 01-28-2002 05:03 PM

Those things aren't really hacking, they're "hex editing". Considering that they change the hex values of the Graal.exe. Stefan could stop annoying hex editing newbies by simply making it so that the original hex values of the Graal.exe gets changed to normal like once every 5 minutes. Maybe on a less interval, but, it would still work.

joseyisleet 01-28-2002 05:26 PM

Funny how someone would say that. ;] The original meaning the original walking speed and the original item indexes. Since all trainers and/or patches usually only change the item indexes and the walking speed indexes. Some change the leaps and explosion indexes also (seen in Cheeta patch and Dan's the man).

joseyisleet 01-28-2002 05:29 PM

Next question?
;D


All times are GMT +2. The time now is 08:57 AM.

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