mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-20 05:20:24 -07:00
109 lines
4.4 KiB
Java
109 lines
4.4 KiB
Java
import org.openrs2.deob.annotation.OriginalArg;
|
|
import org.openrs2.deob.annotation.OriginalMember;
|
|
import org.openrs2.deob.annotation.Pc;
|
|
|
|
public final class Static225 {
|
|
|
|
@OriginalMember(owner = "client!se", name = "a", descriptor = "I")
|
|
public static int originX;
|
|
|
|
@OriginalMember(owner = "client!se", name = "l", descriptor = "Lclient!ve;")
|
|
public static Js5 aClass153_92;
|
|
|
|
@OriginalMember(owner = "client!se", name = "h", descriptor = "I")
|
|
public static int anInt5073 = -1;
|
|
|
|
@OriginalMember(owner = "client!se", name = "m", descriptor = "Lclient!na;")
|
|
public static final JagString aClass100_961 = Static28.parse(" )2>");
|
|
|
|
@OriginalMember(owner = "client!se", name = "t", descriptor = "[I")
|
|
public static final int[] anIntArray445 = new int[] { 12543016, 15504954, 15914854, 16773818 };
|
|
|
|
@OriginalMember(owner = "client!se", name = "a", descriptor = "(I)V")
|
|
public static void method3889() {
|
|
while (true) {
|
|
if (Static57.aClass3_Sub15_Sub1_3.method2241(Static223.anInt5028) >= 11) {
|
|
@Pc(20) int local20 = Static57.aClass3_Sub15_Sub1_3.method2238(11);
|
|
if (local20 != 2047) {
|
|
@Pc(27) boolean local27 = false;
|
|
if (Static159.aClass8_Sub4_Sub1Array1[local20] == null) {
|
|
Static159.aClass8_Sub4_Sub1Array1[local20] = new Player();
|
|
local27 = true;
|
|
if (Static115.aClass3_Sub15Array1[local20] != null) {
|
|
Static159.aClass8_Sub4_Sub1Array1[local20].method1262(Static115.aClass3_Sub15Array1[local20]);
|
|
}
|
|
}
|
|
Static105.anIntArray256[Static267.anInt5774++] = local20;
|
|
@Pc(65) Player local65 = Static159.aClass8_Sub4_Sub1Array1[local20];
|
|
local65.anInt3430 = Static83.loop;
|
|
@Pc(73) int local73 = Static57.aClass3_Sub15_Sub1_3.method2238(1);
|
|
if (local73 == 1) {
|
|
Static44.anIntArray106[Static116.anInt2951++] = local20;
|
|
}
|
|
@Pc(92) int local92 = Static57.aClass3_Sub15_Sub1_3.method2238(5);
|
|
@Pc(99) int local99 = Static56.anIntArray141[Static57.aClass3_Sub15_Sub1_3.method2238(3)];
|
|
if (local92 > 15) {
|
|
local92 -= 32;
|
|
}
|
|
if (local27) {
|
|
local65.anInt3400 = local65.anInt3381 = local99;
|
|
}
|
|
@Pc(116) int local116 = Static57.aClass3_Sub15_Sub1_3.method2238(1);
|
|
@Pc(121) int local121 = Static57.aClass3_Sub15_Sub1_3.method2238(5);
|
|
if (local121 > 15) {
|
|
local121 -= 32;
|
|
}
|
|
local65.method1265(local92 + Static173.self.movementQueueX[0], local116 == 1, Static173.self.movementQueueZ[0] + local121);
|
|
continue;
|
|
}
|
|
}
|
|
Static57.aClass3_Sub15_Sub1_3.method2244();
|
|
return;
|
|
}
|
|
}
|
|
|
|
@OriginalMember(owner = "client!se", name = "a", descriptor = "(IIIIZ)I")
|
|
public static int method3891(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3) {
|
|
@Pc(8) int local8 = arg3 & 0xF;
|
|
@Pc(29) int local29 = local8 >= 4 ? (local8 == 12 || local8 == 14 ? arg0 : arg1) : arg2;
|
|
@Pc(42) int local42 = local8 < 8 ? arg0 : arg2;
|
|
return ((local8 & 0x1) == 0 ? local42 : -local42) + ((local8 & 0x2) == 0 ? local29 : -local29);
|
|
}
|
|
|
|
@OriginalMember(owner = "client!se", name = "a", descriptor = "(III)V")
|
|
public static void method3893(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1) {
|
|
@Pc(14) DelayedStateChange local14 = Static238.method4143(5, arg0);
|
|
local14.method1017();
|
|
local14.intArg1 = arg1;
|
|
}
|
|
|
|
@OriginalMember(owner = "client!se", name = "a", descriptor = "(Lclient!na;Lclient!na;IB)V")
|
|
public static void method3896(@OriginalArg(0) JagString arg0, @OriginalArg(1) JagString arg1, @OriginalArg(2) int arg2) {
|
|
Static186.password = arg1;
|
|
Static5.anInt39 = arg2;
|
|
Static186.username = arg0;
|
|
if (Static186.username.method3108(Static186.EMPTY_FILE) || Static186.password.method3108(Static186.EMPTY_FILE)) {
|
|
Static266.returnCode = 3;
|
|
} else if (Static125.worldId == -1) {
|
|
Static20.anInt673 = 0;
|
|
Static196.anInt4587 = 0;
|
|
Static266.returnCode = -3;
|
|
Static219.anInt4937 = 1;
|
|
@Pc(43) Buffer local43 = new Buffer(128);
|
|
local43.p1(10);
|
|
local43.p2((int) (Math.random() * 99999.0D));
|
|
local43.p2(530);
|
|
local43.p8(Static186.username.encode37());
|
|
local43.p4((int) (Math.random() * 9.9999999E7D));
|
|
local43.pjstr(Static186.password);
|
|
local43.p4((int) (Math.random() * 9.9999999E7D));
|
|
local43.encryptRsa(GlobalConfig.RSA_EXPONENT, GlobalConfig.RSA_MODULUS);
|
|
Static6.outboundBuffer.offset = 0;
|
|
Static6.outboundBuffer.p1(210);
|
|
Static6.outboundBuffer.p1(local43.offset);
|
|
Static6.outboundBuffer.pBytes(local43.data, local43.offset);
|
|
} else {
|
|
Static49.method1208();
|
|
}
|
|
}
|
|
}
|