mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-12 09:30:22 -07:00
290 lines
11 KiB
Java
290 lines
11 KiB
Java
import java.io.DataInputStream;
|
|
import java.net.URL;
|
|
import java.util.Random;
|
|
import org.openrs2.deob.annotation.OriginalArg;
|
|
import org.openrs2.deob.annotation.OriginalMember;
|
|
import org.openrs2.deob.annotation.Pc;
|
|
|
|
public final class Static89 {
|
|
|
|
@OriginalMember(owner = "client!ha", name = "i", descriptor = "Lclient!qf;")
|
|
public static Sprite aClass3_Sub2_Sub1_5;
|
|
|
|
@OriginalMember(owner = "client!ha", name = "k", descriptor = "[[Z")
|
|
public static boolean[][] aBooleanArrayArray3;
|
|
|
|
@OriginalMember(owner = "client!ha", name = "o", descriptor = "I")
|
|
public static int anInt2387;
|
|
|
|
@OriginalMember(owner = "client!ha", name = "m", descriptor = "I")
|
|
public static int anInt2385 = 0;
|
|
|
|
@OriginalMember(owner = "client!ha", name = "p", descriptor = "Lclient!gn;")
|
|
public static final LruHashTable aClass54_8 = new LruHashTable(64);
|
|
|
|
@OriginalMember(owner = "client!ha", name = "q", descriptor = "I")
|
|
public static int anInt2388 = 0;
|
|
|
|
@OriginalMember(owner = "client!ha", name = "a", descriptor = "(ZB)V")
|
|
public static void method1835(@OriginalArg(0) boolean arg0) {
|
|
@Pc(11) byte local11;
|
|
@Pc(13) byte[][] local13;
|
|
if (Static239.aBoolean269 && arg0) {
|
|
local11 = 1;
|
|
local13 = Static186.aByteArrayArray14;
|
|
} else {
|
|
local13 = Static273.aByteArrayArray13;
|
|
local11 = 4;
|
|
}
|
|
for (@Pc(21) int local21 = 0; local21 < local11; local21++) {
|
|
Static107.method2261();
|
|
for (@Pc(32) int local32 = 0; local32 < 13; local32++) {
|
|
for (@Pc(39) int local39 = 0; local39 < 13; local39++) {
|
|
@Pc(52) int local52 = Static187.anIntArrayArrayArray18[local21][local32][local39];
|
|
@Pc(54) boolean local54 = false;
|
|
if (local52 != -1) {
|
|
@Pc(65) int local65 = local52 >> 24 & 0x3;
|
|
if (!arg0 || local65 == 0) {
|
|
@Pc(76) int local76 = local52 >> 3 & 0x7FF;
|
|
@Pc(82) int local82 = local52 >> 1 & 0x3;
|
|
@Pc(88) int local88 = local52 >> 14 & 0x3FF;
|
|
@Pc(98) int local98 = (local88 / 8 << 8) + local76 / 8;
|
|
for (@Pc(100) int local100 = 0; local100 < Static238.anIntArray470.length; local100++) {
|
|
if (Static238.anIntArray470[local100] == local98 && local13[local100] != null) {
|
|
Static245.method4228(local82, local32 * 8, local21, Static148.aClass97Array1, local39 * 8, local13[local100], local65, (local76 & 0x7) * 8, (local88 & 0x7) * 8, arg0);
|
|
local54 = true;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (!local54) {
|
|
Static23.method645(local21, local39 * 8, local32 * 8, 8, 8);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@OriginalMember(owner = "client!ha", name = "a", descriptor = "(ILclient!be;)Lclient!be;")
|
|
public static Class13 method1836(@OriginalArg(1) Class13 arg0) {
|
|
@Pc(12) Class13 local12 = Static36.method938(arg0);
|
|
if (local12 == null) {
|
|
local12 = arg0.aClass13_5;
|
|
}
|
|
return local12;
|
|
}
|
|
|
|
@OriginalMember(owner = "client!ha", name = "a", descriptor = "(II)[B")
|
|
public static byte[] method1837(@OriginalArg(1) int arg0) {
|
|
@Pc(10) Class3_Sub2_Sub11 local10 = (Class3_Sub2_Sub11) Static53.aClass54_5.method1806((long) arg0);
|
|
if (local10 == null) {
|
|
@Pc(24) Random local24 = new Random((long) arg0);
|
|
@Pc(27) byte[] local27 = new byte[512];
|
|
@Pc(29) int local29;
|
|
for (local29 = 0; local29 < 255; local29++) {
|
|
local27[local29] = (byte) local29;
|
|
}
|
|
for (local29 = 0; local29 < 255; local29++) {
|
|
@Pc(53) int local53 = 255 - local29;
|
|
@Pc(58) int local58 = Static171.method3219(local53, local24);
|
|
@Pc(62) byte local62 = local27[local58];
|
|
local27[local58] = local27[local53];
|
|
local27[local53] = local27[511 - local29] = local62;
|
|
}
|
|
local10 = new Class3_Sub2_Sub11(local27);
|
|
Static53.aClass54_5.method1811(local10, (long) arg0);
|
|
}
|
|
return local10.aByteArray37;
|
|
}
|
|
|
|
@OriginalMember(owner = "client!ha", name = "a", descriptor = "([IJIZ)Lclient!na;")
|
|
public static JagString method1838(@OriginalArg(0) int[] arg0, @OriginalArg(1) long arg1, @OriginalArg(2) int arg2) {
|
|
if (Static107.anInterface3_1 != null) {
|
|
@Pc(17) JagString local17 = Static107.anInterface3_1.method30(arg2, arg0, arg1);
|
|
if (local17 != null) {
|
|
return local17;
|
|
}
|
|
}
|
|
return Static154.method2929(arg1);
|
|
}
|
|
|
|
@OriginalMember(owner = "client!ha", name = "a", descriptor = "(Ljava/lang/String;Ljava/lang/Throwable;B)V")
|
|
public static void method1839(@OriginalArg(0) String arg0, @OriginalArg(1) Throwable arg1) {
|
|
try {
|
|
@Pc(13) String local13 = "";
|
|
if (arg1 != null) {
|
|
local13 = Static97.method1961(arg1);
|
|
}
|
|
if (arg0 != null) {
|
|
if (arg1 != null) {
|
|
local13 = local13 + " | ";
|
|
}
|
|
local13 = local13 + arg0;
|
|
}
|
|
Static5.method31(local13);
|
|
local13 = Static40.method1014(":", "%3a", local13);
|
|
local13 = Static40.method1014("@", "%40", local13);
|
|
local13 = Static40.method1014("&", "%26", local13);
|
|
local13 = Static40.method1014("#", "%23", local13);
|
|
if (Static69.aClass213_4.anApplet2 == null) {
|
|
return;
|
|
}
|
|
@Pc(109) PrivilegedRequest local109 = Static69.aClass213_4.method5118(new URL(Static69.aClass213_4.anApplet2.getCodeBase(), "clienterror.ws?c=" + Static131.anInt3252 + "&u=" + Static101.aLong98 + "&v1=" + SignLink.aString20 + "&v2=" + SignLink.aString14 + "&e=" + local13));
|
|
while (local109.anInt5925 == 0) {
|
|
Static231.method3983(1L);
|
|
}
|
|
if (local109.anInt5925 == 1) {
|
|
@Pc(128) DataInputStream local128 = (DataInputStream) local109.anObject6;
|
|
local128.read();
|
|
local128.close();
|
|
}
|
|
} catch (@Pc(135) Exception local135) {
|
|
}
|
|
}
|
|
|
|
@OriginalMember(owner = "client!ha", name = "b", descriptor = "(II)V")
|
|
public static void method1840(@OriginalArg(1) int arg0) {
|
|
@Pc(8) Class3_Sub2_Sub8 local8 = Static238.method4143(2, arg0);
|
|
local8.method1007();
|
|
}
|
|
|
|
@OriginalMember(owner = "client!ha", name = "a", descriptor = "(I)V")
|
|
public static void method1841() {
|
|
if (!Static60.aBoolean108) {
|
|
if (Static162.anInt3953 != 0) {
|
|
Static155.anInt3751 = Static277.anInt5850;
|
|
Static60.anInt1892 = Static280.anInt5895;
|
|
} else if (Static150.anInt3585 == 0) {
|
|
Static155.anInt3751 = Static215.anInt4873;
|
|
Static60.anInt1892 = Static223.anInt5032;
|
|
} else {
|
|
Static155.anInt3751 = Static7.anInt985;
|
|
Static60.anInt1892 = Static60.anInt1893;
|
|
}
|
|
Static231.anInt5204 = 1;
|
|
Static254.aClass100Array168[0] = Static270.aClass100_1091;
|
|
Static233.aClass100Array160[0] = Static186.aClass100_827;
|
|
Static39.aShortArray6[0] = 1005;
|
|
Static190.anIntArray382[0] = Static35.anInt1092;
|
|
}
|
|
if (Static154.anInt3711 != -1) {
|
|
Static96.method1949(Static154.anInt3711);
|
|
}
|
|
@Pc(60) int local60;
|
|
for (local60 = 0; local60 < Static24.anInt766; local60++) {
|
|
if (Static186.aBooleanArray100[local60]) {
|
|
Static31.aBooleanArray29[local60] = true;
|
|
}
|
|
Static223.aBooleanArray116[local60] = Static186.aBooleanArray100[local60];
|
|
Static186.aBooleanArray100[local60] = false;
|
|
}
|
|
Static201.aClass13_13 = null;
|
|
Static97.anInt2503 = -1;
|
|
Static214.anInt5574 = -1;
|
|
Static169.aClass13_18 = null;
|
|
if (Static239.aBoolean269) {
|
|
Static263.aBoolean299 = true;
|
|
}
|
|
Static182.anInt4311 = Static83.anInt372;
|
|
if (Static154.anInt3711 != -1) {
|
|
Static24.anInt766 = 0;
|
|
Static9.method182();
|
|
}
|
|
if (Static239.aBoolean269) {
|
|
Static46.method1177();
|
|
} else {
|
|
Static129.method2503();
|
|
}
|
|
Static280.method4673();
|
|
if (Static60.aBoolean108) {
|
|
if (Static261.aBoolean298) {
|
|
Static112.method2297();
|
|
} else {
|
|
Static145.method2744();
|
|
}
|
|
} else if (Static201.aClass13_13 != null) {
|
|
Static49.method1207(Static201.aClass13_13, Static143.anInt3484, Static131.anInt3260);
|
|
} else if (Static97.anInt2503 != -1) {
|
|
Static49.method1207(null, Static214.anInt5574, Static97.anInt2503);
|
|
}
|
|
local60 = Static60.aBoolean108 ? -1 : Static235.method4044();
|
|
if (local60 == -1) {
|
|
local60 = Static270.anInt5794;
|
|
}
|
|
Static81.method1750(local60);
|
|
if (Static125.anInt3096 == 1) {
|
|
Static125.anInt3096 = 2;
|
|
}
|
|
if (Static187.anInt4422 == 1) {
|
|
Static187.anInt4422 = 2;
|
|
}
|
|
if (Static199.anInt4672 == 3) {
|
|
for (@Pc(189) int local189 = 0; local189 < Static24.anInt766; local189++) {
|
|
if (Static223.aBooleanArray116[local189]) {
|
|
if (Static239.aBoolean269) {
|
|
Static46.method1182(Static264.anIntArray410[local189], Static50.anIntArray133[local189], Static224.anIntArray443[local189], Static67.anIntArray320[local189], 16711935, 128);
|
|
} else {
|
|
Static129.method2484(Static264.anIntArray410[local189], Static50.anIntArray133[local189], Static224.anIntArray443[local189], Static67.anIntArray320[local189], 16711935, 128);
|
|
}
|
|
} else if (Static31.aBooleanArray29[local189]) {
|
|
if (Static239.aBoolean269) {
|
|
Static46.method1182(Static264.anIntArray410[local189], Static50.anIntArray133[local189], Static224.anIntArray443[local189], Static67.anIntArray320[local189], 16711680, 128);
|
|
} else {
|
|
Static129.method2484(Static264.anIntArray410[local189], Static50.anIntArray133[local189], Static224.anIntArray443[local189], Static67.anIntArray320[local189], 16711680, 128);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Static110.method2281(Static178.anInt4247, Static173.aClass8_Sub4_Sub1_2.anInt3412, Static173.aClass8_Sub4_Sub1_2.anInt3421, Static55.anInt1735);
|
|
Static178.anInt4247 = 0;
|
|
}
|
|
|
|
@OriginalMember(owner = "client!ha", name = "a", descriptor = "(IIIII)V")
|
|
public static void method1843(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(4) int arg3) {
|
|
@Pc(7) int local7 = 0;
|
|
@Pc(9) int local9 = arg2;
|
|
@Pc(12) int local12 = -arg2;
|
|
@Pc(14) int local14 = -1;
|
|
@Pc(22) int local22 = Static78.method1690(Static224.anInt5063, arg2 + arg3, Static172.anInt4164);
|
|
@Pc(30) int local30 = Static78.method1690(Static224.anInt5063, arg3 - arg2, Static172.anInt4164);
|
|
Static131.method2576(Static71.anIntArrayArray10[arg1], local30, local22, arg0);
|
|
while (local7 < local9) {
|
|
local14 += 2;
|
|
local12 += local14;
|
|
@Pc(58) int local58;
|
|
@Pc(68) int local68;
|
|
@Pc(84) int local84;
|
|
@Pc(93) int local93;
|
|
if (local12 > 0) {
|
|
local9--;
|
|
local58 = arg1 - local9;
|
|
local12 -= local9 << 1;
|
|
local68 = arg1 + local9;
|
|
if (local68 >= Static267.anInt5773 && local58 <= Static106.anInt2869) {
|
|
local84 = Static78.method1690(Static224.anInt5063, arg3 + local7, Static172.anInt4164);
|
|
local93 = Static78.method1690(Static224.anInt5063, arg3 - local7, Static172.anInt4164);
|
|
if (Static106.anInt2869 >= local68) {
|
|
Static131.method2576(Static71.anIntArrayArray10[local68], local93, local84, arg0);
|
|
}
|
|
if (Static267.anInt5773 <= local58) {
|
|
Static131.method2576(Static71.anIntArrayArray10[local58], local93, local84, arg0);
|
|
}
|
|
}
|
|
}
|
|
local7++;
|
|
local58 = arg1 - local7;
|
|
local68 = local7 + arg1;
|
|
if (local68 >= Static267.anInt5773 && Static106.anInt2869 >= local58) {
|
|
local84 = Static78.method1690(Static224.anInt5063, arg3 + local9, Static172.anInt4164);
|
|
local93 = Static78.method1690(Static224.anInt5063, arg3 - local9, Static172.anInt4164);
|
|
if (local68 <= Static106.anInt2869) {
|
|
Static131.method2576(Static71.anIntArrayArray10[local68], local93, local84, arg0);
|
|
}
|
|
if (local58 >= Static267.anInt5773) {
|
|
Static131.method2576(Static71.anIntArrayArray10[local58], local93, local84, arg0);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|