Skip to content

Commit 8a0f379

Browse files
committed
client port fix
1 parent 3b3dd26 commit 8a0f379

File tree

2 files changed

+63
-63
lines changed

2 files changed

+63
-63
lines changed

src/main/java/jagex2/client/Client.java

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -2398,7 +2398,7 @@ public void login(String arg0, String arg1, boolean arg2) {
23982398
this.loginMes2 = "Connecting to server...";
23992399
this.titleScreenDraw(true);
24002400
}
2401-
this.stream = new ClientStream(this, this.openSocket(portOffset + 43594));
2401+
this.stream = new ClientStream(this, this.openSocket(43594));
24022402
long var4 = JString.toBase37(arg0);
24032403
int var6 = (int) (var4 >> 16 & 0x1FL);
24042404
this.out.pos = 0;
@@ -2965,67 +2965,67 @@ public void gameLoop() {
29652965
}
29662966
this.handleInputKey();
29672967
super.idleCycles++;
2968-
if (super.idleCycles > 4500) {
2969-
//this.pendingLogout = 250;
2970-
//super.idleCycles -= 500;
2971-
// IDLE_TIMER
2972-
//this.out.pIsaac(144);
2973-
}
2974-
this.macroCameraCycle++;
2975-
if (this.macroCameraCycle > 500) {
2976-
this.macroCameraCycle = 0;
2977-
int var31 = (int) (Math.random() * 8.0D);
2978-
if ((var31 & 0x1) == 1) {
2979-
this.macroCameraX += this.macroCameraXModifier;
2980-
}
2981-
if ((var31 & 0x2) == 2) {
2982-
this.macroCameraZ += this.macroCameraZModifier;
2983-
}
2984-
if ((var31 & 0x4) == 4) {
2985-
this.macroCameraAngle += this.macroCameraAngleModifier;
2986-
}
2987-
}
2988-
if (this.macroCameraX < -50) {
2989-
this.macroCameraXModifier = 2;
2990-
}
2991-
if (this.macroCameraX > 50) {
2992-
this.macroCameraXModifier = -2;
2993-
}
2994-
if (this.macroCameraZ < -55) {
2995-
this.macroCameraZModifier = 2;
2996-
}
2997-
if (this.macroCameraZ > 55) {
2998-
this.macroCameraZModifier = -2;
2999-
}
3000-
if (this.macroCameraAngle < -40) {
3001-
this.macroCameraAngleModifier = 1;
3002-
}
3003-
if (this.macroCameraAngle > 40) {
3004-
this.macroCameraAngleModifier = -1;
3005-
}
3006-
this.macroMinimapCycle++;
3007-
if (this.macroMinimapCycle > 500) {
3008-
this.macroMinimapCycle = 0;
3009-
int var32 = (int) (Math.random() * 8.0D);
3010-
if ((var32 & 0x1) == 1) {
3011-
this.macroMinimapAngle += this.macroMinimapAngleModifier;
3012-
}
3013-
if ((var32 & 0x2) == 2) {
3014-
this.macroMinimapZoom += this.macroMinimapZoomModifier;
3015-
}
3016-
}
3017-
if (this.macroMinimapAngle < -60) {
3018-
this.macroMinimapAngleModifier = 2;
3019-
}
3020-
if (this.macroMinimapAngle > 60) {
3021-
this.macroMinimapAngleModifier = -2;
3022-
}
3023-
if (this.macroMinimapZoom < -20) {
3024-
this.macroMinimapZoomModifier = 1;
3025-
}
3026-
if (this.macroMinimapZoom > 10) {
3027-
this.macroMinimapZoomModifier = -1;
3028-
}
2968+
// if (super.idleCycles > 4500) {
2969+
// //this.pendingLogout = 250;
2970+
// //super.idleCycles -= 500;
2971+
// // IDLE_TIMER
2972+
// //this.out.pIsaac(144);
2973+
// }
2974+
// this.macroCameraCycle++;
2975+
// if (this.macroCameraCycle > 500) {
2976+
// this.macroCameraCycle = 0;
2977+
// int var31 = (int) (Math.random() * 8.0D);
2978+
// if ((var31 & 0x1) == 1) {
2979+
// this.macroCameraX += this.macroCameraXModifier;
2980+
// }
2981+
// if ((var31 & 0x2) == 2) {
2982+
// this.macroCameraZ += this.macroCameraZModifier;
2983+
// }
2984+
// if ((var31 & 0x4) == 4) {
2985+
// this.macroCameraAngle += this.macroCameraAngleModifier;
2986+
// }
2987+
// }
2988+
// if (this.macroCameraX < -50) {
2989+
// this.macroCameraXModifier = 2;
2990+
// }
2991+
// if (this.macroCameraX > 50) {
2992+
// this.macroCameraXModifier = -2;
2993+
// }
2994+
// if (this.macroCameraZ < -55) {
2995+
// this.macroCameraZModifier = 2;
2996+
// }
2997+
// if (this.macroCameraZ > 55) {
2998+
// this.macroCameraZModifier = -2;
2999+
// }
3000+
// if (this.macroCameraAngle < -40) {
3001+
// this.macroCameraAngleModifier = 1;
3002+
// }
3003+
// if (this.macroCameraAngle > 40) {
3004+
// this.macroCameraAngleModifier = -1;
3005+
// }
3006+
// this.macroMinimapCycle++;
3007+
// if (this.macroMinimapCycle > 500) {
3008+
// this.macroMinimapCycle = 0;
3009+
// int var32 = (int) (Math.random() * 8.0D);
3010+
// if ((var32 & 0x1) == 1) {
3011+
// this.macroMinimapAngle += this.macroMinimapAngleModifier;
3012+
// }
3013+
// if ((var32 & 0x2) == 2) {
3014+
// this.macroMinimapZoom += this.macroMinimapZoomModifier;
3015+
// }
3016+
// }
3017+
// if (this.macroMinimapAngle < -60) {
3018+
// this.macroMinimapAngleModifier = 2;
3019+
// }
3020+
// if (this.macroMinimapAngle > 60) {
3021+
// this.macroMinimapAngleModifier = -2;
3022+
// }
3023+
// if (this.macroMinimapZoom < -20) {
3024+
// this.macroMinimapZoomModifier = 1;
3025+
// }
3026+
// if (this.macroMinimapZoom > 10) {
3027+
// this.macroMinimapZoomModifier = -1;
3028+
// }
30293029
this.noTimeoutCycle++;
30303030
if (this.noTimeoutCycle > 50) {
30313031
// NO_TIMEOUT

src/main/java/jagex2/io/OnDemand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ public void send(OnDemandRequest arg0) {
693693
return;
694694
}
695695
this.socketOpenTime = var3;
696-
this.socket = this.app.openSocket(Client.portOffset + 43594);
696+
this.socket = this.app.openSocket(43594);
697697
this.in = this.socket.getInputStream();
698698
this.out = this.socket.getOutputStream();
699699
this.out.write(15);

0 commit comments

Comments
 (0)