mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 08:39:04 +00:00
Start Setting Up Second World
Added World Number To Login Message Added World Number To Login Interface Made World 2 Listen On Different Port Made Client Connect To 43597 For World 2
This commit is contained in:
@@ -18,12 +18,17 @@ public class ClientSettings {
|
||||
public final static String SERVER_WEBSITE = "www.2006Scape.org";
|
||||
/**
|
||||
* The Servers Ip
|
||||
*
|
||||
* You don't have to change this, the client will automatically connect to the server
|
||||
* on localhost (Assuming you're running Client and LocalGame respectively)
|
||||
*
|
||||
*/
|
||||
public static String SERVER_IP = "www.2006Scape.org";
|
||||
/**
|
||||
* The Servers World
|
||||
* This Determines The Port The Server Will Connect On
|
||||
* World 1 Will Connect On Port 43594
|
||||
* World 2 Will Connect On Port 43597
|
||||
*/
|
||||
public final static int SERVER_WORLD = 1;
|
||||
/**
|
||||
* The Npc Bits for the Server
|
||||
*/
|
||||
|
||||
@@ -5927,7 +5927,7 @@ public class Game extends RSApplet {
|
||||
loginMessage2 = "Connecting to server...";
|
||||
drawLoginScreen(true);
|
||||
}
|
||||
socketStream = new RSSocket(this, openSocket(43594 + portOff));
|
||||
socketStream = new RSSocket(this, openSocket((ClientSettings.SERVER_WORLD == 1) ? 43594 : 43597 + portOff));
|
||||
long l = TextClass.longForName(s);
|
||||
int i = (int) (l >> 16 & 31L);
|
||||
stream.currentOffset = 0;
|
||||
|
||||
Reference in New Issue
Block a user