• Log in or sign up for an account here: https://www.sythe.org/login

How To Make Only YOUR Client Connect To The Server [No Cheat Clients]

Joined
Sep 16, 2011
Sythe Gold
0
Messages
1,033
PI ONLY



Client Sided:

First things first, these methods probably already exist in your files, but some clients are different than others, so I'll just tell you the methods anyway and if you already have them just make the appropriate changes to them.
Open signlink class and find your run method

Find:

Code:
 public final void run() {

Or

Code:
 public void run() {

If you already have:

Code:
uid = #;

EX: 26342

That # should be random numbers Any sort you want :)

Save and Close.

Now Open Client.java

Find Your Login Method:

Code:
 private void login(String s, String s1, boolean flag)

If you scroll down you should realize this:

Code:
stream.writeDWord(/*signlink.uid*/999999);

9999999 Is the UID.

Replace:

Code:
stream.writeDWord(/*signlink.uid*/999999);/CODE]

With:

stream.writeDWord(signlink.uid);

If you locate it just put:

[CODE]stream.writeDWord(ai[3]);



Server Sided:

Find: RS2LoginProtocolDecoder.java and Open it

Then Proceed and Locate:

long clientSessionKey = in.getLong();
long serverSessionKey = in.getLong();

Under this proceed and add:

Code:
 int uid = in.getInt();
                                                if(uid != #) {
                                                        session.close();
                                                        return false;
                                                }

Make sure that that # is the same one you added into signlink.



Compile And Your Finished :)
 
duelarena.gg
Back
Top