mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-17 08:25:14 -06:00
Started organizing CS2/Protocol-related functions
This commit is contained in:
parent
46740027df
commit
ef6a5d7385
268 changed files with 5936 additions and 6093 deletions
|
|
@ -43,7 +43,7 @@ public final class Static127 {
|
|||
@Pc(55) int local55 = Static225.originX;
|
||||
Static142.originZ = arg1 * 8 - 48;
|
||||
Static225.originX = (arg2 - 6) * 8;
|
||||
Static158.aClass3_Sub2_Sub4_3 = Static29.method803(Static80.centralZoneX * 8, Static52.anInt1695 * 8);
|
||||
Static158.aClass3_Sub2_Sub4_3 = MapList.getContainingSource(Static80.centralZoneX * 8, Static52.anInt1695 * 8);
|
||||
@Pc(81) int local81 = Static142.originZ - local53;
|
||||
@Pc(86) int local86 = Static225.originX - local55;
|
||||
Static235.mapElementList = null;
|
||||
|
|
@ -53,7 +53,7 @@ public final class Static127 {
|
|||
if (arg4) {
|
||||
Static272.anInt5214 = 0;
|
||||
for (local96 = 0; local96 < 32768; local96++) {
|
||||
local103 = Static175.npcs[local96];
|
||||
local103 = NpcList.npcs[local96];
|
||||
if (local103 != null) {
|
||||
local103.xFine -= local86 * 128;
|
||||
local103.zFine -= local81 * 128;
|
||||
|
|
@ -64,14 +64,14 @@ public final class Static127 {
|
|||
}
|
||||
Static33.anIntArray79[Static272.anInt5214++] = local96;
|
||||
} else {
|
||||
Static175.npcs[local96].method2698(null);
|
||||
Static175.npcs[local96] = null;
|
||||
NpcList.npcs[local96].method2698(null);
|
||||
NpcList.npcs[local96] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (local96 = 0; local96 < 32768; local96++) {
|
||||
local103 = Static175.npcs[local96];
|
||||
local103 = NpcList.npcs[local96];
|
||||
if (local103 != null) {
|
||||
for (local109 = 0; local109 < 10; local109++) {
|
||||
local103.movementQueueX[local109] -= local86;
|
||||
|
|
@ -231,132 +231,4 @@ public final class Static127 {
|
|||
}
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!k", name = "a", descriptor = "(Lclient!na;Z)V")
|
||||
public static void method2470(@OriginalArg(0) JagString arg0) {
|
||||
if (LoginManager.staffModLevel >= 2) {
|
||||
@Pc(18) int local18;
|
||||
@Pc(38) int local38;
|
||||
@Pc(29) Runtime local29;
|
||||
if (arg0.equalsIgnoreCase(Static81.aClass100_476)) {
|
||||
client.method2380();
|
||||
for (local18 = 0; local18 < 10; local18++) {
|
||||
System.gc();
|
||||
}
|
||||
local29 = Runtime.getRuntime();
|
||||
local38 = (int) ((local29.totalMemory() - local29.freeMemory()) / 1024L);
|
||||
Chat.add(null, 0, JagString.concatenate(new JagString[] { Static202.aClass100_892, Static123.parseInt(local38), Static17.aClass100_101 }));
|
||||
}
|
||||
@Pc(117) int local117;
|
||||
if (arg0.equalsIgnoreCase(Static154.aClass100_735)) {
|
||||
client.method2380();
|
||||
for (local18 = 0; local18 < 10; local18++) {
|
||||
System.gc();
|
||||
}
|
||||
local29 = Runtime.getRuntime();
|
||||
local38 = (int) ((local29.totalMemory() - local29.freeMemory()) / 1024L);
|
||||
Chat.add(null, 0, JagString.concatenate(new JagString[] { Static203.aClass100_893, Static123.parseInt(local38), Static17.aClass100_101 }));
|
||||
Static16.method501();
|
||||
client.method2380();
|
||||
for (local117 = 0; local117 < 10; local117++) {
|
||||
System.gc();
|
||||
}
|
||||
local38 = (int) ((local29.totalMemory() - local29.freeMemory()) / 1024L);
|
||||
Chat.add(null, 0, JagString.concatenate(new JagString[] { Cheat.aClass100_1093, Static123.parseInt(local38), Static17.aClass100_101 }));
|
||||
}
|
||||
if (arg0.equalsIgnoreCase(Static240.aClass100_1009)) {
|
||||
Chat.add(null, 0, JagString.concatenate(new JagString[] { Static44.aClass100_335, Static123.parseInt(Static198.method1029()) }));
|
||||
}
|
||||
if (GlRenderer.enabled && arg0.equalsIgnoreCase(Static201.aClass100_406)) {
|
||||
System.out.println("oncard_geometry:" + GlCleaner.anInt1945);
|
||||
System.out.println("oncard_2d:" + GlCleaner.onCard2d);
|
||||
System.out.println("oncard_texture:" + GlCleaner.onCardTexture);
|
||||
}
|
||||
if (arg0.equalsIgnoreCase(Cheat.CLIENTDROP)) {
|
||||
Static175.method3279();
|
||||
}
|
||||
if (arg0.equalsIgnoreCase(Static279.aClass100_1106)) {
|
||||
client.js5NetQueue.quit();
|
||||
}
|
||||
if (arg0.equalsIgnoreCase(Cheat.JS5DROP)) {
|
||||
client.js5NetQueue.method2319();
|
||||
}
|
||||
if (arg0.equalsIgnoreCase(Cheat.aClass100_775)) {
|
||||
GameShell.signLink.breakConnection();
|
||||
Protocol.socket.breakConnection();
|
||||
client.js5NetQueue.method2323();
|
||||
}
|
||||
if (arg0.equalsIgnoreCase(Static114.aClass100_1100)) {
|
||||
GameShell.replaceCanvas = true;
|
||||
}
|
||||
if (arg0.equalsIgnoreCase(Static148.aClass100_677)) {
|
||||
client.setGameState(25);
|
||||
}
|
||||
if (arg0.equalsIgnoreCase(Static107.aClass100_566)) {
|
||||
Cheat.displayFps = true;
|
||||
}
|
||||
if (arg0.equalsIgnoreCase(Static61.aClass100_422)) {
|
||||
Cheat.displayFps = false;
|
||||
}
|
||||
if (arg0.equalsIgnoreCase(Static96.aClass100_522)) {
|
||||
Static241.setWindowMode(false, 0, -1, -1);
|
||||
}
|
||||
if (arg0.equalsIgnoreCase(Static181.aClass100_811)) {
|
||||
Static241.setWindowMode(false, 1, -1, -1);
|
||||
}
|
||||
if (arg0.equalsIgnoreCase(Static207.aClass100_904)) {
|
||||
Static241.setWindowMode(false, 2, -1, -1);
|
||||
}
|
||||
if (arg0.equalsIgnoreCase(Static99.aClass100_529)) {
|
||||
Static241.setWindowMode(false, 3, 1024, 768);
|
||||
}
|
||||
if (arg0.equalsIgnoreCase(Static69.aClass100_443)) {
|
||||
for (local18 = 0; local18 < 4; local18++) {
|
||||
for (local38 = 1; local38 < 103; local38++) {
|
||||
for (local117 = 1; local117 < 103; local117++) {
|
||||
PathFinder.collisionMaps[local18].anIntArrayArray30[local38][local117] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (arg0.startsWith(Cheat.aClass100_1088)) {
|
||||
Preferences.setParticles(arg0.substring(15).parseInt());
|
||||
Preferences.write(GameShell.signLink);
|
||||
Preferences.sentToServer = false;
|
||||
}
|
||||
if (arg0.startsWith(Cheat.aClass100_623) && client.modeWhere != 0) {
|
||||
Static115.method2312(arg0.substring(6).parseInt());
|
||||
}
|
||||
if (arg0.equalsIgnoreCase(Cheat.aClass100_990)) {
|
||||
throw new RuntimeException();
|
||||
}
|
||||
if (arg0.startsWith(Cheat.aClass100_232)) {
|
||||
Static199.rectDebug = arg0.substring(12).trim().parseInt();
|
||||
Chat.add(null, 0, JagString.concatenate(new JagString[] { Static276.aClass100_1096, Static123.parseInt(Static199.rectDebug) }));
|
||||
}
|
||||
if (arg0.equalsIgnoreCase(Static181.aClass100_810)) {
|
||||
Static121.aBoolean154 = true;
|
||||
}
|
||||
if (arg0.equalsIgnoreCase(Static124.aClass100_596)) {
|
||||
if (Static204.applyTweening) {
|
||||
Static204.applyTweening = false;
|
||||
Chat.add(null, 0, Cheat.aClass100_943);
|
||||
} else {
|
||||
Static204.applyTweening = true;
|
||||
Chat.add(null, 0, Static50.aClass100_362);
|
||||
}
|
||||
}
|
||||
if (arg0.equalsIgnoreCase(Static114.aClass100_1099)) {
|
||||
if (Static172.shiftClick) {
|
||||
Static154.aClass100_736.method3129();
|
||||
Static172.shiftClick = false;
|
||||
} else {
|
||||
Cheat.aClass100_333.method3129();
|
||||
Static172.shiftClick = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Protocol.outboundBuffer.p1isaac(44);
|
||||
Protocol.outboundBuffer.p1(arg0.length() - 1);
|
||||
Protocol.outboundBuffer.pjstr(arg0.substring(2));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue