Compare commits
1
Commits
main
..
ccf14c0a71
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ccf14c0a71 |
No files matched your search
@@ -1,14 +1,9 @@
|
||||
|
||||
import java.math.BigInteger;
|
||||
|
||||
public class ClientSettings {
|
||||
|
||||
public static final String SERVER_HOST = "server.2006scape.org";
|
||||
public static final int SERVER_WORLD = 1;
|
||||
public static final boolean SINGLE_ONDEMAND = true;
|
||||
public static final String SERVER_NAME = "2006Scape";
|
||||
public static final BigInteger RSA_MODULUS = new BigInteger("91553247461173033466542043374346300088148707506479543786501537350363031301992107112953015516557748875487935404852620239974482067336878286174236183516364787082711186740254168914127361643305190640280157664988536979163450791820893999053469529344247707567448479470137716627440246788713008490213212272520901741443");
|
||||
public static final BigInteger RSA_EXPONENT = new BigInteger("65537");
|
||||
|
||||
public static int getWorldPort(int portOffset) {
|
||||
return (SERVER_WORLD == 1) ? (43594 + portOffset) : (43596 + SERVER_WORLD + portOffset);
|
||||
|
||||
@@ -9,6 +9,7 @@ import java.io.DataInputStream;
|
||||
import java.io.EOFException;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.math.BigInteger;
|
||||
import java.net.InetAddress;
|
||||
import java.net.Socket;
|
||||
import java.net.URI;
|
||||
@@ -25,6 +26,8 @@ public class Game extends GameShell {
|
||||
|
||||
public static final int[][] designPartColor = {{6798, 107, 10283, 16, 4797, 7744, 5799, 4634, 33697, 22433, 2983, 54193}, {8741, 12, 64030, 43162, 7735, 8404, 1701, 38430, 24094, 10153, 56621, 4783, 1341, 16578, 35003, 25239}, {25238, 8742, 12, 64030, 43162, 7735, 8404, 1701, 38430, 24094, 10153, 56621, 4783, 1341, 16578, 35003}, {4626, 11146, 6439, 12, 4758, 10270}, {4550, 4537, 5681, 5673, 5790, 6806, 8076, 4574}};
|
||||
public static final int[] designHairColor = {9104, 10275, 7595, 3610, 7975, 8526, 918, 38802, 24466, 10145, 58654, 5027, 1457, 16565, 34991, 25486};
|
||||
public static final BigInteger RSA_MODULUS = new BigInteger("91553247461173033466542043374346300088148707506479543786501537350363031301992107112953015516557748875487935404852620239974482067336878286174236183516364787082711186740254168914127361643305190640280157664988536979163450791820893999053469529344247707567448479470137716627440246788713008490213212272520901741443");
|
||||
public static final BigInteger RSA_EXPONENT = new BigInteger("65537");
|
||||
public static final String VALID_CHAT_CHARACTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"\243$%^&*()-_=+[{]};:'@#~,<.>/?\\| ";
|
||||
public static final int[] BITMASK;
|
||||
public static final int MAX_PLAYER_COUNT = 2048;
|
||||
@@ -7051,7 +7054,7 @@ public class Game extends GameShell {
|
||||
out.write32(Signlink.uid);
|
||||
out.writeString(username);
|
||||
out.writeString(password);
|
||||
out.encrypt(ClientSettings.RSA_EXPONENT, ClientSettings.RSA_MODULUS);
|
||||
out.encrypt(RSA_EXPONENT, RSA_MODULUS);
|
||||
|
||||
login.position = 0;
|
||||
login.write8(reconnect ? 18 : 16);
|
||||
|
||||
Reference in new issue
Block a user