![]() |
Cheat Windows
Is there a way I can detect if a player has a hacking tool open? I know there is this for server options, but im not quite sure it works:
NPC Code:cheatwindows=GraalRelay,Relay6,Relay,CheatEngine,A rtMoney,DeadGraal I guess what I am trying to ask, is there a scripting command I can use to detect specific programs being open? I'm trying to script a detection system for a server. We all know Relay injects packets/weapons to the client. Also, is there a command that would be helpful to find out if a weapon has been injected? |
No, you can't see what programs a person has open. In theory you can use cheatwindows (may or may not still work, I know Stefan added a global list a while back) but in reality it's a waste of time because recent tools will easily evade this.
Look at a player's list of weapons (clientside). Are there weapons you don't recognize and that aren't from Login? There are plenty of other ways to inject code, though, so don't waste your time here either. |
Quote:
Back on topic of preventing hacking.. you can impliment many checks.. like if a players distance has moved to much in too short of a time they are more then likely speed hacking.. you could log it and keep an eye on them.. also, you could or should log triggeractions that could be abused since people cannot inject serverside code but clientside code and trigger those actions still.. it really depends on your server, how things work, and what your trying to do as to how to help cut down on hacking. |
Quote:
|
Quote:
|
Best protection would be use use serverside validation, I know on era some old scripts (even some new scripts *cough*) have been exploited by sending a negative number to server side and then this happens.
player.rupees -= -(xrupees); which results in a positive number. This can easily be avoided using simple checks, or even abs(num). But what can you expect, people make mistakes. |
Quote:
|
I remember that money transfer script, alot of people used to abuse that before they fixed it lmao. But thanks guys, I'm definitely going to try out the clientside weapons check. I already have a movement speed logger, thanks for the idea though.
|
I hacked Chris' virginity once.
|
Nevermind I don't have a movement speed logger lol I was thinking of Staff Boots log for some reason. How would I go about doing this? I figure it would require some math and some temp.x and .y variables and such. Any ideas on how I should go about this?
|
Some methods include tiles/second
|
You can use a timeout, every second or so.. save temp positions for x and y.. but before saving those variables.. check current and calculate distance..
|
Quote:
Quote:
|
direction doesnt matter.
as i said.. compare last x/y to current x/y every second.. PHP Code:
I use ABS for because we want the absolute value (non negative number)... if u move to the right.. it will be a negative number.. move to the left it will be positive.. making it abs will make it always positive. |
Ah alright. Ill give this a go, and let you know how it works. Thanks man!
|
Quote:
Quote:
|
Quote:
|
Alright guys, so I used the formula for distance that Chris has supplied me with and it works great. I get a constant moving speed of 10. Not sure what the measurement for speed on Graal would be LOL but I got 10. That's enough for me to do my work. Anyways, here's the script if anybody wishes to use it themselves.
PHP Code:
|
Quote:
Quote:
and sleep(1).. isn't needed.. let me adjust it a little. PHP Code:
|
Ah thank you, and I'm not really new to scripting. I used to be very fluent in GS1 ;) I just have some troubles with GS2, and I havent really done major scripting in a while, so I'm kinda rusty. Thanks for the tips, though, much appreciated. My big issue is complexity. I turn the simplest scripts into complex nightmares xD
*EDIT: Somebody has brought to my attention, and I can't believe I overlooked it myself. Warping from levels triggers it as speed hacking. How would I go about fixing that? I tried to do a level check, but it only sets the original variable on created, so that was pointless and rendered it useless. Any ideas? |
Quote:
|
Yeah, I can imagine there to be alot of false positives. Without the level checks, I get one everytime somebody goes from one level to another. So just add an onPlayerEnters() command with the original x/y ?
Like this? : PHP Code:
|
Quote:
|
Quote:
|
Quote:
And I would suggest playing with the script doing countless test's until you have it perfected how you want. Also not much changed form GS1 to GS2.. with the exception that GS2 is now more object oriented and you use ( and ).. ex : player.chat instead of setplayerprop #c... and settimer() instead of timeout =... you could add backup checks.. and do like this.lastlevel = ... to store current level and have the alarm part of it not go off if the level is now different. it would help ensure that onPlayerEnters() is setting the new variables before it does it's next check cycle. Does anyone know if there is a onPlayerLeaves() command? I have never looked it up to see. |
Quote:
|
onPlayerLeaves() exists. Serverside event, and I believe the first parameter is the object of the player who left.
|
Quote:
onPlayerLogout() has the player object as a parameter. |
Quote:
|
Quote:
would rep u but i give u to much rep as it is and it wont let me lol |
How would I go about getting a list of all the players weapons?
|
Quote:
PHP Code:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
I know temp. variables can be quite tricky to work with. |
Quote:
|
Thanks guys, I had something very similar it just had an error on my part so it wasn't working.
|
In any case, now that I get a list of weapons, how would I go about detecting if a weapon gets added? Should I make a variable after onCreated that holds the info, and a timeout that keeps checking? I can script something that checks the weapons folder, and makes a list of all the weapons there. Then check the new weapons if its in the list, just disregard.
|
Okay, I was testing some stuff out. I changed the temps to this. and made a new function to create a seperate list. I tried this and it kept returning false:
PHP Code:
|
| All times are GMT +2. The time now is 05:45 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.