mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-17 16:35:14 -06:00
Lots of login/js5/cs2 refactoring, rename Class3_Sub14 to GlTile
This commit is contained in:
parent
16e8148b7a
commit
e5eeecd0ad
168 changed files with 3168 additions and 3161 deletions
|
|
@ -21,8 +21,8 @@ public final class Static158 {
|
|||
public static int anInt3857 = 0;
|
||||
|
||||
@OriginalMember(owner = "client!mh", name = "f", descriptor = "(B)V")
|
||||
public static void method3008() {
|
||||
if (Static179.anInt4261 == 0) {
|
||||
public static void handleAccountCreation() {
|
||||
if (Static179.accountCreationStep == 0) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
|
|
@ -33,10 +33,10 @@ public final class Static158 {
|
|||
}
|
||||
if (Static57.anInt1758 >= 1) {
|
||||
Static223.anInt5034 = -5;
|
||||
Static179.anInt4261 = 0;
|
||||
Static179.accountCreationStep = 0;
|
||||
return;
|
||||
}
|
||||
Static179.anInt4261 = 1;
|
||||
Static179.accountCreationStep = 1;
|
||||
Static226.anInt5079 = 0;
|
||||
Static57.anInt1758++;
|
||||
if (Static209.port == Static271.defaultPort) {
|
||||
|
|
@ -45,12 +45,12 @@ public final class Static158 {
|
|||
Static209.port = Static271.defaultPort;
|
||||
}
|
||||
}
|
||||
if (Static179.anInt4261 == 1) {
|
||||
if (Static179.accountCreationStep == 1) {
|
||||
Static72.aClass212_3 = GameShell.signLink.openSocket(Static60.hostname, Static209.port);
|
||||
Static179.anInt4261 = 2;
|
||||
Static179.accountCreationStep = 2;
|
||||
}
|
||||
@Pc(120) int local120;
|
||||
if (Static179.anInt4261 == 2) {
|
||||
if (Static179.accountCreationStep == 2) {
|
||||
if (Static72.aClass212_3.status == 2) {
|
||||
throw new IOException();
|
||||
}
|
||||
|
|
@ -75,21 +75,21 @@ public final class Static158 {
|
|||
}
|
||||
if (local120 != 21) {
|
||||
Static223.anInt5034 = local120;
|
||||
Static179.anInt4261 = 0;
|
||||
Static179.accountCreationStep = 0;
|
||||
Static124.socket.close();
|
||||
Static124.socket = null;
|
||||
return;
|
||||
}
|
||||
Static179.anInt4261 = 3;
|
||||
Static179.accountCreationStep = 3;
|
||||
}
|
||||
if (Static179.anInt4261 == 3) {
|
||||
if (Static179.accountCreationStep == 3) {
|
||||
if (Static124.socket.available() < 1) {
|
||||
return;
|
||||
}
|
||||
Static229.aClass100Array156 = new JagString[Static124.socket.read()];
|
||||
Static179.anInt4261 = 4;
|
||||
Static179.accountCreationStep = 4;
|
||||
}
|
||||
if (Static179.anInt4261 == 4) {
|
||||
if (Static179.accountCreationStep == 4) {
|
||||
if (Static124.socket.available() < Static229.aClass100Array156.length * 8) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -99,7 +99,7 @@ public final class Static158 {
|
|||
Static229.aClass100Array156[local120] = Static79.decode37(Static57.aClass3_Sub15_Sub1_3.g8());
|
||||
}
|
||||
Static223.anInt5034 = 21;
|
||||
Static179.anInt4261 = 0;
|
||||
Static179.accountCreationStep = 0;
|
||||
Static124.socket.close();
|
||||
Static124.socket = null;
|
||||
return;
|
||||
|
|
@ -117,10 +117,10 @@ public final class Static158 {
|
|||
Static209.port = Static271.defaultPort;
|
||||
}
|
||||
Static226.anInt5079 = 0;
|
||||
Static179.anInt4261 = 1;
|
||||
Static179.accountCreationStep = 1;
|
||||
} else {
|
||||
Static223.anInt5034 = -4;
|
||||
Static179.anInt4261 = 0;
|
||||
Static179.accountCreationStep = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -131,37 +131,37 @@ public final class Static158 {
|
|||
}
|
||||
|
||||
@OriginalMember(owner = "client!mh", name = "h", descriptor = "(B)V")
|
||||
public static void method3013() {
|
||||
@Pc(10) int local10 = Static191.aByteArrayArray15.length;
|
||||
public static void decodeNpcFiles() {
|
||||
@Pc(10) int local10 = Static191.npcSpawnsFilesBuffer.length;
|
||||
for (@Pc(16) int local16 = 0; local16 < local10; local16++) {
|
||||
if (Static191.aByteArrayArray15[local16] != null) {
|
||||
if (Static191.npcSpawnsFilesBuffer[local16] != null) {
|
||||
@Pc(25) int local25 = -1;
|
||||
for (@Pc(27) int local27 = 0; local27 < Static157.anInt3811; local27++) {
|
||||
if (Static217.anIntArray434[local27] == Static238.anIntArray470[local16]) {
|
||||
if (Static217.anIntArray434[local27] == Static238.regionBitPacked[local16]) {
|
||||
local25 = local27;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (local25 == -1) {
|
||||
Static217.anIntArray434[Static157.anInt3811] = Static238.anIntArray470[local16];
|
||||
Static217.anIntArray434[Static157.anInt3811] = Static238.regionBitPacked[local16];
|
||||
local25 = Static157.anInt3811++;
|
||||
}
|
||||
@Pc(67) int local67 = 0;
|
||||
@Pc(74) Buffer local74 = new Buffer(Static191.aByteArrayArray15[local16]);
|
||||
while (local74.offset < Static191.aByteArrayArray15[local16].length && local67 < 511) {
|
||||
@Pc(74) Buffer local74 = new Buffer(Static191.npcSpawnsFilesBuffer[local16]);
|
||||
while (local74.offset < Static191.npcSpawnsFilesBuffer[local16].length && local67 < 511) {
|
||||
@Pc(97) int local97 = local67++ << 6 | local25;
|
||||
@Pc(103) int local103 = local74.g2();
|
||||
@Pc(107) int local107 = local103 >> 14;
|
||||
@Pc(113) int local113 = local103 >> 7 & 0x3F;
|
||||
@Pc(125) int local125 = local113 + (Static238.anIntArray470[local16] >> 8) * 64 - Static225.originX;
|
||||
@Pc(125) int local125 = local113 + (Static238.regionBitPacked[local16] >> 8) * 64 - Static225.originX;
|
||||
@Pc(129) int local129 = local103 & 0x3F;
|
||||
@Pc(142) int local142 = local129 + (Static238.anIntArray470[local16] & 0xFF) * 64 - Static142.originZ;
|
||||
@Pc(142) int local142 = local129 + (Static238.regionBitPacked[local16] & 0xFF) * 64 - Static142.originZ;
|
||||
@Pc(148) NpcType local148 = Static214.method4363(local74.g2());
|
||||
if (Static175.aClass8_Sub4_Sub2Array1[local97] == null && (local148.aByte10 & 0x1) > 0 && local107 == Static41.anInt1316 && local125 >= 0 && local148.anInt3713 + local125 < 104 && local142 >= 0 && local142 + local148.anInt3713 < 104) {
|
||||
Static175.aClass8_Sub4_Sub2Array1[local97] = new Npc();
|
||||
@Pc(198) Npc local198 = Static175.aClass8_Sub4_Sub2Array1[local97];
|
||||
Static33.anIntArray79[Static272.anInt5214++] = local97;
|
||||
local198.anInt3430 = Static83.anInt372;
|
||||
local198.anInt3430 = Static83.loop;
|
||||
local198.method2698(local148);
|
||||
local198.method2692(local198.aClass96_1.anInt3713);
|
||||
local198.anInt3400 = local198.anInt3381 = Static56.anIntArray141[local198.aClass96_1.aByte11];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue