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 01-27-2002, 02:45 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
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 =/
Reply With Quote
  #2  
Old 01-27-2002, 03:00 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
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
Reply With Quote
  #3  
Old 01-27-2002, 03:01 AM
kittygirl765 kittygirl765 is offline
tapatapatapa
kittygirl765's Avatar
Join Date: Dec 2001
Location: Caught in a tree
Posts: 70
kittygirl765 is on a distinguished road
Send a message via ICQ to kittygirl765
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
__________________
I <3 UN
I <3 Shadow Strip Entertainment City Shangri-La
I <3 gscript2
Reply With Quote
  #4  
Old 01-27-2002, 03:01 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
damn =/
Reply With Quote
  #5  
Old 01-27-2002, 03:08 AM
kittygirl765 kittygirl765 is offline
tapatapatapa
kittygirl765's Avatar
Join Date: Dec 2001
Location: Caught in a tree
Posts: 70
kittygirl765 is on a distinguished road
Send a message via ICQ to kittygirl765
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!
__________________
I <3 UN
I <3 Shadow Strip Entertainment City Shangri-La
I <3 gscript2
Reply With Quote
  #6  
Old 01-27-2002, 04:37 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to 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.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #7  
Old 01-27-2002, 04:58 AM
Kadar Kadar is offline
Registered User
Join Date: Jan 2002
Posts: 636
Kadar is on a distinguished road
LH, I will help u
__________________
Reply With Quote
  #8  
Old 01-27-2002, 08:41 AM
Echos Echos is offline
Banned
Join Date: Jan 2002
Location: Somewhere in Georgia for l33t schoolings
Posts: 1,286
Echos is on a distinguished road
Send a message via ICQ to Echos Send a message via AIM to Echos Send a message via Yahoo to Echos
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]
Reply With Quote
  #9  
Old 01-27-2002, 09:20 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
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.
Reply With Quote
  #10  
Old 01-27-2002, 09:46 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~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.
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #11  
Old 01-27-2002, 09:48 AM
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
Create your own attribute system and do account swipe.
Reply With Quote
  #12  
Old 01-27-2002, 10:00 AM
Echos Echos is offline
Banned
Join Date: Jan 2002
Location: Somewhere in Georgia for l33t schoolings
Posts: 1,286
Echos is on a distinguished road
Send a message via ICQ to Echos Send a message via AIM to Echos Send a message via Yahoo to Echos
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]
Reply With Quote
  #13  
Old 01-28-2002, 05:03 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
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.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #14  
Old 01-28-2002, 05:26 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
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).
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #15  
Old 01-28-2002, 05:29 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
Next question?
;D
__________________
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 07:53 AM.


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