diff --git a/client/src/main/java/rt4/Camera.java b/client/src/main/java/rt4/Camera.java index bf0c7de..5fbb8be 100644 --- a/client/src/main/java/rt4/Camera.java +++ b/client/src/main/java/rt4/Camera.java @@ -1,9 +1,12 @@ package rt4; +import org.openrs2.deob.annotation.OriginalArg; import org.openrs2.deob.annotation.OriginalMember; import org.openrs2.deob.annotation.Pc; public class Camera { + @OriginalMember(owner = "client!id", name = "d", descriptor = "[[[I") + public static final int[][][] anIntArrayArrayArray9 = new int[2][][]; @OriginalMember(owner = "client!fl", name = "s", descriptor = "I") public static double pitchTarget = 128; @@ -17,6 +20,30 @@ public class Camera { public static int cameraZ; @OriginalMember(owner = "client!gg", name = "bb", descriptor = "I") public static int cameraX; + @OriginalMember(owner = "client!tg", name = "b", descriptor = "I") + public static int cameraPitch; + @OriginalMember(owner = "client!ol", name = "ib", descriptor = "I") + public static int cameraYaw; + @OriginalMember(owner = "client!sg", name = "o", descriptor = "I") + public static int cameraType; + @OriginalMember(owner = "client!g", name = "d", descriptor = "I") + public static int anInt2119 = 0; + @OriginalMember(owner = "client!eb", name = "t", descriptor = "I") + public static int anInt1694 = -1; + @OriginalMember(owner = "client!j", name = "K", descriptor = "I") + public static int anInt5843 = 0; + @OriginalMember(owner = "client!sh", name = "c", descriptor = "I") + public static int anInt5101 = 0; + @OriginalMember(owner = "client!t", name = "z", descriptor = "I") + public static int anInt5224 = 0; + @OriginalMember(owner = "client!k", name = "i", descriptor = "I") + public static int anInt3125 = 0; + @OriginalMember(owner = "client!me", name = "k", descriptor = "I") + public static int anInt3718 = -1; + @OriginalMember(owner = "client!lc", name = "n", descriptor = "I") + public static int originZ; + @OriginalMember(owner = "client!se", name = "a", descriptor = "I") + public static int originX; public static double mod(double a, double b) { return ((a % b) + b) % b; @@ -126,19 +153,19 @@ public class Camera { local268 = 383; } @Pc(292) int local292 = (int) (-325.949D * Math.atan2((double) local246, (double) local241)) & 0x7FF; - if (Static240.cameraPitch < local268) { - Static240.cameraPitch += Static133.anInt5230 + Static233.anInt5217 * (local268 - Static240.cameraPitch) / 1000; - if (Static240.cameraPitch > local268) { - Static240.cameraPitch = local268; + if (cameraPitch < local268) { + cameraPitch += Static133.anInt5230 + Static233.anInt5217 * (local268 - cameraPitch) / 1000; + if (cameraPitch > local268) { + cameraPitch = local268; } } - if (Static240.cameraPitch > local268) { - Static240.cameraPitch -= (Static240.cameraPitch - local268) * Static233.anInt5217 / 1000 + Static133.anInt5230; - if (Static240.cameraPitch < local268) { - Static240.cameraPitch = local268; + if (cameraPitch > local268) { + cameraPitch -= (cameraPitch - local268) * Static233.anInt5217 / 1000 + Static133.anInt5230; + if (cameraPitch < local268) { + cameraPitch = local268; } } - @Pc(350) int local350 = local292 - Static184.cameraYaw; + @Pc(350) int local350 = local292 - cameraYaw; if (local350 > 1024) { local350 -= 2048; } @@ -146,14 +173,14 @@ public class Camera { local350 += 2048; } if (local350 > 0) { - Static184.cameraYaw += local350 * Static233.anInt5217 / 1000 + Static133.anInt5230; - Static184.cameraYaw &= 0x7FF; + cameraYaw += local350 * Static233.anInt5217 / 1000 + Static133.anInt5230; + cameraYaw &= 0x7FF; } if (local350 < 0) { - Static184.cameraYaw -= Static233.anInt5217 * -local350 / 1000 + Static133.anInt5230; - Static184.cameraYaw &= 0x7FF; + cameraYaw -= Static233.anInt5217 * -local350 / 1000 + Static133.anInt5230; + cameraYaw &= 0x7FF; } - @Pc(404) int local404 = local292 - Static184.cameraYaw; + @Pc(404) int local404 = local292 - cameraYaw; if (local404 > 1024) { local404 -= 2048; } @@ -161,20 +188,20 @@ public class Camera { local404 += 2048; } if (local404 < 0 && local350 > 0 || local404 > 0 && local350 < 0) { - Static184.cameraYaw = local292; + cameraYaw = local292; } } @OriginalMember(owner = "client!da", name = "d", descriptor = "(I)V") public static void updateLoginScreenCamera() { - if (Static155.anInt3718 == -1 || Static52.anInt1694 == -1) { + if (anInt3718 == -1 || anInt1694 == -1) { return; } - @Pc(27) int local27 = (Static233.anInt5224 * (Static114.anInt5843 - Static228.anInt5101) >> 16) + Static228.anInt5101; + @Pc(27) int local27 = (anInt5224 * (anInt5843 - anInt5101) >> 16) + anInt5101; @Pc(30) float[] renderCoordinates = new float[3]; - Static233.anInt5224 += local27; - if (Static233.anInt5224 >= 65535) { - Static233.anInt5224 = 65535; + anInt5224 += local27; + if (anInt5224 >= 65535) { + anInt5224 = 65535; if (Static186.aBoolean205) { Static13.aBoolean16 = false; } else { @@ -185,8 +212,8 @@ public class Camera { Static186.aBoolean205 = false; Static13.aBoolean16 = false; } - @Pc(66) float local66 = (float) Static233.anInt5224 / 65535.0F; - @Pc(70) int local70 = Static127.anInt3125 * 2; + @Pc(66) float local66 = (float) anInt5224 / 65535.0F; + @Pc(70) int local70 = anInt3125 * 2; @Pc(141) int local141; @Pc(131) int local131; @Pc(111) int local111; @@ -195,28 +222,28 @@ public class Camera { @Pc(155) int local155; @Pc(173) int local173; for (@Pc(72) int local72 = 0; local72 < 3; local72++) { - local111 = (Static107.anIntArrayArrayArray9[Static155.anInt3718][local70 + 2][local72] + Static107.anIntArrayArrayArray9[Static155.anInt3718][local70 + 2][local72] - Static107.anIntArrayArrayArray9[Static155.anInt3718][local70 + 3][local72]) * 3; - local119 = Static107.anIntArrayArrayArray9[Static155.anInt3718][local70][local72]; - local131 = Static107.anIntArrayArrayArray9[Static155.anInt3718][local70 + 1][local72] * 3; - local141 = Static107.anIntArrayArrayArray9[Static155.anInt3718][local70][local72] * 3; + local111 = (anIntArrayArrayArray9[anInt3718][local70 + 2][local72] + anIntArrayArrayArray9[anInt3718][local70 + 2][local72] - anIntArrayArrayArray9[anInt3718][local70 + 3][local72]) * 3; + local119 = anIntArrayArrayArray9[anInt3718][local70][local72]; + local131 = anIntArrayArrayArray9[anInt3718][local70 + 1][local72] * 3; + local141 = anIntArrayArrayArray9[anInt3718][local70][local72] * 3; local146 = local131 - local141; local155 = local111 + local141 - local131 * 2; - local173 = Static107.anIntArrayArrayArray9[Static155.anInt3718][local70 + 2][local72] + local131 - local119 - local111; + local173 = anIntArrayArrayArray9[anInt3718][local70 + 2][local72] + local131 - local119 - local111; renderCoordinates[local72] = (float) local119 + (((float) local173 * local66 + (float) local155) * local66 + (float) local146) * local66; } Static5.anInt40 = (int) renderCoordinates[1] * -1; - Static138.renderX = (int) renderCoordinates[0] - Static225.originX * 128; - Static134.renderZ = (int) renderCoordinates[2] - Static142.originZ * 128; + Static138.renderX = (int) renderCoordinates[0] - originX * 128; + Static134.renderZ = (int) renderCoordinates[2] - originZ * 128; @Pc(226) float[] local226 = new float[3]; - local141 = Static75.anInt2119 * 2; + local141 = anInt2119 * 2; for (local131 = 0; local131 < 3; local131++) { - local111 = Static107.anIntArrayArrayArray9[Static52.anInt1694][local141][local131] * 3; - local146 = (Static107.anIntArrayArrayArray9[Static52.anInt1694][local141 + 2][local131] + Static107.anIntArrayArrayArray9[Static52.anInt1694][local141 + 2][local131] - Static107.anIntArrayArrayArray9[Static52.anInt1694][local141 + 3][local131]) * 3; - local155 = Static107.anIntArrayArrayArray9[Static52.anInt1694][local141][local131]; - local119 = Static107.anIntArrayArrayArray9[Static52.anInt1694][local141 + 1][local131] * 3; + local111 = anIntArrayArrayArray9[anInt1694][local141][local131] * 3; + local146 = (anIntArrayArrayArray9[anInt1694][local141 + 2][local131] + anIntArrayArrayArray9[anInt1694][local141 + 2][local131] - anIntArrayArrayArray9[anInt1694][local141 + 3][local131]) * 3; + local155 = anIntArrayArrayArray9[anInt1694][local141][local131]; + local119 = anIntArrayArrayArray9[anInt1694][local141 + 1][local131] * 3; local173 = local119 - local111; @Pc(313) int local313 = local146 + local111 - local119 * 2; - @Pc(331) int local331 = Static107.anIntArrayArrayArray9[Static52.anInt1694][local141 + 2][local131] + local119 - local146 - local155; + @Pc(331) int local331 = anIntArrayArrayArray9[anInt1694][local141 + 2][local131] + local119 - local146 - local155; local226[local131] = (float) local155 + local66 * (local66 * (local66 * (float) local331 + (float) local313) + (float) local173); } @Pc(363) float local363 = local226[0] - renderCoordinates[0]; @@ -225,7 +252,61 @@ public class Camera { @Pc(392) double local392 = Math.sqrt((double) (local371 * local371 + local363 * local363)); Static146.aFloat15 = (float) Math.atan2((double) local382, local392); Static84.aFloat10 = -((float) Math.atan2((double) local363, (double) local371)); - Static240.cameraPitch = (int) ((double) Static146.aFloat15 * 325.949D) & 0x7FF; - Static184.cameraYaw = (int) ((double) Static84.aFloat10 * 325.949D) & 0x7FF; + cameraPitch = (int) ((double) Static146.aFloat15 * 325.949D) & 0x7FF; + cameraYaw = (int) ((double) Static84.aFloat10 * 325.949D) & 0x7FF; + } + + @OriginalMember(owner = "client!vd", name = "a", descriptor = "(IIIIBI)V") + public static void method3849(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(5) int arg4) { + Static133.anInt5230 = arg2; + Static265.anInt5765 = arg1; + Static233.anInt5217 = arg4; + Static251.anInt5449 = arg3; + Static260.anInt1744 = arg0; + if (Static233.anInt5217 >= 100) { + @Pc(30) int local30 = Static251.anInt5449 * 128 + 64; + @Pc(36) int local36 = Static265.anInt5765 * 128 + 64; + @Pc(44) int local44 = SceneGraph.getTileHeight(Player.level, local30, local36) - Static260.anInt1744; + @Pc(49) int local49 = local44 - Static5.anInt40; + @Pc(54) int local54 = local30 - Static138.renderX; + @Pc(59) int local59 = local36 - Static134.renderZ; + @Pc(70) int local70 = (int) Math.sqrt((double) (local59 * local59 + local54 * local54)); + cameraPitch = (int) (Math.atan2((double) local49, (double) local70) * 325.949D) & 0x7FF; + cameraYaw = (int) (Math.atan2((double) local54, (double) local59) * -325.949D) & 0x7FF; + if (cameraPitch < 128) { + cameraPitch = 128; + } + if (cameraPitch > 383) { + cameraPitch = 383; + } + } + cameraType = 2; + } + + @OriginalMember(owner = "client!lb", name = "a", descriptor = "(ZIIIBII)V") + public static void method2722(@OriginalArg(0) boolean arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(5) int arg4, @OriginalArg(6) int arg5) { + Static113.anInt4612 = arg3; + Static231.anInt5203 = arg2; + Static245.anInt5375 = arg5; + Static233.anInt5225 = arg1; + Static248.anInt4232 = arg4; + if (arg0 && Static113.anInt4612 >= 100) { + Static138.renderX = Static245.anInt5375 * 128 + 64; + Static134.renderZ = Static248.anInt4232 * 128 + 64; + Static5.anInt40 = SceneGraph.getTileHeight(Player.level, Static138.renderX, Static134.renderZ) - Static231.anInt5203; + } + cameraType = 2; + } + + @OriginalMember(owner = "client!cl", name = "e", descriptor = "(I)V") + public static void resetCameraEffects() { + for (@Pc(3) int local3 = 0; local3 < 5; local3++) { + Static176.customCameraActive[local3] = false; + } + Static133.anInt5230 = 0; + Static233.anInt5217 = 0; + anInt3718 = -1; + anInt1694 = -1; + cameraType = 1; } } diff --git a/client/src/main/java/rt4/ClientProt.java b/client/src/main/java/rt4/ClientProt.java index d0682b8..ac4996c 100644 --- a/client/src/main/java/rt4/ClientProt.java +++ b/client/src/main/java/rt4/ClientProt.java @@ -102,8 +102,8 @@ public class ClientProt { Protocol.outboundBuffer.p1(local13 + local13 + 3); } Protocol.outboundBuffer.p1a(Keyboard.pressedKeys[Keyboard.KEY_CTRL] ? 1 : 0); - Protocol.outboundBuffer.p2(Static225.originX + local23); - Protocol.outboundBuffer.p2add(Static142.originZ + local27); + Protocol.outboundBuffer.p2(Camera.originX + local23); + Protocol.outboundBuffer.p2add(Camera.originZ + local27); Static84.anInt2255 = PathFinder.queueZ[0]; Static115.mapFlagX = PathFinder.queueX[0]; for (@Pc(126) int local126 = 1; local126 < local13; local126++) { @@ -160,21 +160,6 @@ public class ClientProt { } } - @OriginalMember(owner = "client!gd", name = "a", descriptor = "(JI)V") - public static void method1691(@OriginalArg(0) long name) { - Protocol.outboundBuffer.offset = 0; - Protocol.outboundBuffer.p1(186); - if (GlobalConfig.LOGIN_USE_STRINGS) { - Protocol.outboundBuffer.pjstr(Base37.decode37(name)); - } else { - Protocol.outboundBuffer.p8(name); - } - CreateManager.step = 1; - CreateManager.loops = 0; - CreateManager.errors = 0; - CreateManager.reply = -3; - } - @OriginalMember(owner = "client!gd", name = "c", descriptor = "(I)V") public static void rebuildMap() { ping(false); @@ -246,8 +231,8 @@ public class ClientProt { for (id = 0; id < Static273.mapFilesBuffer.length; id++) { @Pc(294) byte[] local294 = Static156.locationMapFilesBuffer[id]; if (local294 != null) { - chunkZ = (Static238.regionBitPacked[id] & 0xFF) * 64 - Static142.originZ; - chunkX = (Static238.regionBitPacked[id] >> 8) * 64 - Static225.originX; + chunkZ = (Static238.regionBitPacked[id] & 0xFF) * 64 - Camera.originZ; + chunkX = (Static238.regionBitPacked[id] >> 8) * 64 - Camera.originX; if (Static230.dynamicMapRegion) { chunkZ = 10; chunkX = 10; @@ -257,8 +242,8 @@ public class ClientProt { if (GlRenderer.enabled) { local294 = Static19.underWaterLocationsMapFilesBuffer[id]; if (local294 != null) { - chunkX = (Static238.regionBitPacked[id] >> 8) * 64 - Static225.originX; - chunkZ = (Static238.regionBitPacked[id] & 0xFF) * 64 - Static142.originZ; + chunkX = (Static238.regionBitPacked[id] >> 8) * 64 - Camera.originX; + chunkZ = (Static238.regionBitPacked[id] & 0xFF) * 64 - Camera.originZ; if (Static230.dynamicMapRegion) { chunkZ = 10; chunkX = 10; diff --git a/client/src/main/java/rt4/Component.java b/client/src/main/java/rt4/Component.java index 90b8b08..283bb54 100644 --- a/client/src/main/java/rt4/Component.java +++ b/client/src/main/java/rt4/Component.java @@ -225,7 +225,7 @@ public final class Component { public boolean modelOrtho = false; @OriginalMember(owner = "client!be", name = "zb", descriptor = "Z") - public boolean aBoolean30 = false; + public boolean filled = false; @OriginalMember(owner = "client!be", name = "y", descriptor = "I") public int dragDeadtime = 0; @@ -669,7 +669,7 @@ public final class Component { } } if (this.type == 3) { - this.aBoolean30 = arg0.g1() == 1; + this.filled = arg0.g1() == 1; } if (this.type == 4 || this.type == 1) { this.anInt460 = arg0.g1(); @@ -1075,7 +1075,7 @@ public final class Component { } if (this.type == 3) { this.color = buffer.g4(); - this.aBoolean30 = buffer.g1() == 1; + this.filled = buffer.g1() == 1; this.alpha = buffer.g1(); } if (this.type == 9) { diff --git a/client/src/main/java/rt4/CreateManager.java b/client/src/main/java/rt4/CreateManager.java index 40b631b..7d33f8a 100644 --- a/client/src/main/java/rt4/CreateManager.java +++ b/client/src/main/java/rt4/CreateManager.java @@ -1,5 +1,6 @@ package rt4; +import org.openrs2.deob.annotation.OriginalArg; import org.openrs2.deob.annotation.OriginalMember; import org.openrs2.deob.annotation.Pc; @@ -122,4 +123,65 @@ public class CreateManager { } } } + + @OriginalMember(owner = "client!gd", name = "a", descriptor = "(JI)V") + public static void method1691(@OriginalArg(0) long name) { + Protocol.outboundBuffer.offset = 0; + Protocol.outboundBuffer.p1(186); + if (GlobalConfig.LOGIN_USE_STRINGS) { + Protocol.outboundBuffer.pjstr(Base37.decode37(name)); + } else { + Protocol.outboundBuffer.p8(name); + } + step = 1; + loops = 0; + errors = 0; + reply = -3; + } + + @OriginalMember(owner = "client!jl", name = "a", descriptor = "(IIIII)V") + public static void method2448(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3) { + Protocol.outboundBuffer.offset = 0; + Protocol.outboundBuffer.p1(147); + Protocol.outboundBuffer.p1(arg2); + Protocol.outboundBuffer.p1(arg3); + Protocol.outboundBuffer.p2(arg0); + Protocol.outboundBuffer.p2(arg1); + loops = 0; + errors = 0; + step = 1; + reply = -3; + } + + @OriginalMember(owner = "client!da", name = "a", descriptor = "(IIIILclient!na;JI)V") + public static void method1016(@OriginalArg(0) int arg0, @OriginalArg(2) int arg1, @OriginalArg(3) int arg2, @OriginalArg(4) JagString password, @OriginalArg(5) long name, @OriginalArg(6) int arg5) { + @Pc(8) Buffer local8 = new Buffer(GlobalConfig.LOGIN_USE_STRINGS ? 129 : 128); + local8.p1(10); + local8.p2((int) (Math.random() * 99999.0D)); + local8.p2(530); + if (GlobalConfig.LOGIN_USE_STRINGS) { + local8.pjstr(Base37.decode37(name)); + } else { + local8.p8(name); + } + local8.p4((int) (Math.random() * 9.9999999E7D)); + local8.pjstr(password); + local8.p4((int) (Math.random() * 9.9999999E7D)); + local8.p2(client.affiliate); + local8.p1(arg0); + local8.p1(arg2); + local8.p4((int) (Math.random() * 9.9999999E7D)); + local8.p2(arg5); + local8.p2(arg1); + local8.p4((int) (Math.random() * 9.9999999E7D)); + local8.encryptRsa(GlobalConfig.RSA_EXPONENT, GlobalConfig.RSA_MODULUS); + Protocol.outboundBuffer.offset = 0; + Protocol.outboundBuffer.p1(36); + Protocol.outboundBuffer.p1(local8.offset); + Protocol.outboundBuffer.pBytes(local8.data, local8.offset); + reply = -3; + step = 1; + loops = 0; + errors = 0; + } } diff --git a/client/src/main/java/rt4/LoginManager.java b/client/src/main/java/rt4/LoginManager.java index 4beb699..8448b6e 100644 --- a/client/src/main/java/rt4/LoginManager.java +++ b/client/src/main/java/rt4/LoginManager.java @@ -497,8 +497,8 @@ public class LoginManager { @OriginalMember(owner = "client!ca", name = "h", descriptor = "(I)V") public static void setupLoadingScreenRegion() { - @Pc(10) int local10 = (Static138.renderX >> 10) + (Static225.originX >> 3); - @Pc(23) int local23 = (Static134.renderZ >> 10) + (Static142.originZ >> 3); + @Pc(10) int local10 = (Static138.renderX >> 10) + (Camera.originX >> 3); + @Pc(23) int local23 = (Static134.renderZ >> 10) + (Camera.originZ >> 3); Static156.locationMapFilesBuffer = new byte[18][]; Static35.underWaterLocationsMapFileIds = new int[18]; Static191.npcSpawnsFilesBuffer = new byte[18][]; diff --git a/client/src/main/java/rt4/MiniMap.java b/client/src/main/java/rt4/MiniMap.java index 8ce599f..7c65647 100644 --- a/client/src/main/java/rt4/MiniMap.java +++ b/client/src/main/java/rt4/MiniMap.java @@ -236,12 +236,12 @@ public class MiniMap { if (Static235.mapElementList != null) { for (@Pc(117) int local117 = 0; local117 < Static235.mapElementList.anInt5074; local117++) { if (Static235.mapElementList.method3892(local117)) { - local146 = (Static235.mapElementList.aShortArray73[local117] - Static225.originX) * 4 + 2 - PlayerList.self.xFine / 32; + local146 = (Static235.mapElementList.aShortArray73[local117] - Camera.originX) * 4 + 2 - PlayerList.self.xFine / 32; local150 = MathUtils.sin[local48]; local154 = MathUtils.cos[local48]; @Pc(156) Font local156 = Fonts.p11Full; @Pc(164) int local164 = local150 * 256 / (anInt4130 + 256); - local181 = (Static235.mapElementList.aShortArray72[local117] - Static142.originZ) * 4 + 2 - PlayerList.self.zFine / 32; + local181 = (Static235.mapElementList.aShortArray72[local117] - Camera.originZ) * 4 + 2 - PlayerList.self.zFine / 32; @Pc(189) int local189 = local154 * 256 / (anInt4130 + 256); local200 = local181 * local189 - local146 * local164 >> 16; if (Static235.mapElementList.method3894(local117) == 1) { @@ -361,8 +361,8 @@ public class MiniMap { } } if (local770.type == 2) { - local154 = (local770.targetX - Static225.originX) * 4 + 2 - PlayerList.self.xFine / 32; - local231 = (-Static142.originZ + local770.anInt4046) * 4 + 2 - PlayerList.self.zFine / 32; + local154 = (local770.targetX - Camera.originX) * 4 + 2 - PlayerList.self.xFine / 32; + local231 = (-Camera.originZ + local770.anInt4046) * 4 + 2 - PlayerList.self.zFine / 32; Static97.method1960(local770.anInt4048, arg1, arg2, local154, local231, arg3); } if (local770.type == 10 && local770.actorTargetId >= 0 && PlayerList.players.length > local770.actorTargetId) { diff --git a/client/src/main/java/rt4/MiniMenu.java b/client/src/main/java/rt4/MiniMenu.java index 0eeb416..28848ee 100644 --- a/client/src/main/java/rt4/MiniMenu.java +++ b/client/src/main/java/rt4/MiniMenu.java @@ -347,8 +347,8 @@ public class MiniMenu { if (local23 == 46) { PathFinder.findPathToLoc(local31, local19, local15); Protocol.outboundBuffer.p1isaac(247); - Protocol.outboundBuffer.p2le(Static142.originZ + local19); - Protocol.outboundBuffer.p2leadd(local15 + Static225.originX); + Protocol.outboundBuffer.p2le(Camera.originZ + local19); + Protocol.outboundBuffer.p2leadd(local15 + Camera.originX); Protocol.outboundBuffer.p2(Integer.MAX_VALUE & (int) (local31 >>> 32)); } if (local23 == 40) { @@ -412,9 +412,9 @@ public class MiniMenu { if (local23 == 42) { PathFinder.findPathToLoc(local31, local19, local15); Protocol.outboundBuffer.p1isaac(254); - Protocol.outboundBuffer.p2le(local15 + Static225.originX); + Protocol.outboundBuffer.p2le(local15 + Camera.originX); Protocol.outboundBuffer.p2add((int) (local31 >>> 32) & Integer.MAX_VALUE); - Protocol.outboundBuffer.p2(local19 + Static142.originZ); + Protocol.outboundBuffer.p2(local19 + Camera.originZ); } if (local23 == 28) { ClientProt.method2909(); @@ -448,16 +448,16 @@ public class MiniMenu { Cross.type = 2; Cross.y = Mouse.clickY; Protocol.outboundBuffer.p1isaac(66); - Protocol.outboundBuffer.p2le(Static225.originX + local15); + Protocol.outboundBuffer.p2le(Camera.originX + local15); Protocol.outboundBuffer.p2(local36); - Protocol.outboundBuffer.p2leadd(local19 + Static142.originZ); + Protocol.outboundBuffer.p2leadd(local19 + Camera.originZ); } if (local23 == 1001) { PathFinder.findPathToLoc(local31, local19, local15); Protocol.outboundBuffer.p1isaac(170); Protocol.outboundBuffer.p2leadd(Integer.MAX_VALUE & (int) (local31 >>> 32)); - Protocol.outboundBuffer.p2leadd(local15 + Static225.originX); - Protocol.outboundBuffer.p2leadd(local19 + Static142.originZ); + Protocol.outboundBuffer.p2leadd(local15 + Camera.originX); + Protocol.outboundBuffer.p2leadd(local19 + Camera.originZ); } if (local23 == 1002) { Cross.type = 2; @@ -485,7 +485,7 @@ public class MiniMenu { method3556(Player.level, local15, local19); } else if (local36 == 1) { if (LoginManager.staffModLevel > 0 && Keyboard.pressedKeys[Keyboard.KEY_CTRL] && Keyboard.pressedKeys[Keyboard.KEY_SHIFT]) { - Cheat.teleport(Static225.originX + local15, Static142.originZ + local19, Player.level); + Cheat.teleport(Camera.originX + local15, Camera.originZ + local19, Player.level); } else if (PathFinder.findPath(PlayerList.self.movementQueueZ[0], 0, 0, true, 0, local15, 0, 0, 1, local19, PlayerList.self.movementQueueX[0])) { Protocol.outboundBuffer.p1(Static1.anInt5); Protocol.outboundBuffer.p1(Static107.anInt2878); @@ -559,8 +559,8 @@ public class MiniMenu { PathFinder.findPathToLoc(local31, local19, local15); Protocol.outboundBuffer.p1isaac(84); Protocol.outboundBuffer.p2leadd(Integer.MAX_VALUE & (int) (local31 >>> 32)); - Protocol.outboundBuffer.p2leadd(Static142.originZ + local19); - Protocol.outboundBuffer.p2le(local15 + Static225.originX); + Protocol.outboundBuffer.p2leadd(Camera.originZ + local19); + Protocol.outboundBuffer.p2le(local15 + Camera.originX); } if (local23 == 23) { Protocol.outboundBuffer.p1isaac(206); @@ -573,9 +573,9 @@ public class MiniMenu { } if (local23 == 14 && PathFinder.findPathToLoc(local31, local19, local15)) { Protocol.outboundBuffer.p1isaac(134); - Protocol.outboundBuffer.p2add(Static225.originX + local15); + Protocol.outboundBuffer.p2add(Camera.originX + local15); Protocol.outboundBuffer.p2(anInt4997); - Protocol.outboundBuffer.p2le(local19 + Static142.originZ); + Protocol.outboundBuffer.p2le(local19 + Camera.originZ); Protocol.outboundBuffer.p2(Static185.anInt4370); Protocol.outboundBuffer.p4me(Static224.anInt5062); Protocol.outboundBuffer.p2add((int) (local31 >>> 32) & Integer.MAX_VALUE); @@ -619,8 +619,8 @@ public class MiniMenu { Cross.y = Mouse.clickY; Protocol.outboundBuffer.p1isaac(228); Protocol.outboundBuffer.p2(local36); - Protocol.outboundBuffer.p2le(Static225.originX + local15); - Protocol.outboundBuffer.p2leadd(Static142.originZ + local19); + Protocol.outboundBuffer.p2le(Camera.originX + local15); + Protocol.outboundBuffer.p2leadd(Camera.originZ + local19); } if (local23 == 4) { local192 = NpcList.npcs[local36]; @@ -702,8 +702,8 @@ public class MiniMenu { Cross.y = Mouse.clickY; Cross.milliseconds = 0; Protocol.outboundBuffer.p1isaac(109); - Protocol.outboundBuffer.p2le(local19 + Static142.originZ); - Protocol.outboundBuffer.p2(local15 + Static225.originX); + Protocol.outboundBuffer.p2le(local19 + Camera.originZ); + Protocol.outboundBuffer.p2(local15 + Camera.originX); Protocol.outboundBuffer.p2leadd(local36); } if (local23 == 25) { @@ -775,11 +775,11 @@ public class MiniMenu { Cross.y = Mouse.clickY; Cross.type = 2; Protocol.outboundBuffer.p1isaac(101); - Protocol.outboundBuffer.p2leadd(local15 + Static225.originX); + Protocol.outboundBuffer.p2leadd(local15 + Camera.originX); Protocol.outboundBuffer.p2le(Static185.anInt4370); Protocol.outboundBuffer.p2le(anInt4997); Protocol.outboundBuffer.p2le(local36); - Protocol.outboundBuffer.p2leadd(Static142.originZ + local19); + Protocol.outboundBuffer.p2leadd(Camera.originZ + local19); Protocol.outboundBuffer.p4me(Static224.anInt5062); } if (local23 == 1004) { @@ -797,9 +797,9 @@ public class MiniMenu { } else if (local36 == 1) { Protocol.outboundBuffer.p1isaac(131); Protocol.outboundBuffer.p4me(anInt2512); - Protocol.outboundBuffer.p2add(Static225.originX + local15); + Protocol.outboundBuffer.p2add(Camera.originX + local15); Protocol.outboundBuffer.p2leadd(anInt506); - Protocol.outboundBuffer.p2add(local19 + Static142.originZ); + Protocol.outboundBuffer.p2add(local19 + Camera.originZ); } } if (local23 == 8) { @@ -851,14 +851,14 @@ public class MiniMenu { Cross.x = Mouse.clickX; Cross.milliseconds = 0; Protocol.outboundBuffer.p1isaac(48); - Protocol.outboundBuffer.p2add(local15 + Static225.originX); + Protocol.outboundBuffer.p2add(local15 + Camera.originX); Protocol.outboundBuffer.p2leadd(local36); - Protocol.outboundBuffer.p2le(Static142.originZ + local19); + Protocol.outboundBuffer.p2le(Camera.originZ + local19); } if (local23 == 38 && PathFinder.findPathToLoc(local31, local19, local15)) { Protocol.outboundBuffer.p1isaac(233); - Protocol.outboundBuffer.p2leadd(local19 + Static142.originZ); - Protocol.outboundBuffer.p2add(Static225.originX + local15); + Protocol.outboundBuffer.p2leadd(local19 + Camera.originZ); + Protocol.outboundBuffer.p2add(Camera.originX + local15); Protocol.outboundBuffer.p2leadd(anInt506); Protocol.outboundBuffer.p4rme(anInt2512); Protocol.outboundBuffer.p2add((int) (local31 >>> 32) & Integer.MAX_VALUE); @@ -901,8 +901,8 @@ public class MiniMenu { if (local23 == 50) { PathFinder.findPathToLoc(local31, local19, local15); Protocol.outboundBuffer.p1isaac(194); - Protocol.outboundBuffer.p2leadd(local19 + Static142.originZ); - Protocol.outboundBuffer.p2le(Static225.originX + local15); + Protocol.outboundBuffer.p2leadd(local19 + Camera.originZ); + Protocol.outboundBuffer.p2le(Camera.originX + local15); Protocol.outboundBuffer.p2((int) (local31 >>> 32) & Integer.MAX_VALUE); } if (local23 == 48) { @@ -946,9 +946,9 @@ public class MiniMenu { Cross.milliseconds = 0; Protocol.outboundBuffer.p1isaac(73); Protocol.outboundBuffer.p4rme(anInt2512); - Protocol.outboundBuffer.p2(Static142.originZ + local19); + Protocol.outboundBuffer.p2(Camera.originZ + local19); Protocol.outboundBuffer.p2leadd(local36); - Protocol.outboundBuffer.p2leadd(local15 + Static225.originX); + Protocol.outboundBuffer.p2leadd(local15 + Camera.originX); Protocol.outboundBuffer.p2le(anInt506); } if (local23 == 12) { @@ -963,11 +963,11 @@ public class MiniMenu { Static187.anInt4422 = 1; method3556(Player.level, local15, local19); } else if (LoginManager.staffModLevel > 0 && Keyboard.pressedKeys[Keyboard.KEY_CTRL] && Keyboard.pressedKeys[Keyboard.KEY_SHIFT]) { - Cheat.teleport(local15 + Static225.originX, Static142.originZ - -local19, Player.level); + Cheat.teleport(local15 + Camera.originX, Camera.originZ - -local19, Player.level); } else { Protocol.outboundBuffer.p1isaac(179); - Protocol.outboundBuffer.p2(local19 + Static142.originZ); - Protocol.outboundBuffer.p2(local15 + Static225.originX); + Protocol.outboundBuffer.p2(local19 + Camera.originZ); + Protocol.outboundBuffer.p2(local15 + Camera.originX); } } if (local23 == 6) { @@ -997,8 +997,8 @@ public class MiniMenu { Cross.type = 2; Protocol.outboundBuffer.p1isaac(33); Protocol.outboundBuffer.p2(local36); - Protocol.outboundBuffer.p2(Static225.originX + local15); - Protocol.outboundBuffer.p2le(Static142.originZ + local19); + Protocol.outboundBuffer.p2(Camera.originX + local15); + Protocol.outboundBuffer.p2le(Camera.originZ + local19); } if (local23 == 16) { local192 = NpcList.npcs[local36]; diff --git a/client/src/main/java/rt4/NpcList.java b/client/src/main/java/rt4/NpcList.java index acff079..ee702ae 100644 --- a/client/src/main/java/rt4/NpcList.java +++ b/client/src/main/java/rt4/NpcList.java @@ -331,8 +331,8 @@ public class NpcList { } } if ((arg0.faceX != 0 || arg0.faceY != 0) && (arg0.movementQueueSize == 0 || arg0.anInt3417 > 0)) { - local70 = arg0.xFine - (arg0.faceX - Static225.originX - Static225.originX) * 64; - local43 = arg0.zFine - (arg0.faceY - Static142.originZ - Static142.originZ) * 64; + local70 = arg0.xFine - (arg0.faceX - Camera.originX - Camera.originX) * 64; + local43 = arg0.zFine - (arg0.faceY - Camera.originZ - Camera.originZ) * 64; if (local70 != 0 || local43 != 0) { arg0.anInt3400 = (int) (Math.atan2((double) local70, (double) local43) * 325.949D) & 0x7FF; } diff --git a/client/src/main/java/rt4/Player.java b/client/src/main/java/rt4/Player.java index 761701c..24cb8ae 100644 --- a/client/src/main/java/rt4/Player.java +++ b/client/src/main/java/rt4/Player.java @@ -180,8 +180,8 @@ public final class Player extends PathingEntity { @OriginalMember(owner = "client!um", name = "a", descriptor = "(Z)V") public static void setTutorialIsland() { inTutorialIsland = 0; - @Pc(17) int local17 = Static225.originX + (PlayerList.self.xFine >> 7); - @Pc(25) int local25 = (PlayerList.self.zFine >> 7) + Static142.originZ; + @Pc(17) int local17 = Camera.originX + (PlayerList.self.xFine >> 7); + @Pc(25) int local25 = (PlayerList.self.zFine >> 7) + Camera.originZ; if (local17 >= 3053 && local17 <= 3156 && local25 >= 3056 && local25 <= 3136) { inTutorialIsland = 1; } @@ -363,8 +363,8 @@ public final class Player extends PathingEntity { } } if (local245.type == 2) { - @Pc(340) int local340 = (local245.targetX - Static225.originX) * 4 + 2 - PlayerList.self.xFine / 32; - local291 = (local245.anInt4046 - Static142.originZ) * 4 + 2 - PlayerList.self.zFine / 32; + @Pc(340) int local340 = (local245.targetX - Camera.originX) * 4 + 2 - PlayerList.self.xFine / 32; + local291 = (local245.anInt4046 - Camera.originZ) * 4 + 2 - PlayerList.self.zFine / 32; this.method1263(null, local291, local76, local340, arg5, arg9, arg0, arg7, arg4, arg3, arg1, local245.playerModelId, arg2, arg6); } if (local245.type == 10 && local245.actorTargetId >= 0 && PlayerList.players.length > local245.actorTargetId) { diff --git a/client/src/main/java/rt4/PlayerAppearance.java b/client/src/main/java/rt4/PlayerAppearance.java index 5b1b02f..5577bab 100644 --- a/client/src/main/java/rt4/PlayerAppearance.java +++ b/client/src/main/java/rt4/PlayerAppearance.java @@ -141,7 +141,7 @@ public final class PlayerAppearance { } @OriginalMember(owner = "client!hh", name = "a", descriptor = "(ZZ)V") - public final void method1948(@OriginalArg(0) boolean arg0) { + public final void setFemale(@OriginalArg(0) boolean arg0) { this.gender = arg0; this.method1947(); } @@ -172,7 +172,7 @@ public final class PlayerAppearance { } @OriginalMember(owner = "client!hh", name = "a", descriptor = "(IZI)V") - public final void method1951(@OriginalArg(0) int arg0, @OriginalArg(2) int arg1) { + public final void setBaseColor(@OriginalArg(0) int arg0, @OriginalArg(2) int arg1) { this.anIntArray236[arg0] = arg1; this.method1947(); } diff --git a/client/src/main/java/rt4/Protocol.java b/client/src/main/java/rt4/Protocol.java index 5dbf6a3..fe59e6b 100644 --- a/client/src/main/java/rt4/Protocol.java +++ b/client/src/main/java/rt4/Protocol.java @@ -1251,7 +1251,7 @@ public class Protocol { int step = inboundBuffer.g1(); int dur = inboundBuffer.g1(); setVerifyId(tracknum); - Static260.method3849(cy, tz, step, tx, dur); + Camera.method3849(cy, tz, step, tx, dur); opcode = -1; return true; } else if (opcode == ServerProt.IF_SETANIM) { @@ -1364,8 +1364,8 @@ public class Protocol { } } else { int plane = target >> 28 & 0x3; - int posX = (target >> 14 & 0x3FFF) - Static225.originX; - int posZ = (target & 0x3FFF) - Static142.originZ; + int posX = (target >> 14 & 0x3FFF) - Camera.originX; + int posZ = (target & 0x3FFF) - Camera.originZ; if (posX >= 0 && posZ >= 0 && posX < 104 && posZ < 104) { posZ = posZ * 128 + 64; posX = posX * 128 + 64; @@ -1425,9 +1425,9 @@ public class Protocol { setVerifyId(tracknum); Camera.yawTarget = yaw; Camera.pitchTarget = pitch; - if (Static227.cameraType == 2) { - Static240.cameraPitch = (int)Camera.pitchTarget; - Static184.cameraYaw = (int)Camera.yawTarget; + if (Camera.cameraType == 2) { + Camera.cameraPitch = (int)Camera.pitchTarget; + Camera.cameraYaw = (int)Camera.yawTarget; } Camera.clampCameraAngle(); opcode = -1; @@ -1594,7 +1594,7 @@ public class Protocol { int local1146 = inboundBuffer.g1(); int local277 = inboundBuffer.g1(); setVerifyId(tracknum); - Static141.method2722(true, local1146, counter, local277, modelId, local786); + Camera.method2722(true, local1146, counter, local277, modelId, local786); opcode = -1; return true; } else if (opcode == ServerProt.MESSAGE_QUICKCHAT_PRIVATE) { @@ -1886,8 +1886,8 @@ public class Protocol { } int z = pos & 0x3FFF; int x = pos >> 14 & 0x3FFF; - x -= Static225.originX; - z -= Static142.originZ; + x -= Camera.originX; + z -= Camera.originZ; int plane = pos >> 28 & 0x3; Static92.method1881(plane, rotation, type, z, type2, x, seqId); opcode = -1; @@ -2059,7 +2059,7 @@ public class Protocol { } else if (opcode == ServerProt.CAM_RESET) { int tracknum = inboundBuffer.g2(); setVerifyId(tracknum); - Static35.resetCameraEffects(); + Camera.resetCameraEffects(); opcode = -1; return true; } else if (opcode == ServerProt.LOGOUT) { @@ -2307,7 +2307,7 @@ public class Protocol { Static175.method3279(); return true; } catch (@Pc(19) Exception local19) { - @Pc(61) String local61 = "T2 - " + opcode + "," + opcode3 + "," + opcode4 + " - " + length + "," + (Static225.originX + PlayerList.self.movementQueueX[0]) + "," + (PlayerList.self.movementQueueZ[0] + Static142.originZ) + " - "; + @Pc(61) String local61 = "T2 - " + opcode + "," + opcode3 + "," + opcode4 + " - " + length + "," + (Camera.originX + PlayerList.self.movementQueueX[0]) + "," + (PlayerList.self.movementQueueZ[0] + Camera.originZ) + " - "; for (@Pc(63) int local63 = 0; local63 < length && local63 < 50; local63++) { local61 = local61 + inboundBuffer.data[local63] + ","; } @@ -2741,11 +2741,11 @@ public class Protocol { y = 3; } // Cheat - Cheat.teleport(PlayerList.self.movementQueueX[0] + Static225.originX, PlayerList.self.movementQueueZ[0] + Static142.originZ, y); + Cheat.teleport(PlayerList.self.movementQueueX[0] + Camera.originX, PlayerList.self.movementQueueZ[0] + Camera.originZ, y); } if (LoginManager.staffModLevel > 0 && Keyboard.pressedKeys[Keyboard.KEY_CTRL] && Keyboard.pressedKeys[Keyboard.KEY_SHIFT]) { if (MiniMenu.anInt1742 != -1) { - Cheat.teleport(Static225.originX + MiniMenu.anInt1742, Static142.originZ - -MiniMenu.anInt2954, Player.level); + Cheat.teleport(Camera.originX + MiniMenu.anInt1742, Camera.originZ - -MiniMenu.anInt2954, Player.level); } Static187.anInt4422 = 0; Static125.anInt3096 = 0; @@ -2753,9 +2753,9 @@ public class Protocol { if (MiniMenu.anInt1742 != -1) { outboundBuffer.p1isaac(131); outboundBuffer.p4me(MiniMenu.anInt2512); - outboundBuffer.p2add(Static225.originX + MiniMenu.anInt1742); + outboundBuffer.p2add(Camera.originX + MiniMenu.anInt1742); outboundBuffer.p2leadd(MiniMenu.anInt506); - outboundBuffer.p2add(MiniMenu.anInt2954 + Static142.originZ); + outboundBuffer.p2add(MiniMenu.anInt2954 + Camera.originZ); Cross.type = 1; Cross.milliseconds = 0; Cross.y = Mouse.clickY; @@ -2765,8 +2765,8 @@ public class Protocol { } else if (Static187.anInt4422 == 2) { if (MiniMenu.anInt1742 != -1) { outboundBuffer.p1isaac(179); - outboundBuffer.p2(Static142.originZ + MiniMenu.anInt2954); - outboundBuffer.p2(MiniMenu.anInt1742 + Static225.originX); + outboundBuffer.p2(Camera.originZ + MiniMenu.anInt2954); + outboundBuffer.p2(MiniMenu.anInt1742 + Camera.originX); Cross.milliseconds = 0; Cross.type = 1; Cross.x = Mouse.clickX; @@ -2810,9 +2810,9 @@ public class Protocol { InterfaceList.redraw(Static43.aClass13_11); } } - if (Static227.cameraType == 1) { + if (Camera.cameraType == 1) { Static250.method4273(); - } else if (Static227.cameraType == 2) { + } else if (Camera.cameraType == 2) { Camera.updateLockedCamera(); } else { Camera.updateLoginScreenCamera(); diff --git a/client/src/main/java/rt4/ScriptRunner.java b/client/src/main/java/rt4/ScriptRunner.java index 0f05484..4010d26 100644 --- a/client/src/main/java/rt4/ScriptRunner.java +++ b/client/src/main/java/rt4/ScriptRunner.java @@ -40,7 +40,7 @@ public final class ScriptRunner { @OriginalMember(owner = "client!og", name = "g", descriptor = "[Lclient!na;") public static JagString[] stringLocals; - public class Cs2Opcodes { + public static class Cs2Opcodes { // Component setters public static final int setPosition = 1000; public static final int setSize = 1001; @@ -48,6 +48,34 @@ public final class ScriptRunner { public static final int setAspect = 1004; public static final int setNoClickThrough = 1005; + public static final int setScrollPos = 1100; + public static final int setTrans = 1103; + public static final int setLineWid = 1104; + public static final int setSprite = 1105; + public static final int set2DAngle = 1106; + public static final int setSpriteTiling = 1107; + public static final int setModel = 1108; + public static final int set3DRotation = 1109; + public static final int setAnimation = 1110; + public static final int setModelOrthog = 1111; + public static final int setText = 1112; + public static final int setFont = 1113; + public static final int setTextAlignment = 1114; + public static final int setTextAntiMacro = 1115; + public static final int setOutlineThickness = 1116; + public static final int setShadowColor = 1117; + public static final int setVFlip = 1118; + public static final int setHFlip = 1119; + public static final int setScrollMax = 1120; + public static final int setAlpha = 1122; + public static final int set3DViewDistance = 1123; + + public static final int setItem = 1200; + public static final int setNpcHead = 1201; + public static final int setPlayerHead = 1202; + public static final int setPlayerFull = 1204; + public static final int setItemNoNum = 1205; + // Component properties public static final int getX = 1500; public static final int getY = 1501; @@ -98,7 +126,7 @@ public final class ScriptRunner { public static final int formatNumber = 4124; // Objs - public static final int itemIsStackable = 4207; + public static final int itemIsMembers = 4207; public static final int itemAttribute = 4208; public static final int searchItem = 4210; @@ -115,6 +143,219 @@ public final class ScriptRunner { public static final int getFirstWorldData = 6501; public static final int getNextWorldData = 6502; public static final int setWorldHost = 6503; + public static final int setChild = 200; + public static final int setChild2 = 201; + public static final int setBaseIdkit = 403; + public static final int setBaseColor = 404; + public static final int setFemale = 410; + public static final int setRGB = 1101; + public static final int setFilled = 1102; + public static final int setContextMenuOption = 1300; + public static final int setDraggable = 1301; + public static final int setDragRenderBehaviour = 1302; + public static final int setDragDeadZone = 1303; + public static final int setDragDeadTime = 1304; + public static final int setOptionBase = 1305; + public static final int setTargetVerb = 1306; + public static final int hookMousePress = 1400; + public static final int hookDraggedOver = 1401; + public static final int hookMouseRelease = 1402; + public static final int hookMouseEnter = 1403; + public static final int hookMouseExit = 1404; + public static final int hookDragStart = 1405; + public static final int hookUseWith = 1406; + public static final int hookVARP = 1407; + public static final int hookFrame = 1408; + public static final int hookOptionClick = 1409; + public static final int hookDragRelease = 1410; + public static final int hookDrag = 1411; + public static final int hookMouseHover = 1412; + public static final int hookContainer = 1414; + public static final int hookSkill = 1415; + public static final int hookOnUse = 1416; + public static final int hookScroll = 1417; + public static final int hookMsg = 1418; + public static final int hookKey = 1419; + public static final int hookFriendList = 1420; + public static final int hookClanList = 1421; + public static final int hookMiscData = 1422; + public static final int hookDialogAbort = 1423; + public static final int hookWidgetsOpenClose = 1424; + public static final int hookGEUpdate = 1425; + public static final int hookMinimapUnlock = 1426; + public static final int hookResize = 1427; + public static final int hookVARC = 1428; + public static final int hookSTRING = 1429; + public static final int getScrollX = 1600; + public static final int getScrollY = 1601; + public static final int getText = 1602; + public static final int getScrollMaxH = 1603; + public static final int getScrollMaxV = 1604; + public static final int get3DDistance = 1605; + public static final int getRotateX = 1606; + public static final int getRotateZ = 1607; + public static final int getRotateY = 1608; + public static final int getAlpha = 1609; + public static final int getModelXOffset = 1610; + public static final int getModelYOffset = 1611; + public static final int getSpriteId = 1612; + public static final int getItemId = 1700; + public static final int getItemAmt = 1701; + public static final int getChildId = 1702; + public static final int getTargetMask = 1800; + public static final int getOption = 1801; + public static final int getOptionBase = 1802; + public static final int getX2 = 2500; + public static final int getY2 = 2501; + public static final int getWidth2 = 2502; + public static final int getHeight2 = 2503; + public static final int isHidden2 = 2504; + public static final int getLayer2 = 2505; + public static final int getScrollX2 = 2600; + public static final int getScrollY2 = 2601; + public static final int getText2 = 2602; + public static final int getScrollMaxH2 = 2603; + public static final int getScrollMaxV2 = 2604; + public static final int get3DDistance2 = 2605; + public static final int getRotateX2 = 2606; + public static final int getRotateZ2 = 2607; + public static final int getRotateY2 = 2608; + public static final int getAlpha2 = 2609; + public static final int getModelXOffset2 = 2610; + public static final int getModelYOffset2 = 2611; + public static final int getSpriteId2 = 2612; + public static final int getItemId2 = 2700; + public static final int getItemAmt2 = 2701; + public static final int hasChild = 2702; + public static final int nextChild = 2703; + public static final int hasChildModal = 2704; + public static final int hasChildOverlay = 2705; + public static final int getTargetMask2 = 2800; + public static final int getOption2 = 2801; + public static final int getOptionBase2 = 2802; + public static final int msg = 3100; + public static final int animateSelf = 3101; + public static final int sendIntegerInput = 3104; + public static final int sendNameInput = 3105; + public static final int sendStringInput = 3106; + public static final int clickPlayerOption = 3107; + public static final int playSoundEffect = 3200; + public static final int playMusic = 3201; + public static final int playMusicEffect = 3202; + public static final int getClientCycle = 3300; + public static final int getItemIdInSlot = 3301; + public static final int getItemAmtInSlot = 3302; + public static final int getItemAmtInContainer = 3303; + public static final int getItemContainerLength = 3304; + public static final int getSkillCurrentLvl = 3305; + public static final int getSkillActualLvl = 3306; + public static final int getSkillXp = 3307; + public static final int getMyLocation = 3308; + public static final int x = 3309; + public static final int z = 3310; + public static final int y = 3311; + public static final int isMember = 3312; + public static final int getItemIdInInpsectingSlot = 3313; + public static final int getItemAmtInInspectingSlot = 3314; + public static final int getItemAmtInInspectingContainer = 3315; + public static final int getClientRights = 3316; + public static final int getSystemUpdateTimer = 3317; + public static final int getWorldId = 3318; + public static final int getRunEnergy = 3321; + public static final int getPlayerWeight = 3322; + public static final int hasMoreThen5Blackmarks = 3323; + public static final int getBlackmarks = 3324; + public static final int isSiteSettingsMembers = 3325; + public static final int getMyCombat = 3326; + public static final int IsFemale = 3327; + public static final int mapQuickchat = 3329; + public static final int getContainerFreeSlots = 3330; + public static final int getContainerIntAttrCountIgnoreStacks = 3331; + public static final int getContainerIntAttrCount = 3332; + public static final int getLoginTypeRelatedMethod3333 = 3333; + public static final int getLanguage = 3335; + public static final int moveCoord = 3336; + public static final int getAffid = 3337; + public static final int datamap = 3400; + public static final int datamap2 = 3408; + public static final int datamapContainsValue = 3409; + public static final int datamapContainsValue2 = 3410; + public static final int datamapSize = 3411; + public static final int getFriendCount = 3600; + public static final int getFriendName = 3601; + public static final int getFriendWorld = 3602; + public static final int getFriendRank = 3603; + public static final int isFriend = 3609; + public static final int getFriendWorldName = 3610; + public static final int clanChatDisplayName = 3611; + public static final int clanGetChatCount = 3612; + public static final int clanChatUsername = 3613; + public static final int clanChatUserWorld = 3614; + public static final int clanChatUserRank = 3615; + public static final int getIgnoreCount = 3621; + public static final int getIgnoreName = 3622; + public static final int getGEIsSelling = 3903; + public static final int getGEItem = 3904; + public static final int getGEItemPrice = 3905; + public static final int getGEItemAmt = 3906; + public static final int getGEItemAmtTransfered = 3907; + public static final int getGECashTransfered = 3908; + public static final int getGENotStarted = 3910; + public static final int getGEIsStatus2 = 3911; + public static final int getGEIsDone = 3912; + public static final int getGEIsStatus1 = 3913; + public static final int add = 4000; + public static final int subtract = 4001; + public static final int multiply = 4002; + public static final int divide = 4003; + public static final int rndExcl = 4004; + public static final int rnd = 4005; + public static final int getItemName = 4200; + public static final int getItemGroundOption = 4201; + public static final int getItemOption = 4202; + public static final int getItemValue = 4203; + public static final int itemIsStackable = 4204; + public static final int getNotedItem = 4205; + public static final int getRealItem = 4206; + public static final int nextSearchResult = 4211; + public static final int getNpcAttribute = 4300; + public static final int getTradeSetting = 5016; + public static final int isHoldingAlt = 5100; + public static final int isHoldingCtrl = 5101; + public static final int isHoldingShift = 5102; + public static final int setWorldmapZoom = 5200; + public static final int getWorldmapZoom = 5201; + public static final int loadDungeonmap = 5205; + public static final int getDungeonmap = 5206; + public static final int getDungeonMapName = 5207; + public static final int getDungeonmapCenter = 5210; + public static final int setPositionInMap = 5214; + public static final int dungeonmapContains = 5215; + public static final int getMapDefaultZoom = 5218; + public static final int getDisplayMode = 5306; + public static final int getLastIp5419 = 5419; + public static final int cameraMoveTo = 5500; + public static final int cameraPointAt = 5501; + public static final int cameraUnlock = 5503; + public static final int cameraGetVrot = 5505; + public static final int cameraGetHrot = 5506; + public static final int directlogin = 5600; + public static final int sendRequestAccount = 5604; + public static final int sendCreateAccount = 5605; + public static final int getGameloginRc = 5607; + public static final int getWorldswitchTimer = 5608; + public static final int getAccountCreateRC = 5609; + public static final int getDetailedRC = 5611; + public static final int getMinute = 6300; + public static final int getCurrentDaysSinceLaunch = 6301; + public static final int getDaysSinceLaunch = 6302; + public static final int getYear = 6303; + public static final int isLeapYear = 6304; + public static final int setNoOptions = 1307; + public static final int sendCloseWidgetPacket = 3103; + public static final int skipLoginstage10 = 5601; + public static final int resetRCs = 5602; + public static final int resetAccountCreateRC = 5606; } @OriginalMember(owner = "client!h", name = "a", descriptor = "(BILclient!jl;)V") @@ -494,7 +735,7 @@ public final class ScriptRunner { InterfaceList.redraw(component); continue; } - if (opcode == 200) { + if (opcode == Cs2Opcodes.setChild) { isp -= 2; int1 = intStack[isp]; int3 = intStack[isp + 1]; @@ -511,7 +752,7 @@ public final class ScriptRunner { intStack[isp++] = 0; continue; } - if (opcode == 201) { + if (opcode == Cs2Opcodes.setChild2) { isp--; int1 = intStack[isp]; local1204 = InterfaceList.getComponent(int1); @@ -530,7 +771,7 @@ public final class ScriptRunner { } else { @Pc(12388) boolean local12388; if (opcode < 500) { - if (opcode == 403) { + if (opcode == Cs2Opcodes.setBaseIdkit) { isp -= 2; int3 = intStack[isp + 1]; int1 = intStack[isp]; @@ -552,17 +793,17 @@ public final class ScriptRunner { int2++; } } - if (opcode == 404) { + if (opcode == Cs2Opcodes.setBaseColor) { isp -= 2; int1 = intStack[isp]; int3 = intStack[isp + 1]; - PlayerList.self.appearance.method1951(int1, int3); + PlayerList.self.appearance.setBaseColor(int1, int3); continue; } - if (opcode == 410) { + if (opcode == Cs2Opcodes.setFemale) { isp--; local12388 = intStack[isp] != 0; - PlayerList.self.appearance.method1948(local12388); + PlayerList.self.appearance.setFemale(local12388); continue; } } else { @@ -577,7 +818,7 @@ public final class ScriptRunner { isp--; component = InterfaceList.getComponent(intStack[isp]); } - if (opcode == 1100) { + if (opcode == Cs2Opcodes.setScrollPos) { isp -= 2; component.scrollX = intStack[isp]; if (component.scrollX > component.scrollMaxH - component.width) { @@ -599,7 +840,7 @@ public final class ScriptRunner { } continue; } - if (opcode == 1101) { + if (opcode == Cs2Opcodes.setRGB) { isp--; component.color = intStack[isp]; InterfaceList.redraw(component); @@ -608,43 +849,43 @@ public final class ScriptRunner { } continue; } - if (opcode == 1102) { + if (opcode == Cs2Opcodes.setFilled) { isp--; - component.aBoolean30 = intStack[isp] == 1; + component.filled = intStack[isp] == 1; InterfaceList.redraw(component); continue; } - if (opcode == 1103) { + if (opcode == Cs2Opcodes.setTrans) { isp--; component.alpha = intStack[isp]; InterfaceList.redraw(component); continue; } - if (opcode == 1104) { + if (opcode == Cs2Opcodes.setLineWid) { isp--; component.lineWidth = intStack[isp]; InterfaceList.redraw(component); continue; } - if (opcode == 1105) { + if (opcode == Cs2Opcodes.setSprite) { isp--; component.spriteId = intStack[isp]; InterfaceList.redraw(component); continue; } - if (opcode == 1106) { + if (opcode == Cs2Opcodes.set2DAngle) { isp--; component.angle2d = intStack[isp]; InterfaceList.redraw(component); continue; } - if (opcode == 1107) { + if (opcode == Cs2Opcodes.setSpriteTiling) { isp--; component.spriteTiling = intStack[isp] == 1; InterfaceList.redraw(component); continue; } - if (opcode == 1108) { + if (opcode == Cs2Opcodes.setModel) { component.modelType = 1; isp--; component.modelId = intStack[isp]; @@ -654,7 +895,7 @@ public final class ScriptRunner { } continue; } - if (opcode == 1109) { + if (opcode == Cs2Opcodes.set3DRotation) { isp -= 6; component.modelXOffset = intStack[isp]; component.modelZOffset = intStack[isp + 1]; @@ -669,7 +910,7 @@ public final class ScriptRunner { } continue; } - if (opcode == 1110) { + if (opcode == Cs2Opcodes.setAnimation) { isp--; int3 = intStack[isp]; if (component.modelSeqId != int3) { @@ -684,13 +925,13 @@ public final class ScriptRunner { } continue; } - if (opcode == 1111) { + if (opcode == Cs2Opcodes.setModelOrthog) { isp--; component.modelOrtho = intStack[isp] == 1; InterfaceList.redraw(component); continue; } - if (opcode == 1112) { + if (opcode == Cs2Opcodes.setText) { ssp--; local2522 = stringStack[ssp]; if (!local2522.strEquals(component.text)) { @@ -702,13 +943,13 @@ public final class ScriptRunner { } continue; } - if (opcode == 1113) { + if (opcode == Cs2Opcodes.setFont) { isp--; component.font = intStack[isp]; InterfaceList.redraw(component); continue; } - if (opcode == 1114) { + if (opcode == Cs2Opcodes.setTextAlignment) { isp -= 3; component.anInt460 = intStack[isp]; component.anInt478 = intStack[isp + 1]; @@ -716,37 +957,37 @@ public final class ScriptRunner { InterfaceList.redraw(component); continue; } - if (opcode == 1115) { + if (opcode == Cs2Opcodes.setTextAntiMacro) { isp--; component.textAntiMacro = intStack[isp] == 1; InterfaceList.redraw(component); continue; } - if (opcode == 1116) { + if (opcode == Cs2Opcodes.setOutlineThickness) { isp--; component.outlineThickness = intStack[isp]; InterfaceList.redraw(component); continue; } - if (opcode == 1117) { + if (opcode == Cs2Opcodes.setShadowColor) { isp--; component.shadowColor = intStack[isp]; InterfaceList.redraw(component); continue; } - if (opcode == 1118) { + if (opcode == Cs2Opcodes.setVFlip) { isp--; component.vFlip = intStack[isp] == 1; InterfaceList.redraw(component); continue; } - if (opcode == 1119) { + if (opcode == Cs2Opcodes.setHFlip) { isp--; component.hFlip = intStack[isp] == 1; InterfaceList.redraw(component); continue; } - if (opcode == 1120) { + if (opcode == Cs2Opcodes.setScrollMax) { isp -= 2; component.scrollMaxH = intStack[isp]; component.scrollMaxV = intStack[isp + 1]; @@ -763,13 +1004,13 @@ public final class ScriptRunner { InterfaceList.redraw(component); continue; } - if (opcode == 1122) { + if (opcode == Cs2Opcodes.setAlpha) { isp--; component.hasAlpha = intStack[isp] == 1; InterfaceList.redraw(component); continue; } - if (opcode == 1123) { + if (opcode == Cs2Opcodes.set3DViewDistance) { isp--; component.modelZoom = intStack[isp]; InterfaceList.redraw(component); @@ -787,7 +1028,7 @@ public final class ScriptRunner { opcode -= 1000; } InterfaceList.redraw(component); - if (opcode == 1200 || opcode == 1205) { + if (opcode == Cs2Opcodes.setItem || opcode == Cs2Opcodes.setItemNoNum) { isp -= 2; int2 = intStack[isp + 1]; int3 = intStack[isp]; @@ -815,7 +1056,7 @@ public final class ScriptRunner { } else if (component.baseWidth > 0) { component.modelZoom = component.modelZoom * 32 / component.baseWidth; } - if (opcode == 1205) { + if (opcode == Cs2Opcodes.setItemNoNum) { component.objDrawText = false; } else { component.objDrawText = true; @@ -823,7 +1064,7 @@ public final class ScriptRunner { } continue; } - if (opcode == 1201) { + if (opcode == Cs2Opcodes.setNpcHead) { component.modelType = 2; isp--; component.modelId = intStack[isp]; @@ -840,7 +1081,7 @@ public final class ScriptRunner { } continue; } - if (opcode == 1203) { + if (opcode == Cs2Opcodes.setPlayerHead) { component.modelType = 6; isp--; component.modelId = intStack[isp]; @@ -849,7 +1090,7 @@ public final class ScriptRunner { } continue; } - if (opcode == 1204) { + if (opcode == Cs2Opcodes.setPlayerFull) { component.modelType = 5; isp--; component.modelId = intStack[isp]; @@ -866,7 +1107,7 @@ public final class ScriptRunner { } else { component = local1020 ? staticActiveComponent1 : staticActiveComponent2; } - if (opcode == 1300) { + if (opcode == Cs2Opcodes.setContextMenuOption) { isp--; int3 = intStack[isp] - 1; if (int3 >= 0 && int3 <= 9) { @@ -877,39 +1118,39 @@ public final class ScriptRunner { ssp--; continue; } - if (opcode == 1301) { + if (opcode == Cs2Opcodes.setDraggable) { isp -= 2; int2 = intStack[isp + 1]; int3 = intStack[isp]; component.aClass13_5 = Static201.method1418(int3, int2); continue; } - if (opcode == 1302) { + if (opcode == Cs2Opcodes.setDragRenderBehaviour) { isp--; component.dragRenderBehavior = intStack[isp] == 1; continue; } - if (opcode == 1303) { + if (opcode == Cs2Opcodes.setDragDeadZone) { isp--; component.dragDeadzone = intStack[isp]; continue; } - if (opcode == 1304) { + if (opcode == Cs2Opcodes.setDragDeadTime) { isp--; component.dragDeadtime = intStack[isp]; continue; } - if (opcode == 1305) { + if (opcode == Cs2Opcodes.setOptionBase) { ssp--; component.optionBase = stringStack[ssp]; continue; } - if (opcode == 1306) { + if (opcode == Cs2Opcodes.setTargetVerb) { ssp--; component.targetVerb = stringStack[ssp]; continue; } - if (opcode == 1307) { + if (opcode == Cs2Opcodes.setNoOptions) { component.ops = null; continue; } @@ -973,67 +1214,67 @@ public final class ScriptRunner { local13000[0] = Integer.valueOf(c); } component.aBoolean25 = true; - if (opcode == 1400) { + if (opcode == Cs2Opcodes.hookMousePress) { component.onClickRepeat = local13000; - } else if (opcode == 1401) { + } else if (opcode == Cs2Opcodes.hookDraggedOver) { component.onHold = local13000; - } else if (opcode == 1402) { + } else if (opcode == Cs2Opcodes.hookMouseRelease) { component.onRelease = local13000; - } else if (opcode == 1403) { + } else if (opcode == Cs2Opcodes.hookMouseEnter) { component.onMouseOver = local13000; - } else if (opcode == 1404) { + } else if (opcode == Cs2Opcodes.hookMouseExit) { component.onMouseLeave = local13000; - } else if (opcode == 1405) { + } else if (opcode == Cs2Opcodes.hookDragStart) { component.onDragStart = local13000; - } else if (opcode == 1406) { + } else if (opcode == Cs2Opcodes.hookUseWith) { component.onUseWith = local13000; - } else if (opcode == 1407) { + } else if (opcode == Cs2Opcodes.hookVARP) { component.varpTriggers = local12937; component.onVarpTransmit = local13000; - } else if (opcode == 1408) { + } else if (opcode == Cs2Opcodes.hookFrame) { component.onTimer = local13000; - } else if (opcode == 1409) { + } else if (opcode == Cs2Opcodes.hookOptionClick) { component.onOptionClick = local13000; - } else if (opcode == 1410) { + } else if (opcode == Cs2Opcodes.hookDragRelease) { component.onDragRelease = local13000; - } else if (opcode == 1411) { + } else if (opcode == Cs2Opcodes.hookDrag) { component.onDrag = local13000; - } else if (opcode == 1412) { + } else if (opcode == Cs2Opcodes.hookMouseHover) { component.onMouseRepeat = local13000; - } else if (opcode == 1414) { + } else if (opcode == Cs2Opcodes.hookContainer) { component.inventoryTriggers = local12937; component.onInvTransmit = local13000; - } else if (opcode == 1415) { + } else if (opcode == Cs2Opcodes.hookSkill) { component.statTriggers = local12937; component.onStatTransmit = local13000; - } else if (opcode == 1416) { + } else if (opcode == Cs2Opcodes.hookOnUse) { component.onUse = local13000; - } else if (opcode == 1417) { + } else if (opcode == Cs2Opcodes.hookScroll) { component.onScroll = local13000; - } else if (opcode == 1418) { + } else if (opcode == Cs2Opcodes.hookMsg) { component.onMsg = local13000; - } else if (opcode == 1419) { + } else if (opcode == Cs2Opcodes.hookKey) { component.onKey = local13000; - } else if (opcode == 1420) { + } else if (opcode == Cs2Opcodes.hookFriendList) { component.onFriendTransmit = local13000; - } else if (opcode == 1421) { + } else if (opcode == Cs2Opcodes.hookClanList) { component.onClanTransmit = local13000; - } else if (opcode == 1422) { + } else if (opcode == Cs2Opcodes.hookMiscData) { component.onMiscTransmit = local13000; - } else if (opcode == 1423) { + } else if (opcode == Cs2Opcodes.hookDialogAbort) { component.onDialogAbort = local13000; - } else if (opcode == 1424) { + } else if (opcode == Cs2Opcodes.hookWidgetsOpenClose) { component.onWidgetsOpenClose = local13000; - } else if (opcode == 1425) { + } else if (opcode == Cs2Opcodes.hookGEUpdate) { // if_setonstocktransmit component.onStockTransmit = local13000; - } else if (opcode == 1426) { + } else if (opcode == Cs2Opcodes.hookMinimapUnlock) { component.onMinimapUnlock = local13000; - } else if (opcode == 1427) { + } else if (opcode == Cs2Opcodes.hookResize) { component.onResize = local13000; - } else if (opcode == 1428) { + } else if (opcode == Cs2Opcodes.hookVARC) { component.onVarcTransmit = local13000; component.varcTriggers = local12937; - } else if (opcode == 1429) { + } else if (opcode == Cs2Opcodes.hookSTRING) { component.varcstrTriggers = local12937; component.onVarcstrTransmit = local13000; } @@ -1067,65 +1308,65 @@ public final class ScriptRunner { } } else if (opcode < 1700) { component = local1020 ? staticActiveComponent1 : staticActiveComponent2; - if (opcode == 1600) { + if (opcode == Cs2Opcodes.getScrollX) { intStack[isp++] = component.scrollX; continue; } - if (opcode == 1601) { + if (opcode == Cs2Opcodes.getScrollY) { intStack[isp++] = component.scrollY; continue; } - if (opcode == 1602) { + if (opcode == Cs2Opcodes.getText) { stringStack[ssp++] = component.text; continue; } - if (opcode == 1603) { + if (opcode == Cs2Opcodes.getScrollMaxH) { intStack[isp++] = component.scrollMaxH; continue; } - if (opcode == 1604) { + if (opcode == Cs2Opcodes.getScrollMaxV) { intStack[isp++] = component.scrollMaxV; continue; } - if (opcode == 1605) { + if (opcode == Cs2Opcodes.get3DDistance) { intStack[isp++] = component.modelZoom; continue; } - if (opcode == 1606) { + if (opcode == Cs2Opcodes.getRotateX) { intStack[isp++] = component.modelXAngle; continue; } - if (opcode == 1607) { + if (opcode == Cs2Opcodes.getRotateZ) { intStack[isp++] = component.modelYOffset; continue; } - if (opcode == 1608) { + if (opcode == Cs2Opcodes.getRotateY) { intStack[isp++] = component.modelYAngle; continue; } - if (opcode == 1609) { + if (opcode == Cs2Opcodes.getAlpha) { intStack[isp++] = component.alpha; continue; } - if (opcode == 1610) { + if (opcode == Cs2Opcodes.getModelXOffset) { intStack[isp++] = component.modelXOffset; continue; } - if (opcode == 1611) { + if (opcode == Cs2Opcodes.getModelYOffset) { intStack[isp++] = component.modelZOffset; continue; } - if (opcode == 1612) { + if (opcode == Cs2Opcodes.getSpriteId) { intStack[isp++] = component.spriteId; continue; } } else if (opcode < 1800) { component = local1020 ? staticActiveComponent1 : staticActiveComponent2; - if (opcode == 1700) { + if (opcode == Cs2Opcodes.getItemId) { intStack[isp++] = component.objId; continue; } - if (opcode == 1701) { + if (opcode == Cs2Opcodes.getItemAmt) { if (component.objId == -1) { intStack[isp++] = 0; } else { @@ -1133,17 +1374,17 @@ public final class ScriptRunner { } continue; } - if (opcode == 1702) { + if (opcode == Cs2Opcodes.getChildId) { intStack[isp++] = component.createdComponentId; continue; } } else if (opcode < 1900) { component = local1020 ? staticActiveComponent1 : staticActiveComponent2; - if (opcode == 1800) { + if (opcode == Cs2Opcodes.getTargetMask) { intStack[isp++] = InterfaceList.getServerActiveProperties(component).getTargetMask(); continue; } - if (opcode == 1801) { + if (opcode == Cs2Opcodes.getOption) { isp--; int3 = intStack[isp]; int3--; @@ -1154,7 +1395,7 @@ public final class ScriptRunner { stringStack[ssp++] = EMPTY_STRING; continue; } - if (opcode == 1802) { + if (opcode == Cs2Opcodes.getOptionBase) { if (component.optionBase == null) { stringStack[ssp++] = EMPTY_STRING; } else { @@ -1165,93 +1406,93 @@ public final class ScriptRunner { } else if (opcode < 2600) { isp--; component = InterfaceList.getComponent(intStack[isp]); - if (opcode == 2500) { + if (opcode == Cs2Opcodes.getX2) { intStack[isp++] = component.x; continue; } - if (opcode == 2501) { + if (opcode == Cs2Opcodes.getY2) { intStack[isp++] = component.y; continue; } - if (opcode == 2502) { + if (opcode == Cs2Opcodes.getWidth2) { intStack[isp++] = component.width; continue; } - if (opcode == 2503) { + if (opcode == Cs2Opcodes.getHeight2) { intStack[isp++] = component.height; continue; } - if (opcode == 2504) { + if (opcode == Cs2Opcodes.isHidden2) { intStack[isp++] = component.hidden ? 1 : 0; continue; } - if (opcode == 2505) { + if (opcode == Cs2Opcodes.getLayer2) { intStack[isp++] = component.layer; continue; } } else if (opcode < 2700) { isp--; component = InterfaceList.getComponent(intStack[isp]); - if (opcode == 2600) { + if (opcode == Cs2Opcodes.getScrollX2) { intStack[isp++] = component.scrollX; continue; } - if (opcode == 2601) { + if (opcode == Cs2Opcodes.getScrollY2) { intStack[isp++] = component.scrollY; continue; } - if (opcode == 2602) { + if (opcode == Cs2Opcodes.getText2) { stringStack[ssp++] = component.text; continue; } - if (opcode == 2603) { + if (opcode == Cs2Opcodes.getScrollMaxH2) { intStack[isp++] = component.scrollMaxH; continue; } - if (opcode == 2604) { + if (opcode == Cs2Opcodes.getScrollMaxV2) { intStack[isp++] = component.scrollMaxV; continue; } - if (opcode == 2605) { + if (opcode == Cs2Opcodes.get3DDistance2) { intStack[isp++] = component.modelZoom; continue; } - if (opcode == 2606) { + if (opcode == Cs2Opcodes.getRotateX2) { intStack[isp++] = component.modelXAngle; continue; } - if (opcode == 2607) { + if (opcode == Cs2Opcodes.getRotateZ2) { intStack[isp++] = component.modelYOffset; continue; } - if (opcode == 2608) { + if (opcode == Cs2Opcodes.getRotateY2) { intStack[isp++] = component.modelYAngle; continue; } - if (opcode == 2609) { + if (opcode == Cs2Opcodes.getAlpha2) { intStack[isp++] = component.alpha; continue; } - if (opcode == 2610) { + if (opcode == Cs2Opcodes.getModelXOffset2) { intStack[isp++] = component.modelXOffset; continue; } - if (opcode == 2611) { + if (opcode == Cs2Opcodes.getModelYOffset2) { intStack[isp++] = component.modelZOffset; continue; } - if (opcode == 2612) { + if (opcode == Cs2Opcodes.getSpriteId2) { intStack[isp++] = component.spriteId; continue; } } else if (opcode < 2800) { - if (opcode == 2700) { + if (opcode == Cs2Opcodes.getItemId2) { isp--; component = InterfaceList.getComponent(intStack[isp]); intStack[isp++] = component.objId; continue; } - if (opcode == 2701) { + if (opcode == Cs2Opcodes.getItemAmt2) { isp--; component = InterfaceList.getComponent(intStack[isp]); if (component.objId == -1) { @@ -1261,7 +1502,7 @@ public final class ScriptRunner { } continue; } - if (opcode == 2702) { + if (opcode == Cs2Opcodes.hasChild) { isp--; int1 = intStack[isp]; @Pc(12566) ComponentPointer local12566 = (ComponentPointer) InterfaceList.openInterfaces.get((long) int1); @@ -1272,7 +1513,7 @@ public final class ScriptRunner { } continue; } - if (opcode == 2703) { + if (opcode == Cs2Opcodes.nextChild) { isp--; component = InterfaceList.getComponent(intStack[isp]); if (component.createdComponents == null) { @@ -1289,7 +1530,7 @@ public final class ScriptRunner { intStack[isp++] = int3; continue; } - if (opcode == 2704 || opcode == 2705) { + if (opcode == Cs2Opcodes.hasChildModal || opcode == Cs2Opcodes.hasChildOverlay) { isp -= 2; int1 = intStack[isp]; int3 = intStack[isp + 1]; @@ -1304,11 +1545,11 @@ public final class ScriptRunner { } else if (opcode < 2900) { isp--; component = InterfaceList.getComponent(intStack[isp]); - if (opcode == 2800) { + if (opcode == Cs2Opcodes.getTargetMask2) { intStack[isp++] = InterfaceList.getServerActiveProperties(component).getTargetMask(); continue; } - if (opcode == 2801) { + if (opcode == Cs2Opcodes.getOption2) { isp--; int3 = intStack[isp]; int3--; @@ -1319,7 +1560,7 @@ public final class ScriptRunner { stringStack[ssp++] = EMPTY_STRING; continue; } - if (opcode == 2802) { + if (opcode == Cs2Opcodes.getOptionBase2) { if (component.optionBase == null) { stringStack[ssp++] = EMPTY_STRING; } else { @@ -1328,22 +1569,22 @@ public final class ScriptRunner { continue; } } else if (opcode < 3200) { - if (opcode == 3100) { + if (opcode == Cs2Opcodes.msg) { ssp--; string = stringStack[ssp]; Chat.add(EMPTY_STRING, 0, string); continue; } - if (opcode == 3101) { + if (opcode == Cs2Opcodes.animateSelf) { isp -= 2; Player.animate(intStack[isp + 1], intStack[isp], PlayerList.self); continue; } - if (opcode == 3103) { + if (opcode == Cs2Opcodes.sendCloseWidgetPacket) { ClientProt.method2909(); continue; } - if (opcode == 3104) { + if (opcode == Cs2Opcodes.sendIntegerInput) { ssp--; string = stringStack[ssp]; int3 = 0; @@ -1354,14 +1595,14 @@ public final class ScriptRunner { Protocol.outboundBuffer.p4(int3); continue; } - if (opcode == 3105) { + if (opcode == Cs2Opcodes.sendNameInput) { ssp--; string = stringStack[ssp]; Protocol.outboundBuffer.p1isaac(244); Protocol.outboundBuffer.p8(string.encode37()); continue; } - if (opcode == 3106) { + if (opcode == Cs2Opcodes.sendStringInput) { ssp--; string = stringStack[ssp]; Protocol.outboundBuffer.p1isaac(65); @@ -1369,7 +1610,7 @@ public final class ScriptRunner { Protocol.outboundBuffer.pjstr(string); continue; } - if (opcode == 3107) { + if (opcode == Cs2Opcodes.clickPlayerOption) { isp--; int1 = intStack[isp]; ssp--; @@ -1402,122 +1643,122 @@ public final class ScriptRunner { continue; } } else if (opcode < 3300) { - if (opcode == 3200) { + if (opcode == Cs2Opcodes.playSoundEffect) { isp -= 3; SoundPlayer.play(intStack[isp + 1], intStack[isp], intStack[isp + 2]); continue; } - if (opcode == 3201) { + if (opcode == Cs2Opcodes.playMusic) { isp--; MusicPlayer.playSong(intStack[isp]); continue; } - if (opcode == 3202) { + if (opcode == Cs2Opcodes.playMusicEffect) { isp -= 2; MusicPlayer.playJingle(intStack[isp + 1], intStack[isp]); continue; } } else if (opcode < 3400) { - if (opcode == 3300) { + if (opcode == Cs2Opcodes.getClientCycle) { intStack[isp++] = client.loop; continue; } - if (opcode == 3301) { + if (opcode == Cs2Opcodes.getItemIdInSlot) { isp -= 2; int1 = intStack[isp]; int3 = intStack[isp + 1]; intStack[isp++] = Inv.getItemType(int1, int3); continue; } - if (opcode == 3302) { + if (opcode == Cs2Opcodes.getItemAmtInSlot) { isp -= 2; int3 = intStack[isp + 1]; int1 = intStack[isp]; intStack[isp++] = Inv.getItemCount(int1, int3); continue; } - if (opcode == 3303) { + if (opcode == Cs2Opcodes.getItemAmtInContainer) { isp -= 2; int3 = intStack[isp + 1]; int1 = intStack[isp]; intStack[isp++] = Inv.getSlotTotal(int1, int3); continue; } - if (opcode == 3304) { + if (opcode == Cs2Opcodes.getItemContainerLength) { isp--; int1 = intStack[isp]; intStack[isp++] = InvTypeList.get(int1).size; continue; } - if (opcode == 3305) { + if (opcode == Cs2Opcodes.getSkillCurrentLvl) { isp--; int1 = intStack[isp]; intStack[isp++] = PlayerSkillXpTable.boostedLevels[int1]; continue; } - if (opcode == 3306) { + if (opcode == Cs2Opcodes.getSkillActualLvl) { isp--; int1 = intStack[isp]; intStack[isp++] = PlayerSkillXpTable.baseLevels[int1]; continue; } - if (opcode == 3307) { + if (opcode == Cs2Opcodes.getSkillXp) { isp--; int1 = intStack[isp]; intStack[isp++] = PlayerSkillXpTable.experience[int1]; continue; } - if (opcode == 3308) { + if (opcode == Cs2Opcodes.getMyLocation) { int1 = Player.level; - int3 = Static225.originX + (PlayerList.self.xFine >> 7); - int2 = (PlayerList.self.zFine >> 7) + Static142.originZ; + int3 = Camera.originX + (PlayerList.self.xFine >> 7); + int2 = (PlayerList.self.zFine >> 7) + Camera.originZ; intStack[isp++] = (int1 << 28) - (-(int3 << 14) - int2); continue; } - if (opcode == 3309) { + if (opcode == Cs2Opcodes.x) { isp--; int1 = intStack[isp]; intStack[isp++] = int1 >> 14 & 0x3FFF; continue; } - if (opcode == 3310) { + if (opcode == Cs2Opcodes.z) { isp--; int1 = intStack[isp]; intStack[isp++] = int1 >> 28; continue; } - if (opcode == 3311) { + if (opcode == Cs2Opcodes.y) { isp--; int1 = intStack[isp]; intStack[isp++] = int1 & 0x3FFF; continue; } - if (opcode == 3312) { + if (opcode == Cs2Opcodes.isMember) { intStack[isp++] = LoginManager.mapMembers ? 1 : 0; continue; } - if (opcode == 3313) { + if (opcode == Cs2Opcodes.getItemIdInInpsectingSlot) { isp -= 2; int1 = intStack[isp] + 32768; int3 = intStack[isp + 1]; intStack[isp++] = Inv.getItemType(int1, int3); continue; } - if (opcode == 3314) { + if (opcode == Cs2Opcodes.getItemAmtInInspectingSlot) { isp -= 2; int1 = intStack[isp] + 32768; int3 = intStack[isp + 1]; intStack[isp++] = Inv.getItemCount(int1, int3); continue; } - if (opcode == 3315) { + if (opcode == Cs2Opcodes.getItemAmtInInspectingContainer) { isp -= 2; int1 = intStack[isp] + 32768; int3 = intStack[isp + 1]; intStack[isp++] = Inv.getSlotTotal(int1, int3); continue; } - if (opcode == 3316) { + if (opcode == Cs2Opcodes.getClientRights) { if (LoginManager.staffModLevel < 2) { intStack[isp++] = 0; } else { @@ -1525,23 +1766,23 @@ public final class ScriptRunner { } continue; } - if (opcode == 3317) { + if (opcode == Cs2Opcodes.getSystemUpdateTimer) { intStack[isp++] = Player.rebootTimer; continue; } - if (opcode == 3318) { + if (opcode == Cs2Opcodes.getWorldId) { intStack[isp++] = Player.worldId; continue; } - if (opcode == 3321) { + if (opcode == Cs2Opcodes.getRunEnergy) { intStack[isp++] = Player.runEnergy; continue; } - if (opcode == 3322) { + if (opcode == Cs2Opcodes.getPlayerWeight) { intStack[isp++] = Player.weight; continue; } - if (opcode == 3323) { + if (opcode == Cs2Opcodes.hasMoreThen5Blackmarks) { if (LoginManager.playerModLevel >= 5 && LoginManager.playerModLevel <= 9) { intStack[isp++] = 1; continue; @@ -1549,7 +1790,7 @@ public final class ScriptRunner { intStack[isp++] = 0; continue; } - if (opcode == 3324) { + if (opcode == Cs2Opcodes.getBlackmarks) { if (LoginManager.playerModLevel >= 5 && LoginManager.playerModLevel <= 9) { intStack[isp++] = LoginManager.playerModLevel; continue; @@ -1557,15 +1798,15 @@ public final class ScriptRunner { intStack[isp++] = 0; continue; } - if (opcode == 3325) { + if (opcode == Cs2Opcodes.isSiteSettingsMembers) { intStack[isp++] = LoginManager.playerMember ? 1 : 0; continue; } - if (opcode == 3326) { + if (opcode == Cs2Opcodes.getMyCombat) { intStack[isp++] = PlayerList.self.combatLevel; continue; } - if (opcode == 3327) { + if (opcode == Cs2Opcodes.IsFemale) { intStack[isp++] = PlayerList.self.appearance.gender ? 1 : 0; continue; } @@ -1573,39 +1814,39 @@ public final class ScriptRunner { intStack[isp++] = LoginManager.playerUnderage && !LoginManager.parentalChatConsent ? 1 : 0; continue; } - if (opcode == 3329) { + if (opcode == Cs2Opcodes.mapQuickchat) { intStack[isp++] = LoginManager.mapQuickChat ? 1 : 0; continue; } - if (opcode == 3330) { + if (opcode == Cs2Opcodes.getContainerFreeSlots) { isp--; int1 = intStack[isp]; intStack[isp++] = Inv.getFreeSpace(int1); continue; } - if (opcode == 3331) { + if (opcode == Cs2Opcodes.getContainerIntAttrCountIgnoreStacks) { isp -= 2; int3 = intStack[isp + 1]; int1 = intStack[isp]; intStack[isp++] = Inv.getTotalParam(false, int1, int3); continue; } - if (opcode == 3332) { + if (opcode == Cs2Opcodes.getContainerIntAttrCount) { isp -= 2; int1 = intStack[isp]; int3 = intStack[isp + 1]; intStack[isp++] = Inv.getTotalParam(true, int1, int3); continue; } - if (opcode == 3333) { + if (opcode == Cs2Opcodes.getLoginTypeRelatedMethod3333) { intStack[isp++] = LoginManager.anInt39; continue; } - if (opcode == 3335) { + if (opcode == Cs2Opcodes.getLanguage) { intStack[isp++] = client.language; continue; } - if (opcode == 3336) { + if (opcode == Cs2Opcodes.moveCoord) { isp -= 4; int3 = intStack[isp + 1]; int1 = intStack[isp]; @@ -1617,13 +1858,13 @@ public final class ScriptRunner { intStack[isp++] = int1; continue; } - if (opcode == 3337) { + if (opcode == Cs2Opcodes.getAffid) { intStack[isp++] = client.affiliate; continue; } } else if (opcode < 3500) { @Pc(3422) EnumType local3422; - if (opcode == 3400) { + if (opcode == Cs2Opcodes.datamap) { isp -= 2; int1 = intStack[isp]; int3 = intStack[isp + 1]; @@ -1633,7 +1874,7 @@ public final class ScriptRunner { stringStack[ssp++] = local3422.getString(int3); continue; } - if (opcode == 3408) { + if (opcode == Cs2Opcodes.datamap2) { isp -= 4; int1 = intStack[isp]; int3 = intStack[isp + 1]; @@ -1650,7 +1891,7 @@ public final class ScriptRunner { } throw new RuntimeException("C3408-1"); } - if (opcode == 3409) { + if (opcode == Cs2Opcodes.datamapContainsValue) { isp -= 3; int3 = intStack[isp + 1]; int2 = intStack[isp + 2]; @@ -1665,7 +1906,7 @@ public final class ScriptRunner { intStack[isp++] = local3549.containsValue(int2) ? 1 : 0; continue; } - if (opcode == 3410) { + if (opcode == Cs2Opcodes.datamapContainsValue2) { isp--; int1 = intStack[isp]; ssp--; @@ -1680,7 +1921,7 @@ public final class ScriptRunner { intStack[isp++] = local3422.containsValue(local2522) ? 1 : 0; continue; } - if (opcode == 3411) { + if (opcode == Cs2Opcodes.datamapSize) { isp--; int1 = intStack[isp]; @Pc(3645) EnumType local3645 = EnumTypeList.get(int1); @@ -1688,7 +1929,7 @@ public final class ScriptRunner { continue; } } else if (opcode < 3700) { - if (opcode == 3600) { + if (opcode == Cs2Opcodes.getFriendCount) { if (FriendsList.state == 0) { intStack[isp++] = -2; } else if (FriendsList.state == 1) { @@ -1698,7 +1939,7 @@ public final class ScriptRunner { } continue; } - if (opcode == 3601) { + if (opcode == Cs2Opcodes.getFriendName) { isp--; int1 = intStack[isp]; if (FriendsList.state == 2 && int1 < FriendsList.size) { @@ -1708,7 +1949,7 @@ public final class ScriptRunner { stringStack[ssp++] = EMPTY_STRING; continue; } - if (opcode == 3602) { + if (opcode == Cs2Opcodes.getFriendWorld) { isp--; int1 = intStack[isp]; if (FriendsList.state == 2 && FriendsList.size > int1) { @@ -1718,7 +1959,7 @@ public final class ScriptRunner { intStack[isp++] = 0; continue; } - if (opcode == 3603) { + if (opcode == Cs2Opcodes.getFriendRank) { isp--; int1 = intStack[isp]; if (FriendsList.state == 2 && FriendsList.size > int1) { @@ -1760,7 +2001,7 @@ public final class ScriptRunner { IgnoreList.remove(string.encode37()); continue; } - if (opcode == 3609) { + if (opcode == Cs2Opcodes.isFriend) { ssp--; string = stringStack[ssp]; if (string.startsWith(aClass100_446) || string.startsWith(aClass100_537)) { @@ -1769,7 +2010,7 @@ public final class ScriptRunner { intStack[isp++] = FriendsList.contains(string) ? 1 : 0; continue; } - if (opcode == 3610) { + if (opcode == Cs2Opcodes.getFriendWorldName) { isp--; int1 = intStack[isp]; if (FriendsList.state == 2 && FriendsList.size > int1) { @@ -1779,7 +2020,7 @@ public final class ScriptRunner { stringStack[ssp++] = EMPTY_STRING; continue; } - if (opcode == 3611) { + if (opcode == Cs2Opcodes.clanChatDisplayName) { if (ClanChat.name == null) { stringStack[ssp++] = EMPTY_STRING; } else { @@ -1787,7 +2028,7 @@ public final class ScriptRunner { } continue; } - if (opcode == 3612) { + if (opcode == Cs2Opcodes.clanGetChatCount) { if (ClanChat.name == null) { intStack[isp++] = 0; } else { @@ -1795,7 +2036,7 @@ public final class ScriptRunner { } continue; } - if (opcode == 3613) { + if (opcode == Cs2Opcodes.clanChatUsername) { isp--; int1 = intStack[isp]; if (ClanChat.name != null && ClanChat.size > int1) { @@ -1805,7 +2046,7 @@ public final class ScriptRunner { stringStack[ssp++] = EMPTY_STRING; continue; } - if (opcode == 3614) { + if (opcode == Cs2Opcodes.clanChatUserWorld) { isp--; int1 = intStack[isp]; if (ClanChat.name != null && int1 < ClanChat.size) { @@ -1815,7 +2056,7 @@ public final class ScriptRunner { intStack[isp++] = 0; continue; } - if (opcode == 3615) { + if (opcode == Cs2Opcodes.clanChatUserRank) { isp--; int1 = intStack[isp]; if (ClanChat.name != null && ClanChat.size > int1) { @@ -1849,7 +2090,7 @@ public final class ScriptRunner { ClanChat.leave(); continue; } - if (opcode == 3621) { + if (opcode == Cs2Opcodes.getIgnoreCount) { if (FriendsList.state == 0) { intStack[isp++] = -1; } else { @@ -1857,7 +2098,7 @@ public final class ScriptRunner { } continue; } - if (opcode == 3622) { + if (opcode == Cs2Opcodes.getIgnoreName) { isp--; int1 = intStack[isp]; if (FriendsList.state != 0 && IgnoreList.size > int1) { @@ -1928,64 +2169,64 @@ public final class ScriptRunner { continue; } } else if (opcode < 4000) { - if (opcode == 3903) { + if (opcode == Cs2Opcodes.getGEIsSelling) { isp--; int1 = intStack[isp]; intStack[isp++] = StockMarketManager.offers[int1].getType(); continue; } - if (opcode == 3904) { + if (opcode == Cs2Opcodes.getGEItem) { isp--; int1 = intStack[isp]; intStack[isp++] = StockMarketManager.offers[int1].item; continue; } - if (opcode == 3905) { + if (opcode == Cs2Opcodes.getGEItemPrice) { isp--; int1 = intStack[isp]; intStack[isp++] = StockMarketManager.offers[int1].price; continue; } - if (opcode == 3906) { + if (opcode == Cs2Opcodes.getGEItemAmt) { isp--; int1 = intStack[isp]; intStack[isp++] = StockMarketManager.offers[int1].count; continue; } - if (opcode == 3907) { + if (opcode == Cs2Opcodes.getGEItemAmtTransfered) { isp--; int1 = intStack[isp]; intStack[isp++] = StockMarketManager.offers[int1].completedCount; continue; } - if (opcode == 3908) { + if (opcode == Cs2Opcodes.getGECashTransfered) { isp--; int1 = intStack[isp]; intStack[isp++] = StockMarketManager.offers[int1].completedGold; continue; } - if (opcode == 3910) { + if (opcode == Cs2Opcodes.getGENotStarted) { isp--; int1 = intStack[isp]; int3 = StockMarketManager.offers[int1].getStatus(); intStack[isp++] = int3 == 0 ? 1 : 0; continue; } - if (opcode == 3911) { + if (opcode == Cs2Opcodes.getGEIsStatus2) { isp--; int1 = intStack[isp]; int3 = StockMarketManager.offers[int1].getStatus(); intStack[isp++] = int3 == 2 ? 1 : 0; continue; } - if (opcode == 3912) { + if (opcode == Cs2Opcodes.getGEIsDone) { isp--; int1 = intStack[isp]; int3 = StockMarketManager.offers[int1].getStatus(); intStack[isp++] = int3 == 5 ? 1 : 0; continue; } - if (opcode == 3913) { + if (opcode == Cs2Opcodes.getGEIsStatus1) { isp--; int1 = intStack[isp]; int3 = StockMarketManager.offers[int1].getStatus(); @@ -1993,41 +2234,41 @@ public final class ScriptRunner { continue; } } else if (opcode < 4100) { - if (opcode == 4000) { + if (opcode == Cs2Opcodes.add) { isp -= 2; int1 = intStack[isp]; int3 = intStack[isp + 1]; intStack[isp++] = int3 + int1; continue; } - if (opcode == 4001) { + if (opcode == Cs2Opcodes.subtract) { isp -= 2; int1 = intStack[isp]; int3 = intStack[isp + 1]; intStack[isp++] = int1 - int3; continue; } - if (opcode == 4002) { + if (opcode == Cs2Opcodes.multiply) { isp -= 2; int1 = intStack[isp]; int3 = intStack[isp + 1]; intStack[isp++] = int3 * int1; continue; } - if (opcode == 4003) { + if (opcode == Cs2Opcodes.divide) { isp -= 2; int1 = intStack[isp]; int3 = intStack[isp + 1]; intStack[isp++] = int1 / int3; continue; } - if (opcode == 4004) { + if (opcode == Cs2Opcodes.rndExcl) { isp--; int1 = intStack[isp]; intStack[isp++] = (int) ((double) int1 * Math.random()); continue; } - if (opcode == 4005) { + if (opcode == Cs2Opcodes.rnd) { isp--; int1 = intStack[isp]; intStack[isp++] = (int) (Math.random() * (double) (int1 + 1)); @@ -2143,14 +2384,14 @@ public final class ScriptRunner { } else if (opcode >= 4200) { @Pc(5294) ParamType local5294; if (opcode < 4300) { - if (opcode == 4200) { + if (opcode == Cs2Opcodes.getItemName) { isp--; int1 = intStack[isp]; stringStack[ssp++] = ObjTypeList.get(int1).name; continue; } @Pc(11269) ObjType local11269; - if (opcode == 4201) { + if (opcode == Cs2Opcodes.getItemGroundOption) { isp -= 2; int1 = intStack[isp]; int3 = intStack[isp + 1]; @@ -2162,7 +2403,7 @@ public final class ScriptRunner { stringStack[ssp++] = EMPTY_STRING; continue; } - if (opcode == 4202) { + if (opcode == Cs2Opcodes.getItemOption) { isp -= 2; int1 = intStack[isp]; int3 = intStack[isp + 1]; @@ -2174,20 +2415,20 @@ public final class ScriptRunner { stringStack[ssp++] = EMPTY_STRING; continue; } - if (opcode == 4203) { + if (opcode == Cs2Opcodes.getItemValue) { isp--; int1 = intStack[isp]; intStack[isp++] = ObjTypeList.get(int1).cost; continue; } - if (opcode == 4204) { + if (opcode == Cs2Opcodes.itemIsStackable) { isp--; int1 = intStack[isp]; intStack[isp++] = ObjTypeList.get(int1).stackable == 1 ? 1 : 0; continue; } @Pc(11417) ObjType local11417; - if (opcode == 4205) { + if (opcode == Cs2Opcodes.getNotedItem) { isp--; int1 = intStack[isp]; local11417 = ObjTypeList.get(int1); @@ -2198,7 +2439,7 @@ public final class ScriptRunner { intStack[isp++] = int1; continue; } - if (opcode == 4206) { + if (opcode == Cs2Opcodes.getRealItem) { isp--; int1 = intStack[isp]; local11417 = ObjTypeList.get(int1); @@ -2209,7 +2450,7 @@ public final class ScriptRunner { intStack[isp++] = int1; continue; } - if (opcode == Cs2Opcodes.itemIsStackable) { + if (opcode == Cs2Opcodes.itemIsMembers) { isp--; int1 = intStack[isp]; intStack[isp++] = ObjTypeList.get(int1).members ? 1 : 0; @@ -2236,7 +2477,7 @@ public final class ScriptRunner { intStack[isp++] = Find.index; continue; } - if (opcode == 4211) { + if (opcode == Cs2Opcodes.nextSearchResult) { if (Find.results != null && Find.size < Find.index) { intStack[isp++] = Find.results[Find.size++] & 0xFFFF; continue; @@ -2249,7 +2490,7 @@ public final class ScriptRunner { continue; } } else if (opcode < 4400) { - if (opcode == 4300) { + if (opcode == Cs2Opcodes.getNpcAttribute) { isp -= 2; int1 = intStack[isp]; int3 = intStack[isp + 1]; @@ -2508,7 +2749,7 @@ public final class ScriptRunner { stringStack[ssp++] = string; continue; } - if (opcode == 5016) { + if (opcode == Cs2Opcodes.getTradeSetting) { intStack[isp++] = Chat.tradeFilter; continue; } @@ -2723,7 +2964,7 @@ public final class ScriptRunner { continue; } } else if (opcode < 5200) { - if (opcode == 5100) { + if (opcode == Cs2Opcodes.isHoldingAlt) { if (Keyboard.pressedKeys[Keyboard.KEY_ALT]) { intStack[isp++] = 1; } else { @@ -2731,7 +2972,7 @@ public final class ScriptRunner { } continue; } - if (opcode == 5101) { + if (opcode == Cs2Opcodes.isHoldingCtrl) { if (Keyboard.pressedKeys[Keyboard.KEY_CTRL]) { intStack[isp++] = 1; } else { @@ -2739,7 +2980,7 @@ public final class ScriptRunner { } continue; } - if (opcode == 5102) { + if (opcode == Cs2Opcodes.isHoldingShift) { if (Keyboard.pressedKeys[Keyboard.KEY_SHIFT]) { intStack[isp++] = 1; } else { @@ -2750,12 +2991,12 @@ public final class ScriptRunner { } else { @Pc(7566) boolean local7566; if (opcode < 5300) { - if (opcode == 5200) { + if (opcode == Cs2Opcodes.setWorldmapZoom) { isp--; WorldMap.setTargetZoom(intStack[isp]); continue; } - if (opcode == 5201) { + if (opcode == Cs2Opcodes.getWorldmapZoom) { intStack[isp++] = WorldMap.getTargetZoom(); continue; } @@ -2773,12 +3014,12 @@ public final class ScriptRunner { stringStack[ssp - 1] = WorldMap.method923(stringStack[ssp - 1]); continue; } - if (opcode == 5205) { + if (opcode == Cs2Opcodes.loadDungeonmap) { ssp--; WorldMap.method1853(stringStack[ssp]); continue; } - if (opcode == 5206) { + if (opcode == Cs2Opcodes.getDungeonmap) { isp--; int1 = intStack[isp]; @Pc(7264) Map local7264 = MapList.getContainingSource(int1 >> 14 & 0x3FFF, int1 & 0x3FFF); @@ -2790,7 +3031,7 @@ public final class ScriptRunner { continue; } @Pc(7293) Map local7293; - if (opcode == 5207) { + if (opcode == Cs2Opcodes.getDungeonMapName) { ssp--; local7293 = MapList.get(stringStack[ssp]); if (local7293 != null && local7293.aClass100_137 != null) { @@ -2810,7 +3051,7 @@ public final class ScriptRunner { intStack[isp++] = WorldMap.originZ + WorldMap.length - WorldMap.anInt919 - 1; continue; } - if (opcode == 5210) { + if (opcode == Cs2Opcodes.getDungeonmapCenter) { local7293 = WorldMap.method4361(); if (local7293 == null) { intStack[isp++] = 0; @@ -2860,13 +3101,13 @@ public final class ScriptRunner { intStack[isp++] = int2; continue; } - if (opcode == 5214) { + if (opcode == Cs2Opcodes.setPositionInMap) { isp--; int1 = intStack[isp]; WorldMap.method3616(int1 >> 14 & 0x3FFF, int1 & 0x3FFF); continue; } - if (opcode == 5215) { + if (opcode == Cs2Opcodes.dungeonmapContains) { isp--; int1 = intStack[isp]; ssp--; @@ -2902,7 +3143,7 @@ public final class ScriptRunner { } continue; } - if (opcode == 5218) { + if (opcode == Cs2Opcodes.getMapDefaultZoom) { local7293 = WorldMap.method4361(); if (local7293 == null) { intStack[isp++] = -1; @@ -2963,7 +3204,7 @@ public final class ScriptRunner { intStack[isp++] = int2; continue; } - if (opcode == 5306) { + if (opcode == Cs2Opcodes.getDisplayMode) { intStack[isp++] = Static144.getWindowMode(); continue; } @@ -3019,7 +3260,7 @@ public final class ScriptRunner { int1 = intStack[isp]; int3 = intStack[isp + 1]; if (int1 >= 0 && int1 < 2) { - Static107.anIntArrayArrayArray9[int1] = new int[int3 << 1][4]; + Camera.anIntArrayArrayArray9[int1] = new int[int3 << 1][4]; } continue; } @@ -3032,15 +3273,15 @@ public final class ScriptRunner { c = intStack[isp + 4]; @Pc(8108) int local8108 = intStack[isp + 6]; local1087 = intStack[isp + 5]; - if (int1 >= 0 && int1 < 2 && Static107.anIntArrayArrayArray9[int1] != null && int3 >= 0 && Static107.anIntArrayArrayArray9[int1].length > int3) { - Static107.anIntArrayArrayArray9[int1][int3] = new int[] { (int2 >> 14 & 0x3FFF) * 128, local652, (int2 & 0x3FFF) * 128, local8108 }; - Static107.anIntArrayArrayArray9[int1][int3 + 1] = new int[] { (c >> 14 & 0x3FFF) * 128, local1087, (c & 0x3FFF) * 128 }; + if (int1 >= 0 && int1 < 2 && Camera.anIntArrayArrayArray9[int1] != null && int3 >= 0 && Camera.anIntArrayArrayArray9[int1].length > int3) { + Camera.anIntArrayArrayArray9[int1][int3] = new int[] { (int2 >> 14 & 0x3FFF) * 128, local652, (int2 & 0x3FFF) * 128, local8108 }; + Camera.anIntArrayArrayArray9[int1][int3 + 1] = new int[] { (c >> 14 & 0x3FFF) * 128, local1087, (c & 0x3FFF) * 128 }; } continue; } if (opcode == 5407) { isp--; - int1 = Static107.anIntArrayArrayArray9[intStack[isp]].length >> 1; + int1 = Camera.anIntArrayArrayArray9[intStack[isp]].length >> 1; intStack[isp++] = int1; continue; } @@ -3055,7 +3296,7 @@ public final class ScriptRunner { } continue; } - if (opcode == 5419) { + if (opcode == Cs2Opcodes.getLastIp5419) { string = EMPTY_STRING; if (Player.lastLogAddress != null) { string = Static181.method3341(Player.lastLogAddress.intArg2); @@ -3152,22 +3393,22 @@ public final class ScriptRunner { continue; } } else if (opcode < 5600) { - if (opcode == 5500) { + if (opcode == Cs2Opcodes.cameraMoveTo) { isp -= 4; int1 = intStack[isp]; local652 = intStack[isp + 3]; int2 = intStack[isp + 2]; int3 = intStack[isp + 1]; - Static141.method2722(false, int2, int3, local652, (int1 & 0x3FFF) - Static142.originZ, (int1 >> 14 & 0x3FFF) - Static225.originX); + Camera.method2722(false, int2, int3, local652, (int1 & 0x3FFF) - Camera.originZ, (int1 >> 14 & 0x3FFF) - Camera.originX); continue; } - if (opcode == 5501) { + if (opcode == Cs2Opcodes.cameraPointAt) { isp -= 4; int3 = intStack[isp + 1]; int1 = intStack[isp]; local652 = intStack[isp + 3]; int2 = intStack[isp + 2]; - Static260.method3849(int3, (int1 & 0x3FFF) - Static142.originZ, int2, (int1 >> 14 & 0x3FFF) - Static225.originX, local652); + Camera.method3849(int3, (int1 & 0x3FFF) - Camera.originZ, int2, (int1 >> 14 & 0x3FFF) - Camera.originX, local652); continue; } if (opcode == 5502) { @@ -3176,53 +3417,53 @@ public final class ScriptRunner { if (int1 >= 2) { throw new RuntimeException(); } - Static155.anInt3718 = int1; + Camera.anInt3718 = int1; int3 = intStack[isp + 1]; - if (Static107.anIntArrayArrayArray9[Static155.anInt3718].length >> 1 <= int3 + 1) { + if (Camera.anIntArrayArrayArray9[Camera.anInt3718].length >> 1 <= int3 + 1) { throw new RuntimeException(); } - Static127.anInt3125 = int3; - Static233.anInt5224 = 0; - Static228.anInt5101 = intStack[isp + 2]; - Static114.anInt5843 = intStack[isp + 3]; + Camera.anInt3125 = int3; + Camera.anInt5224 = 0; + Camera.anInt5101 = intStack[isp + 2]; + Camera.anInt5843 = intStack[isp + 3]; int2 = intStack[isp + 4]; if (int2 >= 2) { throw new RuntimeException(); } - Static52.anInt1694 = int2; + Camera.anInt1694 = int2; local652 = intStack[isp + 5]; - if (Static107.anIntArrayArrayArray9[Static52.anInt1694].length >> 1 <= local652 + 1) { + if (Camera.anIntArrayArrayArray9[Camera.anInt1694].length >> 1 <= local652 + 1) { throw new RuntimeException(); } - Static75.anInt2119 = local652; - Static227.cameraType = 3; + Camera.anInt2119 = local652; + Camera.cameraType = 3; continue; } - if (opcode == 5503) { - Static35.resetCameraEffects(); + if (opcode == Cs2Opcodes.cameraUnlock) { + Camera.resetCameraEffects(); continue; } if (opcode == 5504) { isp -= 2; Camera.pitchTarget = intStack[isp]; Camera.yawTarget = intStack[isp + 1]; - if (Static227.cameraType == 2) { - Static184.cameraYaw = (int)Camera.yawTarget; - Static240.cameraPitch = (int)Camera.pitchTarget; + if (Camera.cameraType == 2) { + Camera.cameraYaw = (int)Camera.yawTarget; + Camera.cameraPitch = (int)Camera.pitchTarget; } Camera.clampCameraAngle(); continue; } - if (opcode == 5505) { + if (opcode == Cs2Opcodes.cameraGetVrot) { intStack[isp++] = (int)Camera.pitchTarget; continue; } - if (opcode == 5506) { + if (opcode == Cs2Opcodes.cameraGetHrot) { intStack[isp++] = (int)Camera.yawTarget; continue; } } else if (opcode < 5700) { - if (opcode == 5600) { + if (opcode == Cs2Opcodes.directlogin) { ssp -= 2; string = stringStack[ssp]; local2522 = stringStack[ssp + 1]; @@ -3233,11 +3474,11 @@ public final class ScriptRunner { } continue; } - if (opcode == 5601) { + if (opcode == Cs2Opcodes.skipLoginstage10) { LoginManager.method3395(); continue; } - if (opcode == 5602) { + if (opcode == Cs2Opcodes.resetRCs) { if (LoginManager.step == 0) { LoginManager.reply = -2; } @@ -3246,40 +3487,40 @@ public final class ScriptRunner { if (opcode == 5603) { isp -= 4; if (client.gameState == 10 && LoginManager.anInt4937 == 0 && LoginManager.step == 0 && CreateManager.step == 0 && WorldList.step == 0) { - Static125.method2448(intStack[isp + 2], intStack[isp + 3], intStack[isp], intStack[isp + 1]); + CreateManager.method2448(intStack[isp + 2], intStack[isp + 3], intStack[isp], intStack[isp + 1]); } continue; } - if (opcode == 5604) { + if (opcode == Cs2Opcodes.sendRequestAccount) { ssp--; if (client.gameState == 10 && LoginManager.anInt4937 == 0 && LoginManager.step == 0 && CreateManager.step == 0 && WorldList.step == 0) { - ClientProt.method1691(stringStack[ssp].encode37()); + CreateManager.method1691(stringStack[ssp].encode37()); } continue; } - if (opcode == 5605) { + if (opcode == Cs2Opcodes.sendCreateAccount) { isp -= 4; ssp -= 2; if (client.gameState == 10 && LoginManager.anInt4937 == 0 && LoginManager.step == 0 && CreateManager.step == 0 && WorldList.step == 0) { - Static40.method1016(intStack[isp], intStack[isp + 3], intStack[isp + 1], stringStack[ssp + 1], stringStack[ssp].encode37(), intStack[isp + 2]); + CreateManager.method1016(intStack[isp], intStack[isp + 3], intStack[isp + 1], stringStack[ssp + 1], stringStack[ssp].encode37(), intStack[isp + 2]); } continue; } - if (opcode == 5606) { + if (opcode == Cs2Opcodes.resetAccountCreateRC) { if (CreateManager.step == 0) { CreateManager.reply = -2; } continue; } - if (opcode == 5607) { + if (opcode == Cs2Opcodes.getGameloginRc) { intStack[isp++] = LoginManager.reply; continue; } - if (opcode == 5608) { + if (opcode == Cs2Opcodes.getWorldswitchTimer) { intStack[isp++] = LoginManager.hopTime; continue; } - if (opcode == 5609) { + if (opcode == Cs2Opcodes.getAccountCreateRC) { intStack[isp++] = CreateManager.reply; continue; } @@ -3290,7 +3531,7 @@ public final class ScriptRunner { CreateManager.suggestedNames = null; continue; } - if (opcode == 5611) { + if (opcode == Cs2Opcodes.getDetailedRC) { intStack[isp++] = LoginManager.disallowResult; continue; } @@ -3724,32 +3965,32 @@ public final class ScriptRunner { continue; } } else if (opcode < 6400) { - if (opcode == 6300) { + if (opcode == Cs2Opcodes.getMinute) { intStack[isp++] = (int) (MonotonicClock.currentTimeMillis() / 60000L); continue; } - if (opcode == 6301) { + if (opcode == Cs2Opcodes.getCurrentDaysSinceLaunch) { intStack[isp++] = (int) (MonotonicClock.currentTimeMillis() / 86400000L) - 11745; continue; } - if (opcode == 6302) { + if (opcode == Cs2Opcodes.getDaysSinceLaunch) { isp -= 3; int2 = intStack[isp + 2]; int3 = intStack[isp + 1]; int1 = intStack[isp]; aCalendar2.clear(); - aCalendar2.set(11, 12); + aCalendar2.set(Calendar.HOUR_OF_DAY, 12); aCalendar2.set(int2, int3, int1); intStack[isp++] = (int) (aCalendar2.getTime().getTime() / 86400000L) - 11745; continue; } - if (opcode == 6303) { + if (opcode == Cs2Opcodes.getYear) { aCalendar2.clear(); aCalendar2.setTime(new Date(MonotonicClock.currentTimeMillis())); - intStack[isp++] = aCalendar2.get(1); + intStack[isp++] = aCalendar2.get(Calendar.YEAR); continue; } - if (opcode == 6304) { + if (opcode == Cs2Opcodes.isLeapYear) { local1552 = true; isp--; int1 = intStack[isp]; diff --git a/client/src/main/java/rt4/Static107.java b/client/src/main/java/rt4/Static107.java index 451c8bf..527f755 100644 --- a/client/src/main/java/rt4/Static107.java +++ b/client/src/main/java/rt4/Static107.java @@ -10,7 +10,4 @@ public final class Static107 { @OriginalMember(owner = "client!id", name = "b", descriptor = "I") public static int anInt2875 = -1; - @OriginalMember(owner = "client!id", name = "d", descriptor = "[[[I") - public static final int[][][] anIntArrayArrayArray9 = new int[2][][]; - } diff --git a/client/src/main/java/rt4/Static114.java b/client/src/main/java/rt4/Static114.java index 03a76d6..c0acedf 100644 --- a/client/src/main/java/rt4/Static114.java +++ b/client/src/main/java/rt4/Static114.java @@ -7,9 +7,6 @@ import org.openrs2.deob.annotation.Pc; public final class Static114 { - @OriginalMember(owner = "client!j", name = "K", descriptor = "I") - public static int anInt5843 = 0; - @OriginalMember(owner = "client!j", name = "O", descriptor = "[I") public static final int[] anIntArray565 = new int[] { 1, -1, -1, 1 }; diff --git a/client/src/main/java/rt4/Static125.java b/client/src/main/java/rt4/Static125.java index 181f3e5..ef575ef 100644 --- a/client/src/main/java/rt4/Static125.java +++ b/client/src/main/java/rt4/Static125.java @@ -1,6 +1,5 @@ package rt4; -import org.openrs2.deob.annotation.OriginalArg; import org.openrs2.deob.annotation.OriginalMember; public final class Static125 { @@ -8,18 +7,4 @@ public final class Static125 { @OriginalMember(owner = "client!jl", name = "v", descriptor = "I") public static int anInt3096 = 0; - @OriginalMember(owner = "client!jl", name = "a", descriptor = "(IIIII)V") - public static void method2448(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3) { - Protocol.outboundBuffer.offset = 0; - Protocol.outboundBuffer.p1(147); - Protocol.outboundBuffer.p1(arg2); - Protocol.outboundBuffer.p1(arg3); - Protocol.outboundBuffer.p2(arg0); - Protocol.outboundBuffer.p2(arg1); - CreateManager.loops = 0; - CreateManager.errors = 0; - CreateManager.step = 1; - CreateManager.reply = -3; - } - } diff --git a/client/src/main/java/rt4/Static127.java b/client/src/main/java/rt4/Static127.java index 70afabf..0926fef 100644 --- a/client/src/main/java/rt4/Static127.java +++ b/client/src/main/java/rt4/Static127.java @@ -1,6 +1,5 @@ package rt4; -import java.io.UnsupportedEncodingException; import java.nio.charset.StandardCharsets; import org.openrs2.deob.annotation.OriginalArg; @@ -29,9 +28,6 @@ public final class Static127 { @OriginalMember(owner = "client!k", name = "l", descriptor = "[I") public static int[] anIntArray292; - @OriginalMember(owner = "client!k", name = "i", descriptor = "I") - public static int anInt3125 = 0; - @OriginalMember(owner = "client!k", name = "m", descriptor = "Z") public static boolean neverRemoveRoofs = false; @@ -57,13 +53,13 @@ public final class Static127 { client.setGameState(25); } Static114.drawTextOnScreen(true, LocalizedText.LOADING); - @Pc(53) int local53 = Static142.originZ; - @Pc(55) int local55 = Static225.originX; - Static142.originZ = arg1 * 8 - 48; - Static225.originX = (arg2 - 6) * 8; + @Pc(53) int local53 = Camera.originZ; + @Pc(55) int local55 = Camera.originX; + Camera.originZ = arg1 * 8 - 48; + Camera.originX = (arg2 - 6) * 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; + @Pc(81) int local81 = Camera.originZ - local53; + @Pc(86) int local86 = Camera.originX - local55; Static235.mapElementList = null; @Pc(96) int local96; @Pc(103) Npc local103; @@ -157,7 +153,7 @@ public final class Static127 { Static265.anInt5765 -= local81; Static245.anInt5375 -= local86; } else { - Static227.cameraType = 1; + Camera.cameraType = 1; } SoundPlayer.anInt4451 = 0; if (Static115.mapFlagX != 0) { diff --git a/client/src/main/java/rt4/Static141.java b/client/src/main/java/rt4/Static141.java index 78ff5ea..bae9a8c 100644 --- a/client/src/main/java/rt4/Static141.java +++ b/client/src/main/java/rt4/Static141.java @@ -1,6 +1,5 @@ package rt4; -import org.openrs2.deob.annotation.OriginalArg; import org.openrs2.deob.annotation.OriginalMember; public final class Static141 { @@ -8,19 +7,4 @@ public final class Static141 { @OriginalMember(owner = "client!lb", name = "z", descriptor = "I") public static int anInt3473; - @OriginalMember(owner = "client!lb", name = "a", descriptor = "(ZIIIBII)V") - public static void method2722(@OriginalArg(0) boolean arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(5) int arg4, @OriginalArg(6) int arg5) { - Static113.anInt4612 = arg3; - Static231.anInt5203 = arg2; - Static245.anInt5375 = arg5; - Static233.anInt5225 = arg1; - Static248.anInt4232 = arg4; - if (arg0 && Static113.anInt4612 >= 100) { - Static138.renderX = Static245.anInt5375 * 128 + 64; - Static134.renderZ = Static248.anInt4232 * 128 + 64; - Static5.anInt40 = SceneGraph.getTileHeight(Player.level, Static138.renderX, Static134.renderZ) - Static231.anInt5203; - } - Static227.cameraType = 2; - } - } diff --git a/client/src/main/java/rt4/Static142.java b/client/src/main/java/rt4/Static142.java index b7f256e..49d8fb7 100644 --- a/client/src/main/java/rt4/Static142.java +++ b/client/src/main/java/rt4/Static142.java @@ -1,10 +1,5 @@ package rt4; -import org.openrs2.deob.annotation.OriginalMember; - public final class Static142 { - @OriginalMember(owner = "client!lc", name = "n", descriptor = "I") - public static int originZ; - } diff --git a/client/src/main/java/rt4/Static155.java b/client/src/main/java/rt4/Static155.java index 42ff0ee..af1166f 100644 --- a/client/src/main/java/rt4/Static155.java +++ b/client/src/main/java/rt4/Static155.java @@ -9,10 +9,7 @@ public final class Static155 { @OriginalMember(owner = "client!me", name = "nb", descriptor = "I") public static int anInt3751; - @OriginalMember(owner = "client!me", name = "k", descriptor = "I") - public static int anInt3718 = -1; - - @OriginalMember(owner = "client!me", name = "a", descriptor = "(II)I") + @OriginalMember(owner = "client!me", name = "a", descriptor = "(II)I") public static int getVarbit(@OriginalArg(1) int arg0) { @Pc(13) VarbitType local13 = VarbitTypeList.get(arg0); @Pc(16) int local16 = local13.baseVar; diff --git a/client/src/main/java/rt4/Static158.java b/client/src/main/java/rt4/Static158.java index 7614898..5ee850b 100644 --- a/client/src/main/java/rt4/Static158.java +++ b/client/src/main/java/rt4/Static158.java @@ -36,9 +36,9 @@ public final class Static158 { @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.regionBitPacked[local16] >> 8) * 64 - Static225.originX; + @Pc(125) int local125 = local113 + (Static238.regionBitPacked[local16] >> 8) * 64 - Camera.originX; @Pc(129) int local129 = local103 & 0x3F; - @Pc(142) int local142 = local129 + (Static238.regionBitPacked[local16] & 0xFF) * 64 - Static142.originZ; + @Pc(142) int local142 = local129 + (Static238.regionBitPacked[local16] & 0xFF) * 64 - Camera.originZ; @Pc(148) NpcType local148 = NpcTypeList.get(local74.g2()); if (NpcList.npcs[local97] == null && (local148.aByte10 & 0x1) > 0 && local107 == Static41.anInt1316 && local125 >= 0 && local148.size + local125 < 104 && local142 >= 0 && local142 + local148.size < 104) { NpcList.npcs[local97] = new Npc(); diff --git a/client/src/main/java/rt4/Static18.java b/client/src/main/java/rt4/Static18.java index 6be9031..2faa1f0 100644 --- a/client/src/main/java/rt4/Static18.java +++ b/client/src/main/java/rt4/Static18.java @@ -50,8 +50,8 @@ public final class Static18 { local55 = local72 * local57 >> 16; local57 = local57 * local68 >> 16; } - Static240.cameraPitch = arg6; - Static184.cameraYaw = arg4; + Camera.cameraPitch = arg6; + Camera.cameraYaw = arg4; Static134.renderZ = arg5 - local57; Static138.renderX = arg0 - local55; Static5.anInt40 = arg2 - local59; diff --git a/client/src/main/java/rt4/Static184.java b/client/src/main/java/rt4/Static184.java index 7bf2b11..bc51994 100644 --- a/client/src/main/java/rt4/Static184.java +++ b/client/src/main/java/rt4/Static184.java @@ -6,9 +6,6 @@ import org.openrs2.deob.annotation.Pc; public final class Static184 { - @OriginalMember(owner = "client!ol", name = "ib", descriptor = "I") - public static int cameraYaw; - @OriginalMember(owner = "client!ol", name = "a", descriptor = "(IIIILclient!th;IJIIII)Z") public static boolean method3387(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) Entity arg4, @OriginalArg(5) int arg5, @OriginalArg(6) long arg6, @OriginalArg(7) int arg7, @OriginalArg(8) int arg8, @OriginalArg(9) int arg9, @OriginalArg(10) int arg10) { return arg4 == null ? true : Static105.method2256(arg0, arg7, arg8, arg9 + 1 - arg7, arg10 - arg8 + 1, arg1, arg2, arg3, arg4, arg5, true, arg6); diff --git a/client/src/main/java/rt4/Static198.java b/client/src/main/java/rt4/Static198.java index 40f680a..3e36175 100644 --- a/client/src/main/java/rt4/Static198.java +++ b/client/src/main/java/rt4/Static198.java @@ -20,10 +20,10 @@ public final class Static198 { @Pc(42) int local42 = arg2 - Static134.renderZ; @Pc(46) int local46 = local38 - Static5.anInt40; @Pc(50) int local50 = arg5 - Static138.renderX; - @Pc(54) int local54 = MathUtils.sin[Static240.cameraPitch]; - @Pc(58) int local58 = MathUtils.cos[Static240.cameraPitch]; - @Pc(62) int local62 = MathUtils.sin[Static184.cameraYaw]; - @Pc(66) int local66 = MathUtils.cos[Static184.cameraYaw]; + @Pc(54) int local54 = MathUtils.sin[Camera.cameraPitch]; + @Pc(58) int local58 = MathUtils.cos[Camera.cameraPitch]; + @Pc(62) int local62 = MathUtils.sin[Camera.cameraYaw]; + @Pc(66) int local66 = MathUtils.cos[Camera.cameraYaw]; @Pc(76) int local76 = local50 * local66 + local62 * local42 >> 16; @Pc(87) int local87 = local42 * local66 - local62 * local50 >> 16; @Pc(89) int local89 = local76; diff --git a/client/src/main/java/rt4/Static225.java b/client/src/main/java/rt4/Static225.java index ae14e5b..676f965 100644 --- a/client/src/main/java/rt4/Static225.java +++ b/client/src/main/java/rt4/Static225.java @@ -6,9 +6,6 @@ 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 = "h", descriptor = "I") public static int anInt5073 = -1; diff --git a/client/src/main/java/rt4/Static227.java b/client/src/main/java/rt4/Static227.java index 1bdc9c1..16cef90 100644 --- a/client/src/main/java/rt4/Static227.java +++ b/client/src/main/java/rt4/Static227.java @@ -4,9 +4,6 @@ import org.openrs2.deob.annotation.OriginalMember; public final class Static227 { - @OriginalMember(owner = "client!sg", name = "o", descriptor = "I") - public static int cameraType; - @OriginalMember(owner = "client!sg", name = "e", descriptor = "Lclient!na;") public static final JagString SETTINGS = JagString.parse("settings"); diff --git a/client/src/main/java/rt4/Static228.java b/client/src/main/java/rt4/Static228.java index ad0c01c..15f5d16 100644 --- a/client/src/main/java/rt4/Static228.java +++ b/client/src/main/java/rt4/Static228.java @@ -8,10 +8,8 @@ public final class Static228 { @OriginalMember(owner = "client!dc", name = "db", descriptor = "[[B") public static final byte[][] aByteArrayArray6 = new byte[50][]; - @OriginalMember(owner = "client!sh", name = "c", descriptor = "I") - public static int anInt5101 = 0; - @OriginalMember(owner = "client!sh", name = "e", descriptor = "Lclient!na;") + @OriginalMember(owner = "client!sh", name = "e", descriptor = "Lclient!na;") public static final JagString aClass100_967 = JagString.parse(""); @OriginalMember(owner = "client!sh", name = "f", descriptor = "I") diff --git a/client/src/main/java/rt4/Static233.java b/client/src/main/java/rt4/Static233.java index 23cc564..cdd185f 100644 --- a/client/src/main/java/rt4/Static233.java +++ b/client/src/main/java/rt4/Static233.java @@ -21,10 +21,7 @@ public final class Static233 { @OriginalMember(owner = "client!t", name = "y", descriptor = "I") public static int loadingScreenState = 0; - @OriginalMember(owner = "client!t", name = "z", descriptor = "I") - public static int anInt5224 = 0; - - @OriginalMember(owner = "client!t", name = "C", descriptor = "Lclient!na;") + @OriginalMember(owner = "client!t", name = "C", descriptor = "Lclient!na;") public static final JagString aClass100_994 = JagString.parse(")3"); @OriginalMember(owner = "client!t", name = "a", descriptor = "(IIIZIII)V") @@ -34,7 +31,7 @@ public final class Static233 { while (local5.length > local3) { @Pc(17) MapMarker local17 = local5[local3]; if (local17 != null && local17.type == 2) { - Static198.method1026(arg0 >> 1, arg4, (local17.anInt4046 - Static142.originZ << 7) + local17.anInt4047, local17.anInt4050 * 2, arg2 >> 1, local17.anInt4045 + (local17.targetX - Static225.originX << 7), arg3); + Static198.method1026(arg0 >> 1, arg4, (local17.anInt4046 - Camera.originZ << 7) + local17.anInt4047, local17.anInt4050 * 2, arg2 >> 1, local17.anInt4045 + (local17.targetX - Camera.originX << 7), arg3); if (Static65.anInt1951 > -1 && client.loop % 20 < 10) { Sprites.headhints[local17.anInt4048].render(arg1 + Static65.anInt1951 - 12, arg5 + -28 - -Static16.anInt548); } diff --git a/client/src/main/java/rt4/Static240.java b/client/src/main/java/rt4/Static240.java index a92ebb5..199d044 100644 --- a/client/src/main/java/rt4/Static240.java +++ b/client/src/main/java/rt4/Static240.java @@ -4,9 +4,6 @@ import org.openrs2.deob.annotation.OriginalMember; public final class Static240 { - @OriginalMember(owner = "client!tg", name = "b", descriptor = "I") - public static int cameraPitch; - @OriginalMember(owner = "client!tg", name = "e", descriptor = "Lclient!na;") public static final JagString aClass100_1008 = JagString.parse(""); diff --git a/client/src/main/java/rt4/Static252.java b/client/src/main/java/rt4/Static252.java index 2dad851..57b3339 100644 --- a/client/src/main/java/rt4/Static252.java +++ b/client/src/main/java/rt4/Static252.java @@ -32,7 +32,7 @@ public final class Static252 { Static243.anIntArray476[local33] = 1000000; Static50.anIntArray134[local33] = 0; } - if (Static227.cameraType != 1) { + if (Camera.cameraType != 1) { local33 = SceneGraph.getTileHeight(Player.level, Static138.renderX, Static134.renderZ); if (local33 - Static5.anInt40 < 800 && (SceneGraph.tileFlags[Player.level][Static138.renderX >> 7][Static134.renderZ >> 7] & 0x4) != 0) { Static254.method4348(false, Static138.renderX >> 7, Static134.renderZ >> 7, SceneGraph.tiles, 1); @@ -42,7 +42,7 @@ public final class Static252 { if ((SceneGraph.tileFlags[Player.level][PlayerList.self.xFine >> 7][PlayerList.self.zFine >> 7] & 0x4) != 0) { Static254.method4348(false, PlayerList.self.xFine >> 7, PlayerList.self.zFine >> 7, SceneGraph.tiles, 0); } - if (Static240.cameraPitch >= 310) { + if (Camera.cameraPitch >= 310) { return; } @Pc(135) int local135 = PlayerList.self.zFine >> 7; diff --git a/client/src/main/java/rt4/Static253.java b/client/src/main/java/rt4/Static253.java index baf4079..b45a4ee 100644 --- a/client/src/main/java/rt4/Static253.java +++ b/client/src/main/java/rt4/Static253.java @@ -35,7 +35,7 @@ public final class Static253 { } @Pc(59) int local59; @Pc(57) int local57; - if (Static227.cameraType == 1) { + if (Camera.cameraType == 1) { local57 = Static230.anInt5161 + (int)Camera.yawTarget & 0x7FF; local59 = (int)Camera.pitchTarget; if (local59 < Static234.anInt5245 / 256) { @@ -49,23 +49,23 @@ public final class Static253 { local57 = Static5.anInt40; local59 = Static138.renderX; @Pc(121) int local121 = Static134.renderZ; - @Pc(123) int local123 = Static240.cameraPitch; - @Pc(125) int local125 = Static184.cameraYaw; + @Pc(123) int local123 = Camera.cameraPitch; + @Pc(125) int local125 = Camera.cameraYaw; @Pc(127) int local127; @Pc(171) int local171; for (local127 = 0; local127 < 5; local127++) { if (Static176.customCameraActive[local127]) { local171 = (int) ((double) -Static222.cameraJitter[local127] + (double) (Static222.cameraJitter[local127] * 2 + 1) * Math.random() + Math.sin((double) Static31.anIntArray76[local127] * ((double) Static202.cameraFrequency[local127] / 100.0D)) * (double) Static276.cameraAmplitude[local127]); if (local127 == 3) { - Static184.cameraYaw = local171 + Static184.cameraYaw & 0x7FF; + Camera.cameraYaw = local171 + Camera.cameraYaw & 0x7FF; } if (local127 == 4) { - Static240.cameraPitch += local171; - if (Static240.cameraPitch < 128) { - Static240.cameraPitch = 128; + Camera.cameraPitch += local171; + if (Camera.cameraPitch < 128) { + Camera.cameraPitch = 128; } - if (Static240.cameraPitch > 383) { - Static240.cameraPitch = 383; + if (Camera.cameraPitch > 383) { + Camera.cameraPitch = 383; } } if (local127 == 2) { @@ -82,9 +82,9 @@ public final class Static253 { Static252.method4302(); if (GlRenderer.enabled) { GlRaster.setClip(arg2, arg4, arg2 + arg3, arg4 - -arg0); - @Pc(248) float local248 = (float) Static240.cameraPitch * 0.17578125F; - @Pc(253) float local253 = (float) Static184.cameraYaw * 0.17578125F; - if (Static227.cameraType == 3) { + @Pc(248) float local248 = (float) Camera.cameraPitch * 0.17578125F; + @Pc(253) float local253 = (float) Camera.cameraYaw * 0.17578125F; + if (Camera.cameraType == 3) { local248 = Static146.aFloat15 * 360.0F / 6.2831855F; local253 = Static84.aFloat10 * 360.0F / 6.2831855F; } @@ -119,9 +119,9 @@ public final class Static253 { } LightingManager.method2394(client.loop, !Preferences.flickeringEffectsOn); GlRenderer.clearColorAndDepthBuffers(local171); - Static143.method2731(Static240.cameraPitch, Static134.renderZ, Static5.anInt40, Static138.renderX, Static184.cameraYaw); + Static143.method2731(Camera.cameraPitch, Static134.renderZ, Static5.anInt40, Static138.renderX, Camera.cameraYaw); GlRenderer.anInt5323 = client.loop; - Static156.method2954(Static138.renderX, Static5.anInt40, Static134.renderZ, Static240.cameraPitch, Static184.cameraYaw, Static266.aByteArrayArrayArray15, Static79.anIntArray205, Static149.anIntArray338, Static267.anIntArray518, Static50.anIntArray134, Static243.anIntArray476, Player.level + 1, local387, PlayerList.self.xFine >> 7, PlayerList.self.zFine >> 7); + Static156.method2954(Static138.renderX, Static5.anInt40, Static134.renderZ, Camera.cameraPitch, Camera.cameraYaw, Static266.aByteArrayArrayArray15, Static79.anIntArray205, Static149.anIntArray338, Static267.anIntArray518, Static50.anIntArray134, Static243.anIntArray476, Player.level + 1, local387, PlayerList.self.xFine >> 7, PlayerList.self.zFine >> 7); Static263.aBoolean299 = true; LightingManager.method2390(); Static143.method2731(0, 0, 0, 0, 0); @@ -131,7 +131,7 @@ public final class Static253 { Static233.method4000(arg3, arg2, arg0, Static223.anInt5029, Static223.anInt5029, arg4); } else { SoftwareRaster.fillRect(arg2, arg4, arg3, arg0, 0); - Static156.method2954(Static138.renderX, Static5.anInt40, Static134.renderZ, Static240.cameraPitch, Static184.cameraYaw, Static266.aByteArrayArrayArray15, Static79.anIntArray205, Static149.anIntArray338, Static267.anIntArray518, Static50.anIntArray134, Static243.anIntArray476, Player.level + 1, local387, PlayerList.self.xFine >> 7, PlayerList.self.zFine >> 7); + Static156.method2954(Static138.renderX, Static5.anInt40, Static134.renderZ, Camera.cameraPitch, Camera.cameraYaw, Static266.aByteArrayArrayArray15, Static79.anIntArray205, Static149.anIntArray338, Static267.anIntArray518, Static50.anIntArray134, Static243.anIntArray476, Player.level + 1, local387, PlayerList.self.xFine >> 7, PlayerList.self.zFine >> 7); client.audioLoop(); Static223.method3858(); method2726(arg4, arg3, arg2, 256, arg0, 256); @@ -139,11 +139,11 @@ public final class Static253 { } ((Js5GlTextureProvider) Rasteriser.textureProvider).method3239(Static178.anInt4247); Static115.method2310(arg3, arg4, arg0, arg2); - Static240.cameraPitch = local123; + Camera.cameraPitch = local123; Static134.renderZ = local121; Static5.anInt40 = local57; Static138.renderX = local59; - Static184.cameraYaw = local125; + Camera.cameraYaw = local125; if (Static19.aBoolean43 && client.js5NetQueue.method2328() == 0) { Static19.aBoolean43 = false; } diff --git a/client/src/main/java/rt4/Static26.java b/client/src/main/java/rt4/Static26.java index b3463e5..795cf7d 100644 --- a/client/src/main/java/rt4/Static26.java +++ b/client/src/main/java/rt4/Static26.java @@ -24,8 +24,8 @@ public final class Static26 { for (@Pc(25) int local25 = 0; local25 < local13; local25++) { @Pc(32) byte[] local32 = local19[local25]; if (local32 != null) { - @Pc(45) int local45 = (Static238.regionBitPacked[local25] >> 8) * 64 - Static225.originX; - @Pc(56) int local56 = (Static238.regionBitPacked[local25] & 0xFF) * 64 - Static142.originZ; + @Pc(45) int local45 = (Static238.regionBitPacked[local25] >> 8) * 64 - Camera.originX; + @Pc(56) int local56 = (Static238.regionBitPacked[local25] & 0xFF) * 64 - Camera.originZ; client.audioLoop(); Static124.method2437(local45, arg0, local32, local56, PathFinder.collisionMaps); } diff --git a/client/src/main/java/rt4/Static260.java b/client/src/main/java/rt4/Static260.java index 6bce356..72f466c 100644 --- a/client/src/main/java/rt4/Static260.java +++ b/client/src/main/java/rt4/Static260.java @@ -11,33 +11,6 @@ public final class Static260 { @OriginalMember(owner = "client!eg", name = "a", descriptor = "I") public static int anInt1744; - @OriginalMember(owner = "client!vd", name = "a", descriptor = "(IIIIBI)V") - public static void method3849(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(5) int arg4) { - Static133.anInt5230 = arg2; - Static265.anInt5765 = arg1; - Static233.anInt5217 = arg4; - Static251.anInt5449 = arg3; - anInt1744 = arg0; - if (Static233.anInt5217 >= 100) { - @Pc(30) int local30 = Static251.anInt5449 * 128 + 64; - @Pc(36) int local36 = Static265.anInt5765 * 128 + 64; - @Pc(44) int local44 = SceneGraph.getTileHeight(Player.level, local30, local36) - anInt1744; - @Pc(49) int local49 = local44 - Static5.anInt40; - @Pc(54) int local54 = local30 - Static138.renderX; - @Pc(59) int local59 = local36 - Static134.renderZ; - @Pc(70) int local70 = (int) Math.sqrt((double) (local59 * local59 + local54 * local54)); - Static240.cameraPitch = (int) (Math.atan2((double) local49, (double) local70) * 325.949D) & 0x7FF; - Static184.cameraYaw = (int) (Math.atan2((double) local54, (double) local59) * -325.949D) & 0x7FF; - if (Static240.cameraPitch < 128) { - Static240.cameraPitch = 128; - } - if (Static240.cameraPitch > 383) { - Static240.cameraPitch = 383; - } - } - Static227.cameraType = 2; - } - @OriginalMember(owner = "client!vd", name = "b", descriptor = "(IIII)Z") public static boolean method3850(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3) { if (!Static9.method187(arg0, arg1, arg2)) { diff --git a/client/src/main/java/rt4/Static273.java b/client/src/main/java/rt4/Static273.java index 70ae9e6..63648ae 100644 --- a/client/src/main/java/rt4/Static273.java +++ b/client/src/main/java/rt4/Static273.java @@ -110,10 +110,10 @@ public final class Static273 { local41 = Static155.getVarbit(local124); } if (local46 == 18) { - local41 = (PlayerList.self.xFine >> 7) + Static225.originX; + local41 = (PlayerList.self.xFine >> 7) + Camera.originX; } if (local46 == 19) { - local41 = (PlayerList.self.zFine >> 7) + Static142.originZ; + local41 = (PlayerList.self.zFine >> 7) + Camera.originZ; } if (local46 == 20) { local41 = local33[local39++]; diff --git a/client/src/main/java/rt4/Static278.java b/client/src/main/java/rt4/Static278.java index d0e1f3e..23aaca0 100644 --- a/client/src/main/java/rt4/Static278.java +++ b/client/src/main/java/rt4/Static278.java @@ -121,10 +121,10 @@ public final class Static278 { MusicPlayer.groupId = -1; AreaSoundManager.clear(true); Static230.dynamicMapRegion = false; - Static142.originZ = 0; + Camera.originZ = 0; Static80.centralZoneX = 0; Static52.anInt1695 = 0; - Static225.originX = 0; + Camera.originX = 0; for (local19 = 0; local19 < Static143.hintMapMarkers.length; local19++) { Static143.hintMapMarkers[local19] = null; } @@ -144,7 +144,7 @@ public final class Static278 { } } } - Static35.resetCameraEffects(); + Camera.resetCameraEffects(); Protocol.verifyId = 0; VarpDomain.reset(); Static73.method1596(true); diff --git a/client/src/main/java/rt4/Static35.java b/client/src/main/java/rt4/Static35.java index 6d04d1c..be801d9 100644 --- a/client/src/main/java/rt4/Static35.java +++ b/client/src/main/java/rt4/Static35.java @@ -99,15 +99,4 @@ public final class Static35 { return 0L; } - @OriginalMember(owner = "client!cl", name = "e", descriptor = "(I)V") - public static void resetCameraEffects() { - for (@Pc(3) int local3 = 0; local3 < 5; local3++) { - Static176.customCameraActive[local3] = false; - } - Static133.anInt5230 = 0; - Static233.anInt5217 = 0; - Static155.anInt3718 = -1; - Static52.anInt1694 = -1; - Static227.cameraType = 1; - } } diff --git a/client/src/main/java/rt4/Static40.java b/client/src/main/java/rt4/Static40.java index 0d46959..5061669 100644 --- a/client/src/main/java/rt4/Static40.java +++ b/client/src/main/java/rt4/Static40.java @@ -30,39 +30,7 @@ public final class Static40 { Static165.anInt4035 = arg0; } - @OriginalMember(owner = "client!da", name = "a", descriptor = "(IIIILclient!na;JI)V") - public static void method1016(@OriginalArg(0) int arg0, @OriginalArg(2) int arg1, @OriginalArg(3) int arg2, @OriginalArg(4) JagString password, @OriginalArg(5) long name, @OriginalArg(6) int arg5) { - @Pc(8) Buffer local8 = new Buffer(GlobalConfig.LOGIN_USE_STRINGS ? 129 : 128); - local8.p1(10); - local8.p2((int) (Math.random() * 99999.0D)); - local8.p2(530); - if (GlobalConfig.LOGIN_USE_STRINGS) { - local8.pjstr(Base37.decode37(name)); - } else { - local8.p8(name); - } - local8.p4((int) (Math.random() * 9.9999999E7D)); - local8.pjstr(password); - local8.p4((int) (Math.random() * 9.9999999E7D)); - local8.p2(client.affiliate); - local8.p1(arg0); - local8.p1(arg2); - local8.p4((int) (Math.random() * 9.9999999E7D)); - local8.p2(arg5); - local8.p2(arg1); - local8.p4((int) (Math.random() * 9.9999999E7D)); - local8.encryptRsa(GlobalConfig.RSA_EXPONENT, GlobalConfig.RSA_MODULUS); - Protocol.outboundBuffer.offset = 0; - Protocol.outboundBuffer.p1(36); - Protocol.outboundBuffer.p1(local8.offset); - Protocol.outboundBuffer.pBytes(local8.data, local8.offset); - CreateManager.reply = -3; - CreateManager.step = 1; - CreateManager.loops = 0; - CreateManager.errors = 0; - } - - @OriginalMember(owner = "client!da", name = "h", descriptor = "(B)V") + @OriginalMember(owner = "client!da", name = "h", descriptor = "(B)V") public static void method1019() { Component.sprites.method3103(); Component.models.method3103(); diff --git a/client/src/main/java/rt4/Static44.java b/client/src/main/java/rt4/Static44.java index e2761e4..54900f5 100644 --- a/client/src/main/java/rt4/Static44.java +++ b/client/src/main/java/rt4/Static44.java @@ -39,7 +39,7 @@ public final class Static44 { } } Inv.method2073(); - Static227.cameraType = 1; + Camera.cameraType = 1; client.setGameState(30); for (local35 = 0; local35 < 100; local35++) { Static186.aBooleanArray100[local35] = true; diff --git a/client/src/main/java/rt4/Static52.java b/client/src/main/java/rt4/Static52.java index c5b151b..7cf090d 100644 --- a/client/src/main/java/rt4/Static52.java +++ b/client/src/main/java/rt4/Static52.java @@ -17,10 +17,7 @@ public final class Static52 { @OriginalMember(owner = "client!eb", name = "u", descriptor = "I") public static int anInt1695; - @OriginalMember(owner = "client!eb", name = "t", descriptor = "I") - public static int anInt1694 = -1; - - @OriginalMember(owner = "client!eb", name = "a", descriptor = "(IIIIIII)I") + @OriginalMember(owner = "client!eb", name = "a", descriptor = "(IIIIIII)I") public static int method1286(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1, @OriginalArg(2) int arg2, @OriginalArg(3) int arg3, @OriginalArg(4) int arg4, @OriginalArg(6) int arg5) { if ((arg2 & 0x1) == 1) { @Pc(10) int local10 = arg4; diff --git a/client/src/main/java/rt4/Static73.java b/client/src/main/java/rt4/Static73.java index d90e6ec..ab3452f 100644 --- a/client/src/main/java/rt4/Static73.java +++ b/client/src/main/java/rt4/Static73.java @@ -39,7 +39,7 @@ public final class Static73 { client.setGameState(10); return; } - if (Static227.cameraType == 2) { + if (Camera.cameraType == 2) { Static138.renderX = Static245.anInt5375 << 7; Static134.renderZ = Static248.anInt4232 << 7; } else { diff --git a/client/src/main/java/rt4/Static75.java b/client/src/main/java/rt4/Static75.java index 7c317ab..ca11210 100644 --- a/client/src/main/java/rt4/Static75.java +++ b/client/src/main/java/rt4/Static75.java @@ -6,10 +6,7 @@ import org.openrs2.deob.annotation.Pc; public final class Static75 { - @OriginalMember(owner = "client!g", name = "d", descriptor = "I") - public static int anInt2119 = 0; - - @OriginalMember(owner = "client!g", name = "b", descriptor = "(I)V") + @OriginalMember(owner = "client!g", name = "b", descriptor = "(I)V") public static void setDefaultChunksAtmosphere() { @Pc(9) Environment local9 = new Environment(); for (@Pc(18) int local18 = 0; local18 < 13; local18++) { diff --git a/client/src/main/java/rt4/Static87.java b/client/src/main/java/rt4/Static87.java index 50e70f4..c886641 100644 --- a/client/src/main/java/rt4/Static87.java +++ b/client/src/main/java/rt4/Static87.java @@ -49,8 +49,8 @@ public final class Static87 { @Pc(49) int local49; @Pc(53) byte[] local53; for (local20 = 0; local20 < local18; local20++) { - local38 = (Static238.regionBitPacked[local20] >> 8) * 64 - Static225.originX; - local49 = (Static238.regionBitPacked[local20] & 0xFF) * 64 - Static142.originZ; + local38 = (Static238.regionBitPacked[local20] >> 8) * 64 - Camera.originX; + local49 = (Static238.regionBitPacked[local20] & 0xFF) * 64 - Camera.originZ; local53 = local9[local20]; if (local53 != null) { client.audioLoop(); @@ -58,8 +58,8 @@ public final class Static87 { } } for (local20 = 0; local20 < local18; local20++) { - local38 = (Static238.regionBitPacked[local20] >> 8) * 64 - Static225.originX; - local49 = (Static238.regionBitPacked[local20] & 0xFF) * 64 - Static142.originZ; + local38 = (Static238.regionBitPacked[local20] >> 8) * 64 - Camera.originX; + local49 = (Static238.regionBitPacked[local20] & 0xFF) * 64 - Camera.originZ; local53 = local9[local20]; if (local53 == null && Static52.anInt1695 < 800) { client.audioLoop(); @@ -496,7 +496,7 @@ public final class Static87 { } } if (local117 == 0) { - if (local30.aBoolean30) { + if (local30.filled) { if (GlRenderer.enabled) { GlRaster.method1186(local123, local114, local30.width, local30.height, local270); } else { @@ -507,7 +507,7 @@ public final class Static87 { } else { SoftwareRaster.drawRect(local123, local114, local30.width, local30.height, local270); } - } else if (local30.aBoolean30) { + } else if (local30.filled) { if (GlRenderer.enabled) { GlRaster.fillRectAlpha(local123, local114, local30.width, local30.height, local270, 256 - (local117 & 0xFF)); } else { diff --git a/client/src/main/java/rt4/WorldMap.java b/client/src/main/java/rt4/WorldMap.java index 921b6bf..20c64ee 100644 --- a/client/src/main/java/rt4/WorldMap.java +++ b/client/src/main/java/rt4/WorldMap.java @@ -137,9 +137,9 @@ public class WorldMap { targetZoom = 8.0F; } - @Pc(144) int local144 = (PlayerList.self.xFine >> 7) + Static225.originX - originX; + @Pc(144) int local144 = (PlayerList.self.xFine >> 7) + Camera.originX - originX; @Pc(153) int local153 = local144 + (int) (Math.random() * 10.0D) - 5; - @Pc(168) int local168 = originZ + length - Static142.originZ - (PlayerList.self.zFine >> 7) - 1; + @Pc(168) int local168 = originZ + length - Camera.originZ - (PlayerList.self.zFine >> 7) - 1; @Pc(177) int local177 = local168 + (int) (Math.random() * 10.0D) - 5; if (local153 >= 0 && width > local153 && local177 >= 0 && local177 < length) { anInt435 = local153; diff --git a/client/src/main/java/rt4/client.java b/client/src/main/java/rt4/client.java index e1ffd93..a073052 100644 --- a/client/src/main/java/rt4/client.java +++ b/client/src/main/java/rt4/client.java @@ -1010,7 +1010,7 @@ public final class client extends GameShell { if (!GlRenderer.enabled) { Flames.update(); } else if (LoginManager.step == 0 && CreateManager.step == 0) { - if (Static227.cameraType == 2) { + if (Camera.cameraType == 2) { Camera.updateLockedCamera(); } else { Camera.updateLoginScreenCamera(); diff --git a/gradlew b/gradlew old mode 100644 new mode 100755 diff --git a/ref/cs2-names.txt b/ref/cs2-names.txt new file mode 100644 index 0000000..831408b --- /dev/null +++ b/ref/cs2-names.txt @@ -0,0 +1,1897 @@ +NXT Beta + +1: if_setonstocktransmit +2: userflowflags +3: player_group_member_get_rank +4: worldmap_getmap +5: cam2_setlookatacceleration +6: detail_bgsoundvol +7: cc_setonplayergroupvarptransmit +8: stockmarket_getoffercount +9: ttv_stream_getstate +10: if_setmouseovercursor +11: cc_setsize +12: cam_forceangle +13: if_setplayermodel_self +14: detailcanmod_animdetail +15: chatcat_getphrasecount +16: if_setoptkeyignoreheld +17: if_setonhold +18: cc_getcolour +19: ttv_livestreams_getstream_next +20: coordz +21: chatcat_findsubcatbyshortcut +22: friend_is_referred +23: cc_getscrolly +24: cc_getmodelangle_y +25: if_getinvobject +26: cc_gety +27: cam2_removealleffects +28: if_setcolour +29: struct_param +30: resume_clanforumqfcdialog +31: detailcanset_reflections +32: enum_hasoutput +33: get_mousebuttons +34: sound_speech_volume +35: push_array_int +36: cc_setonmouseleave +37: os_physicalmemorysize +38: is_npc_visible +39: player_group_find +40: get_npc_name +41: cam2_setpositionangularinterpolation +42: inv_getnum +43: detail_particles +44: chat_playername_unfiltered +45: if_setoncamfinished +46: cam_setfollowheight +47: detailcanmod_spotshadows +48: get_selfyangle +49: worldmap_getzoom +50: cc_setaspect +51: get_minimenu_length +52: userdetail_lobby_lastloginday +53: sound_synth +54: cc_setdragdeadzone +55: worldmap_isloaded +56: if_debug_button6 +57: if_debug_button2 +58: if_resume_pausebutton +59: worldlist_specific_thisworld +60: oc_shardcount +61: oc_hasvarobj +62: worldmap_3dview_gettextfont +63: cc_setpausetext +64: player_group_member_is_owner +65: ttv_livestreams_getstream_start +66: cc_setonplayergrouptransmit +67: detail_lightdetail_high +68: telemetry_get_row_index +69: if_setgraphic +70: if_setdragdeadtime +71: opcount +72: stockmarket_getoffercompletedcount +73: branch_greater_than +74: worldmap_setflashtics_default +75: create_step_reached +76: oc_cert +77: if_debug_getcomname +78: detail_speechvol +79: cc_setmaxlines +80: oc_findnext +81: worldlist_switch +82: pop_int_local +83: fps_stats +84: activeclansettings_getbanneddisplayname +85: if_setoutline +86: worldmap_setflashtics +87: autosetup_dosetup +88: if_setonkey +89: cam2_setlookatorientation_yrotation +90: ttv_webcam_start +91: if_setdraggable +92: worldmap_perpetualflash +93: if_getmodel +94: create_suggest_name_request +95: friend_getslotfromname +96: if_setlinedirection +97: get_loc_screen_position +98: oc_members +99: login_request +100: worldmap_jumptosourcecoord_instant +101: detailcanset_vsync +102: detailget_ambientocclusion +103: cc_setobject_alwaysnum +104: login_request_social_network +105: stat_base +106: detailget_customcursors +107: cc_setopcursor +108: cam2_getlookatmode +109: if_setopcursor +110: if_set2dangle +111: stockmarket_getoffertype +112: cc_setonclanchanneltransmit +113: cam2_enable +114: login_ban_duration +115: cam_moveto +116: cam2_setlookatangularinterpolation +117: fullscreen_enter +118: detail_loadingscreentype +119: ttv_livestreams_update +120: is_gamescreen_state +121: cc_create +122: ignore_add +123: cam2_setpositionmode +124: quit +125: worldmap_3dview_getcoordfine +126: cc_getgraphicdimensions +127: if_sethflip +128: profile_cpu +129: if_gettrans +130: mec_category +131: worldlist_specific +132: sound_song_volume +133: get_obj_screen_position +134: if_getscrollheight +135: detailget_canchoosesafemode +136: if_opensubclient +137: notify_accountcreated +138: chatcat_getsubcatshortcut +139: lobby_entergamereply +140: if_settext +141: cam2_setlookatorientation_vector +142: detailcanmod_antialiasingmode +143: if_setonstattransmit +144: chat_getfilter_public +145: if_setonmisctransmit +146: quest_varpreq_count +147: push_int_local +148: detailcanset_orthographic +149: cc_setonvarcstrtransmit +150: keyheld_alt +151: if_getmodelxof +152: if_getcharindexatpos +153: if_setobject_wearcol_nonum +154: if_sethide +155: if_setonclanchanneltransmit +156: db_getfield +157: cc_setlinkfriend +158: get_entity_bounding_box +159: activeclansettings_getbannedcount +160: detail_soundvol +161: quest_varbitreq_count +162: os_ismac +163: cc_sethide +164: chat_getfilter_trade +165: preload_percent +166: if_getlayer +167: activeclansettings_getaffinedmuted +168: activechatphrase_setdynamicint +169: cam2_setpositionacceleration +170: map_isowner +171: cc_setontimer +172: cam2_setpositionmaxspeed_axis +173: if_setonrelease +174: facing_fine +175: mes +176: shader_preload_throttle +177: if_setpausetext +178: fullscreen_getmode +179: append +180: sound_vorbis_volume +181: cc_setdragrenderbehaviour +182: inv_getobj +183: chat_setfilter +184: cc_callonresize +185: detailcanmod_antialiasing_quality +186: if_setop +187: detailget_safemode +188: cc_setmodelzoom +189: cc_setretex +190: detailget_particles +191: stockmarket_getofferprice +192: create_name_validate_reply +193: detailget_fog_on +194: if_settextshadow +195: worldmap_setmap +196: date_isleapyear +197: worldmap_getconfigorigin +198: stockmarket_isofferadding +199: activeclanchannel_find_affined +200: cam2_getpositionmode +201: if_setongamepadtrigger +202: cc_setonscrollwheel +203: add +204: cc_getop +205: cc_setgraphicshadow +206: detailcanmod_ambientocclusion +207: basematerial +208: tostring_localised +209: get_obj_bounding_box +210: setobj +211: movecoord +212: clan_getchatuserworld +213: if_getinvcount +214: detail_antialiasing_default +215: is_targeted_entity +216: testbit +217: if_get2dangle +218: detailget_texturing +219: comlevel_active +220: detail_skydetail +221: detailget_chosesafemode +222: cc_invalidate +223: cam2_setlookatentity_npc +224: cc_gettext +225: if_setnoclickthrough +226: ttv_library_getstate +227: activeclansettings_find_listened +228: create_setunder13 +229: worldmap_jumptodisplaycoord_instant +230: detail_idleanims_many +231: or +232: oc_cost +233: autosetup_blackflaglast +234: if_settrans +235: fullscreen_exit +236: userdetail_lobby_jcoins_balance +237: cc_getopbase +238: if_debug_getcomcount +239: sethardcodedopcursors +240: worldmap_jumptodisplaycoord +241: worldmap_setflashloops_default +242: cc_dragpickup +243: and +244: autosetup_getlevel +245: cc_deleteall +246: if_setobject_nonum +247: if_setmodelangle +248: cc_getx +249: if_getscrollx +250: clan_getchatdisplayname +251: activeclansettings_find_affined +252: map_lang +253: branch_equals +254: detailcanset_bloom +255: if_gettext +256: cam2_setfieldofview +257: runenergy_visible +258: push_constant_int +259: shader_preload_percent +260: branch_if_true +261: enum_getreversecount_string +262: cam2_setspringproperties +263: db_find_with_count +264: push_array_int_and_index +265: activechatphrase_setdynamicobj +266: if_settextalign +267: cc_setvflip +268: detailget_bgsoundvol +269: defaultminimenu +270: video_advert_play +271: chatphrase_find +272: if_setlinkplayergroup +273: define_array +274: ignore_setnotes +275: detailget_idleanims_many +276: map_world +277: resume_namedialog +278: oc_wearpos +279: chatphrase_findnext +280: cam2_setpositionacceleration_axis +281: getwindowmode +282: cc_setonvartransmit +283: chatcat_findphrasebyshortcut +284: autosetup_setmin +285: detail_cpuusage +286: worldmap_closemap +287: cc_getmodel +288: quest_param +289: sound_group_start +290: get_obj_overlay_height +291: cc_npc_setcustomretex +292: worldmap_setcategorypriority +293: if_setfill +294: if_setongamepadaxis +295: bug_report +296: pop_varbit +297: cc_getmodelxof +298: cc_setdraggable +299: switch +300: if_getfontgraphic +301: openurl_shim +302: ttv_stream_stop +303: player_find_active_minimenu_entry +304: player_group_is_members_only +305: detailcanset_waterdetail +306: cam_reset +307: cam_removeroof +308: has_html5 +309: get_second_minimenu_entry +310: nc_param +311: worldlist_fetch +312: coordx_fine +313: detail_customcursors +314: db_findnext +315: if_setscrollpos +316: login_accountappeal +317: quest_questreq_count +318: if_setopkey +319: if_getnextsubid +320: if_setonsubchange +321: login_inprogress +322: coordz_fine +323: worldmap_getcurrentmap +324: email_validation_change_address +325: detailget_orthographic +326: cc_gettargetmask +327: detailget_reflections +328: chatphrase_getdynamiccommandparam_enum +329: detailget_hardshadows +330: append_num +331: cc_getgraphic +332: if_settextantimacro +333: mes_typed +334: mec_param +335: detailget_musicvol +336: if_getcharposatindex +337: ignore_del +338: autosetup_sethigh +339: stockmarket_getoffercompletedgold +340: worldlist_pingworlds +341: cam_smoothreset +342: sound_synth_rate +343: affinedclansettings_setmuted_fromchannel +344: if_setonclansettingstransmit +345: append_char +346: detail_loginvol +347: if_setretex +348: get_active_minimenu_entry +349: quest_statreq_met +350: oc_stackable +351: worldmap_disableelement +352: if_setmodelorigin +353: date_runeday_todate +354: if_setlinkfriend +355: if_setnpchead +356: autosetup_setmedium +357: worldmap_getsourcecoord +358: quest_allreqmet +359: if_get_gamescreen +360: cc_setcolour +361: cam2_setpositionspline_spline +362: cam2_legacycam_ready +363: keyheld_ctrl +364: enum_hasoutput_string +365: cc_setmodelangle +366: mec_textsize +367: detailcanmod_particles +368: quest_getname +369: if_npc_setcustomretex +370: enum_getoutputcount +371: if_debug_button8 +372: if_setopbase +373: clan_getchatuserrank +374: if_setobject_alwaysnum +375: cc_setfill +376: inv_stockbase +377: cc_settrans +378: sound_synth_volume +379: sound_jingle +380: cc_setongamepadtrigger +381: invother_getnum +382: telemetry_get_column_id +383: detailcanset_particles +384: oc_minimenu_colour_overridden +385: if_setonop +386: create_reply +387: scale +388: cam2_setlookatorientation_xmovement +389: chatphrase_getdynamiccommandcount +390: quest_questreq +391: oc_unshard +392: create_createrequest +393: if_npc_setcustomheadmodel +394: cc_getinvobject +395: text_switch +396: cam_dec_y +397: force_interface_drag +398: viewport_getfov +399: can_run_java_client +400: cc_resume_pausebutton +401: friend_setrank +402: cc_getfontgraphic +403: worldmap_flashelement +404: ttv_chat_sendmessage +405: detail_shadows +406: cc_setlinkfriendchat +407: detailcanmod_vsync +408: if_find +409: detailcanset_groundblending +410: interpolate +411: telemetry_get_group_count +412: cc_getscrollwidth +413: detailget_flickering_on +414: detail_stereo +415: if_setoninvtransmit +416: if_close +417: cc_getcharindexatpos +418: if_setscrollsize +419: min +420: cam2_setpositionentity_npc +421: if_setobject_wearcol_alwaysnum +422: friend_getworldname +423: cc_set2dangle +424: userdetail_lobby_graceexpiry +425: os_islinux +426: userdetail_lobby_lastloginaddress +427: if_setobject_wearcol +428: append_signnum +429: oc_multistacksize +430: detailget_lightdetail_high +431: cc_getmodelzoom +432: quest_statreq_stat +433: cc_setmodeltint +434: ttv_webcam_getstate +435: cc_setobject_wearcol_nonum +436: cc_getlayer +437: detailget_buildarea +438: cc_setonclansettingstransmit +439: sound_mixbuss_setlevel +440: cc_setonop +441: if_setondragcomplete +442: detailcanset_hardshadows +443: os_iswindows +444: oc_findrestart +445: cam2_setlookatspline_spline +446: cc_getmodelangle_x +447: detail_idleanims +448: detail_maxscreensize +449: ttv_chat_getstate +450: if_getx +451: cam2_setpositionspringproperties +452: ignore_is_temp +453: cc_setoninvtransmit +454: detailcanset_fog +455: if_debug_button1 +456: cc_settextshadow +457: player_group_get_create_seconds_to_now +458: detail_grounddecor_on +459: quest_type +460: cc_setlinkactiveclanchannel +461: friend_is_referrer +462: worldmap_disabletextsize +463: ttv_library_request +464: if_setclickmask +465: playercountry +466: tostring +467: detailcanmod_grounddecor +468: worldmap_getdisableelement +469: detail_buildarea +470: notify_accountcreatestarted +471: divide +472: userdetail_quickchat +473: cc_sethflip +474: cc_setparam +475: detailcanset_antialiasingmode +476: cam2_setlookatorientation_xrotation +477: detail_removeroofs_option +478: sound_vorbis_rate +479: if_setlinkactiveclanchannel +480: if_getwidth +481: cc_setonvarctransmit +482: worldlist_sort +483: cc_resetmodellighting +484: friend_platform +485: detailcanmod_lightingquality +486: lobby_enterlobby_social_network +487: cancel_interface_drag +488: chat_sendprivate +489: cc_getinvcount +490: stat_visible_xp_actual +491: activeclanchannel_getuserrank +492: cc_setobject_wearcol_alwaysnum +493: if_setonclickrepeat +494: cam2_setlookatspringproperties +495: enum_getreversecount +496: worldmap_getsize +497: friend_getname +498: lobby_leavelobby +499: affinedclansettings_addbanned_fromchannel +500: oc_param +501: cc_setdragdeadtime +502: detailget_antialiasing_default +503: docheat +504: ignore_getname_unfiltered +505: activeclanchannel_getuserdisplayname +506: npc_find_active_minimenu_entry +507: worldmap_setflashloops +508: telemetry_get_group_id +509: get_entity_screen_position +510: viewport_geteffectivesize +511: stat_visible_xp +512: detailget_spotshadows_on +513: oc_category +514: ttv_webcam_stop +515: friend_getworld +516: if_setondialogabort +517: resume_stringdialog +518: chat_setmode +519: cc_setonkey +520: cc_setonmouseover +521: cam2_setlookatacceleration_axis +522: sound_group_stop +523: detailget_maxdiskcachesize +524: detailget_toolkit_default +525: if_setondrag +526: string_length +527: resume_hsldialog +528: detailget_animdetail +529: if_setopchar +530: detail_shadowquality +531: cam2_getpositionentity_lookatangleoffsets +532: detail_waterdetail_high +533: affiliate +534: detailget_lightingquality +535: activeclansettings_getaffineddisplayname +536: ttv_webcam_getcap_count +537: telemetry_is_row_pinned +538: cc_setnpcmodel +539: clan_getchatcount +540: detail_toolkit_default +541: gender +542: worldmap_disableelements +543: ttv_stream_start +544: not +545: login_hoptime +546: minimenuopen +547: ttv_setdebugouput +548: ttv_logout +549: cc_setnpchead +550: login_disallowtrigger +551: viewport_clampfov +552: detailget_diskcachesize +553: worldmap_jumptosourcecoord +554: clientclock +555: parawidth +556: if_setonplayergroupvarptransmit +557: cc_setondrag +558: cc_setparam_int +559: worldmap_getdisableelementcategory +560: cc_setonhold +561: inv_freespace +562: string_distance +563: detailcanset_shadowquality +564: date_minutes +565: if_setongamepadbutton +566: chat_gethistorylength +567: cc_setopkeyignoreheld +568: spline_addpoint +569: detail_fog_on +570: targetmode_active +571: worldmap_flashelementcategory +572: cc_setoncamfinished +573: cc_setonclick +574: get_entity_overlay_height +575: ignore_getname +576: is_npc_active +577: oc_find +578: pop_array_int +579: player_group_member_get_same_world_var +580: db_getfieldcount +581: detail_diskcachesize +582: cc_setoutline +583: detailget_maxscreensize +584: self_player_uid +585: worldmap_getconfigbounds +586: if_setvflip +587: player_group_get_owner_slot +588: activeclanchannel_getusercount +589: email_validation_submit_code +590: map_build_complete +591: detailcanset_buildarea +592: email_validation_add_new_address +593: chat_sendabusereport +594: pop_string_discard +595: detailget_groundblending +596: clan_kickuser +597: stringwidth +598: enum_getreverseindex_string +599: detailget_drawdistance +600: chatcat_getsubcatcount +601: enum_getreverseindex +602: invother_getobj +603: detail_ambientocclusion +604: telemetry_get_group_index +605: cc_setmodelorigin +606: chatcat_getdesc +607: cc_setlinewid +608: detailcanset_animdetail +609: activeclansettings_getranktalk +610: activeclansettings_getaffinedjoinruneday +611: detailcanmod_texturing +612: detailget_loadingscreentype +613: char_isprintable +614: cc_setopkey +615: worldmap_listelement_start +616: char_touppercase +617: player_group_member_get_team +618: oc_icursor +619: detailcanmod_shadowquality +620: urlencode +621: cam2_setlookatmaxspeed_axis +622: if_setoncameraupdatetransmit +623: player_group_get_overall_status +624: cc_gethide +625: cc_setondragcomplete +626: detailget_antialiasingmode +627: cam2_setcollisionmode +628: ttv_stream_getquality +629: cc_setopkeyrate +630: inv_totalparam +631: friend_test +632: telemetry_get_row_count +633: detailcanset_maxscreensize +634: detailget_cpuusage +635: get_loc_bounding_box +636: player_group_member_count +637: get_mousex +638: activeclansettings_getrankkick +639: worldmap_disabletype +640: array_sort +641: if_settargetopcursor +642: inv_total +643: worldmap_coordinmap +644: cc_setonmisctransmit +645: coordy_fine +646: detail_reflections +647: cc_getscrollheight +648: oc_iop +649: targetmode_cancel +650: ignore_test +651: branch_less_than_or_equals +652: cc_sendtofront +653: ttv_webcam_getdevice_byuniquename +654: if_debug_button4 +655: detailget_bloom +656: detailcanmod_groundblending +657: spline_new +658: if_getscrollwidth +659: inv_totalcat +660: detail_animdetail +661: sound_song +662: chatphrase_getautoresponsecount +663: worldmap_setmap_coord +664: stockmarket_isofferfinished +665: if_getfontmetrics +666: lobby_enterlobbyreply +667: detailcanmod_bloom +668: stockmarket_isofferempty +669: setdefaultwindowmode +670: cc_delete +671: detailcanset_texturing +672: shader_preload_allow +673: if_getopbase +674: bas_getanim_ready +675: coordy +676: clienttype +677: detailget_performance_metric +678: activechatphrase_sendprivate +679: cc_settargetcursors +680: worldmap_3dview_enable +681: detailget_vsync +682: cc_sendtoback +683: cc_setongamepadbutton +684: cam2_removeeffect +685: if_setonmouseleave +686: detail_antialiasing_quality +687: player_group_member_get_last_seen_node_id +688: baseidkit +689: chat_sendpublic +690: quest_varbitreq_desc +691: pop_long_discard +692: if_setonvarcstrtransmit +693: cc_setonrelease +694: cam_followcoord +695: sound_vorbis_volume_rate_group +696: if_setoptkey +697: cc_setmodellighting +698: if_sendtofront +699: string_indexof_char +700: ttv_hasprerequisites +701: friend_getrank +702: cc_getscrollx +703: cc_getid +704: spline_length +705: detailget_shadows +706: cam2_setlinearmovementmode +707: if_dragpickup +708: if_setalpha +709: activeclansettings_getreplacementowner_slot +710: quest_getdifficulty +711: create_connectrequest +712: mec_sprite +713: keyheld_shift +714: worldmap_listelement_next +715: lowercase +716: if_gethide +717: detailcanset_antialiasing +718: worldmap_3dview_settextfont +719: cc_setalpha +720: chat_playername +721: ignore_getnotes +722: if_setonopt +723: cc_setparam_string +724: quest_getsortname +725: join_string +726: compare +727: viewport_getzoom +728: emoji_enable_auto_chatline +729: cc_setoptkeyrate +730: activeclansettings_getranklootshare +731: resume_objdialog +732: if_debug_getopenifcount +733: activeclanchannel_getuserslot +734: friend_del +735: if_setmodelorthog +736: detailcanmod_skydetail +737: sub +738: cc_settextantimacro +739: login_cancel +740: activeclanchannel_getranktalk +741: create_connect_reply +742: clan_getchatusername +743: get_npc_vislevel +744: getclipboard +745: resume_countdialog +746: cc_setonclantransmit +747: viewport_setfov +748: activeclansettings_getcurrentowner_slot +749: oc_uncert +750: ttv_stream_settitle +751: ttv_webcam_supported +752: cc_find +753: sound_distancefocusfilter_setparams +754: if_debug_target +755: multiply +756: worldlist_start +757: cc_setmodelorthog +758: date_runeday +759: cc_getmodelangle_z +760: pop_var +761: frombilling +762: get_loc_overlay_height +763: runjavascript +764: telemetry_get_grid_value +765: activeclansettings_getsortedaffinedslot +766: quest_getmembers +767: player_group_member_get_status +768: activeclansettings_getallowunaffined +769: paraheight +770: activeclansettings_getaffinedextrainfo +771: autosetup_setultra +772: cam2_setpositionpoint_point +773: cam_getfollowheight +774: emoji_removeall +775: activeclanchannel_kickuser +776: if_triggerop +777: detail_groundblending +778: removetags +779: if_resetmodellighting +780: if_setonfriendtransmit +781: detailget_skydetail +782: pow +783: ttv_webcam_getcap_byuniqueid +784: userdetail_lobby_membersstats +785: cc_setonstattransmit +786: if_getmodelangle_z +787: oc_wearpos2 +788: worldmap_getdisplayposition +789: worldlist_autoworld +790: if_gettop +791: worldmap_3dview_getscreenposition +792: chat_getprevuid +793: if_setgraphicshadow +794: if_closesubclient +795: quest_finished +796: cc_setobject_nonum +797: cc_npc_setcustomheadmodel +798: date_runeday_fromdate +799: date_year +800: detailget_removeroofs_option +801: detailcanset_lightingquality +802: worldmap_setzoom +803: stat_base_actual +804: getdefaultwindowmode +805: video_advert_allow_skip +806: lobby_enterlobby +807: detailget_recommendeddiskcachesize +808: substring +809: oc_op +810: cam2_getpositionentity_lookatangle +811: detail_hardshadows +812: if_setonresize +813: if_setonvarctransmit +814: cc_setonsubchange +815: detail_antialiasingmode +816: escape +817: cc_setmodelanim +818: lc_param +819: if_setontargetenter +820: if_gety +821: activeclanchannel_getuserworld +822: branch_if_false +823: cc_param +824: detailget_antialiasing +825: if_getscrolly +826: inv_getvar +827: seq_param +828: cc_setonstocktransmit +829: chatphrase_getautoresponse +830: automatedtestflags +831: pop_long_local +832: push_string_local +833: if_settargetcursors +834: detailcanmod_orthographic +835: map_quickchat +836: pop_int_discard +837: setbit +838: if_setrecol +839: cam2_getpositionpoint_point +840: cc_setobject_wearcol +841: detailcanset_spotshadows +842: detailget_shadowquality +843: oc_wearpos3 +844: cam2_isenabled +845: userdetail_lobby_playage +846: clan_leavechat +847: paraline +848: worldmap_getconfigzoom +849: cc_clearops +850: create_get_email +851: get_displayname_withextras +852: userdetail_lobby_recoveryday +853: clan_getchatrank +854: sound_song_stop +855: pop_array_int_leave_value_on_stack +856: cc_setlinedirection +857: text_gender +858: cc_setondialogabort +859: cam_dec_x +860: cc_setmodel +861: detailcanset_grounddecor +862: ttv_login +863: player_group_member_is_online +864: string_indexof_string +865: push_long_constant +866: player_group_member_is_member +867: cc_resetlinkplayer +868: if_clearscripthooks +869: cam2_setdepthplanes +870: invother_getvar +871: if_getmodelzoom +872: writeconsole +873: push_array_int_leave_index_on_stack +874: stockmarket_getofferitem +875: cam2_resetsnapdistances +876: db_find +877: chatcat_getphraseshortcut +878: friend_getnotes +879: create_suggest_name_reply +880: emoji_add +881: detail_lightingquality +882: if_debug_button9 +883: cc_get2dangle +884: userdetail_lobby_unreadmessages +885: cc_getparentlayer +886: userdetail_lobby_dobrequested +887: long_branch_not +888: cam2_getpositionentity_lookatdistance +889: telemetry_get_column_index +890: cc_setopchar +891: inv_size +892: cam2_setsnapdistances +893: create_under13 +894: cc_setplayermodel_self +895: detailcanmod_fog +896: detail_spotshadows_on +897: if_setposition +898: login_reply +899: get_col_tag +900: if_setplayermodel +901: worldmap_getdisableelements +902: oc_minimenu_colour +903: if_setnpcmodel +904: if_resetlinkplayer +905: if_setmaxlines +906: cc_settiling +907: activeclanchannel_find_listened +908: cam_inc_x +909: if_setfontmono +910: cc_getwidth +911: cam2_setlookatorientation_maxdistanceclamping +912: viewport_setzoom +913: if_setonmouseover +914: inv_totalparam_stack +915: branch_greater_than_or_equals +916: chat_getnextuid +917: if_gettargetmask +918: if_setparam_string +919: if_debug_button3 +920: if_setmodelzoom +921: if_setontimer +922: cc_setplayerhead_self +923: sound_jingle_volume +924: worldmap_getconfigsize +925: coord_fine +926: opplayer +927: worldmap_getdisabletextsize +928: cc_settextfont +929: userdetail_lobby_membership +930: cc_setontargetenter +931: cc_npc_setcustomrecol +932: if_setonclantransmit +933: if_setonmouserepeat +934: enum_string +935: oc_shard +936: if_debug_button10 +937: cc_setmouseovercursor +938: detail_drawdistance +939: if_hassuboverlay +940: if_settextfont +941: cc_setplayermodel +942: telemetry_get_row_id +943: random_sound_pitch +944: worldmap_disableelementcategory +945: detailget_speechvol +946: activeclansettings_getaffinedslot +947: if_setonvarclantransmit +948: coord_finetogrid +949: player_group_member_get_join_xp +950: cc_npc_setcustombodymodel +951: cam2_getpositionentity_angleoffsets +952: chat_getfilter_private +953: cc_setonvarclantransmit +954: enum +955: cc_setoptkey +956: login_last_transfer_reply +957: worldlist_next +958: hsvtorgb +959: cam2_updateeffect_ztilt +960: worldmap_3dview_setloddistance +961: login_continue +962: worldmap_getsourceposition +963: stockmarket_isofferstable +964: cam_getangle_ya +965: cam2_setlookatmaxspeed +966: if_npc_setcustomrecol +967: if_hassubmodal +968: cc_getcharposatindex +969: invpow +970: openurl_nologin +971: cam2_setfieldofviewscreen +972: cam2_setlookatentity_player +973: if_setoptkeyrate +974: ignore_getslotfromname +975: cam_getangle_xa +976: cc_settargetverb +977: push_long_local +978: friend_count +979: if_setobject +980: detailcanset_shadows +981: detailcanmod_toolkit_default +982: cc_getmodelyof +983: activeclanchannel_getrankkick +984: cc_triggerop +985: detailget_brightness +986: worldmap_getmapname +987: detail_vsync +988: setwindowmode +989: cc_setclickmask +990: if_setontargetleave +991: cam_lookat +992: login_disallowresult +993: userdetail_dob +994: quest_questreq_met +995: playermod +996: cc_setontargetleave +997: detailget_idleanims +998: worldmap_getdisplaycoord +999: get_mousey +1000: long_branch_greater_than_or_equals +1001: cam2_setlookatmode +1002: if_getmodelyof +1003: cc_setonchattransmit +1004: if_setsize +1005: chatphrase_gettext +1006: branch_not +1007: cc_setopbase +1008: activeclansettings_getclanname +1009: if_setonplayergrouptransmit +1010: player_group_get_max_size +1011: detail_bloom +1012: detailget_mindiskcachesize +1013: friend_setnotes +1014: quest_pointsreq +1015: if_setopkeyignoreheld +1016: format_datetime_from_minutes +1017: cc_setonfriendtransmit +1018: if_setlinkfriendchat +1019: if_setoptchar +1020: detailget_stereo +1021: detail_brightness +1022: clan_isself +1023: if_setparam_int +1024: if_setmodeltint +1025: login_resetreply +1026: playermember +1027: emoji_substitute +1028: detailcanset_antialiasing_quality +1029: if_setopkeyrate +1030: gosub_with_params +1031: if_setdragrenderbehaviour +1032: stat +1033: cc_setposition +1034: map_loadedpercent +1035: npc_type +1036: abort_dialog +1037: quest_varbitreq_met +1038: opplayert +1039: ttv_stream_setsmoothresize +1040: if_clearops +1041: player_group_get_displayname +1042: addpercent +1043: worldmap_3dview_getloddistance +1044: cam2_setpositionmaxspeed +1045: invother_total +1046: date_minutes_fromruneday +1047: clearbit +1048: modulo +1049: quest_points +1050: if_sendtoback +1051: if_getgraphicdimensions +1052: get_minimenu_target +1053: cam2_addeffect_ztilt +1054: if_getgraphic +1055: char_tolowercase +1056: basecolour +1057: clanprofile_find +1058: player_group_banned_get_displayname +1059: detail_texturing +1060: char_isnumeric +1061: movecoord_fine +1062: player_group_member_get_displayname +1063: get_npc_stat +1064: if_getop +1065: setdefaultcursors +1066: detailcanset_skydetail +1067: detailcanmod_hardshadows +1068: quest_varpreq_desc +1069: if_getmodelangle_y +1070: if_debug_getname +1071: setgender +1072: create_email_validate_reply +1073: coord +1074: detailcanmod_antialiasing +1075: friend_add +1076: cc_gettrans +1077: if_setdragdeadzone +1078: detail_toolkit +1079: clan_getchatminkick +1080: cc_setobject +1081: if_getheight +1082: detailcanmod_buildarea +1083: detailcanset_toolkit_default +1084: video_advert_force_remove +1085: map_preload +1086: userdetail_lobby_loyalty_balance +1087: if_getmodelangle_x +1088: cc_setgraphic +1089: cc_setonclickrepeat +1090: push_constant_string +1091: cam2_getcontrolmode +1092: userdetail_lobby_emailstatus +1093: cc_setlinkplayergroup +1094: userdetail_lobby_ccexpiry +1095: max +1096: branch +1097: if_setlinewid +1098: if_npc_setcustombodymodel +1099: detailcanmod_maxscreensize +1100: push_varbit +1101: formatminimenu +1102: fullscreen_lastmode +1103: cc_setfontmono +1104: player_group_banned_count +1105: clan_getchatusername_unfiltered +1106: cc_setscrollpos +1107: activeclansettings_getaffinedrank +1108: pop_string_local +1109: autosetup_setlow +1110: telemetry_get_column_count +1111: ttv_webcam_getdevice_byindex +1112: cc_setoptkeyignoreheld +1113: autosetup_setcustom +1114: cc_settext +1115: worldmap_setmap_coord_override +1116: clan_getchatownername +1117: char_isalpha +1118: detail_antialiasing +1119: cc_setscrollsize +1120: setup_messagebox +1121: get_entity_say +1122: if_setaspect +1123: cam2_setlookatpoint_point +1124: cam2_setlookatorientation_zmovement +1125: randominc +1126: fullscreen_modecount +1127: activechatphrase_prepare +1128: detail_flickering_on +1129: if_getparentlayer +1130: staffmodlevel +1131: fromdate +1132: clanforumqfc_tostring +1133: detailget_waterdetail_high +1134: detailget_grounddecor_on +1135: if_debug_button5 +1136: activeclansettings_getaffinedcount +1137: detailget_antialiasing_quality +1138: detailcanmod_shadows +1139: emoji_remove +1140: quest_statreq_count +1141: branch_less_than +1142: detailget_soundvol +1143: video_advert_has_finished +1144: worldmap_getcategorypriority +1145: cam2_setpositionentity_player +1146: create_availablerequest +1147: clan_getchatuserworldname +1148: quest_pointsreq_met +1149: if_settiling +1150: cc_setonopt +1151: cc_getfontmetrics +1152: cc_getheight +1153: if_debug_getopenifid +1154: if_setonchattransmit +1155: chat_gethistory_byuid +1156: getgridcoordrelativetocamera +1157: chat_gethistory_bytypeandline +1158: applet_hasfocus +1159: activechatphrase_send +1160: chatcat_getphrase +1161: player_group_get_create_mins_since_epoch +1162: detailcanmod_waterdetail +1163: cc_settargetopcursor +1164: oc_name +1165: if_setongamepadbuttonheld +1166: chatcat_getsubcat +1167: worldmap_3dview_active +1168: worldmap_stopcurrentflashes +1169: cc_setongamepadaxis +1170: worldmap_getdisabletype +1171: detailcanset_ambientocclusion +1172: cc_setoncameraupdatetransmit +1173: if_callonresize +1174: lastlogin +1175: if_setmodelanim +1176: cc_clearscripthooks +1177: cam_modeisfollowplayer +1178: activeclanchannel_getsorteduserslot +1179: long_branch_less_than +1180: if_setonscrollwheel +1181: clan_joinchat +1182: playerdemo +1183: chatphrase_getdynamiccommand +1184: ttv_webcam_flip +1185: lobby_entergame +1186: activeclanchannel_getclanname +1187: push_var +1188: setsubmenuminlength +1189: detail_removeroofs_option_override +1190: coordx +1191: map_members +1192: reboottimer +1193: sound_mixbuss_add +1194: openurl +1195: cc_setonmouserepeat +1196: quest_varpreq_met +1197: detail_musicvol +1198: create_name_availablerequest +1199: cc_settextalign +1200: friend_getworldflags +1201: return +1202: cc_setrecol +1203: telemetry_is_grid_processor_set +1204: if_hassub +1205: long_branch_equals +1206: ttv_login_getstate +1207: cam_inc_y +1208: long_branch_less_than_or_equals +1209: if_settargetverb +1210: worldmap_3dview_disable +1211: quest_statreq_level +1212: quest_started +1213: if_debug_button7 +1214: coordlevel_fine +1215: cam_movealong +1216: char_isalphanumeric +1217: worldmap_3dview_setlighting +1218: ignore_count +1219: cc_setongamepadbuttonheld +1220: detailget_toolkit +1221: if_getcolour +1222: resend_uid_passport_request +1223: cam2_settraildistance +1224: cam2_setpositionpointcollision +1225: runweight_visible +1226: cam2_addeffect_shake +1227: ttv_webcam_getcap_byindex +1228: if_setonvartransmit +1229: seqlength +1230: activeclansettings_getcoinshare +1231: if_setmodel +1232: mec_text +1233: cc_setonresize +1234: ttv_webcam_getdevice_count +1235: get_currentcursor +1236: movescripted +1237: chatphrase_findrestart +1238: random +1239: cc_setoptchar +1240: if_debug_getservertriggers +1241: if_setplayerhead_self +1242: detailcanmod_reflections +1243: detailget_loginvol +1244: long_branch_greater_than +1245: if_set_gamescreen_enabled +1246: ignore_add_temp +1247: ttv_stream_getviewers +1248: playermodlevel +1249: coord_gridtofine +1250: cc_setnoclickthrough +1251: if_setonclick +1252: cc_setop +1253: if_setmodellighting +1254: has_nxt +1255: worldmap_findnearestelement +0: chat_getfilter_private +1: cc_setonvartransmit +2: if_setonvarclantransmit +3: cc_setscrollsize +4: long_branch_not +5: pop_int_local +6: detail_bgsoundvol +7: cc_setonplayergroupvarptransmit +8: cc_setonhold +9: openurl_nologin +10: branch_equals +11: cc_setsize +12: cam_forceangle +13: if_setplayermodel_self +14: push_constant_string +15: chatcat_getphrasecount +16: if_setoptkeyignoreheld +17: if_setonhold +18: cc_getcolour +19: if_setontargetenter +20: coordz +21: if_setongamepadaxis +22: cc_setparam_string +23: cc_getscrolly +24: cc_getmodelangle_y +25: if_getinvobject +26: cc_gety +27: cam2_removealleffects +28: if_setcolour +29: struct_param +30: resume_clanforumqfcdialog +31: if_setmodellighting +32: detail_antialiasing_quality +33: get_mousebuttons +34: sound_speech_volume +36: cc_setonmouseleave +37: viewport_clampfov +38: is_npc_visible +39: clan_getchatownername +40: if_sendtoback +41: oc_findrestart +42: inv_getnum +43: detail_particles +44: if_closesubclient +45: if_setoncamfinished +46: cam_setfollowheight +47: cc_setonmisctransmit +48: cc_create +49: worldmap_getzoom +50: if_resume_pausebutton +51: coordy +52: cc_setposition +53: sound_synth +54: cc_setdragdeadzone +55: worldmap_isloaded +56: cc_setmodeltint +57: resume_stringdialog +59: if_setopkeyignoreheld +60: oc_shardcount +61: if_settextantimacro +62: if_debug_button9 +63: cc_setpausetext +64: if_setnpchead +65: cc_settargetopcursor +66: cc_setontimer +67: cc_setonvarctransmit +68: cc_setonstocktransmit +69: if_setgraphic +70: if_setdragdeadtime +71: if_setparam_int +72: pop_var +74: autosetup_setcustom +75: create_step_reached +76: cc_setnpchead +77: cc_sethflip +78: docheat +79: cc_setmaxlines +80: cc_set2dangle +81: friend_setnotes +83: cc_setscrollpos +84: activeclansettings_getbanneddisplayname +85: if_setoutline +86: cc_setoptkeyignoreheld +87: cc_setgraphicshadow +88: if_setnoclickthrough +89: push_int_local +90: activechatphrase_send +91: cc_callonresize +92: cc_settext +93: if_getmodel +94: worldmap_disabletextsize +95: if_gethide +96: if_setlinedirection +97: worldmap_disableelements +98: oc_members +99: login_request +100: pop_string_local +101: if_setparam_string +102: clan_isself +103: cc_setobject_alwaysnum +104: login_request_social_network +105: stat_base +106: push_long_local +107: cc_setopcursor +108: coord_fine +109: if_setopcursor +110: if_set2dangle +111: stockmarket_getoffertype +112: cc_setonclanchanneltransmit +113: cam2_enable +114: detail_drawdistance +115: cc_resume_pausebutton +116: cam2_setlookatangularinterpolation +117: activeclanchannel_find_listened +118: detail_loadingscreentype +119: ttv_livestreams_update +120: basematerial +122: ignore_add +123: cam2_setpositionmode +124: quit +125: worldmap_3dview_getcoordfine +126: targetmode_active +127: if_sethflip +128: profile_cpu +129: if_gettrans +130: mec_category +131: worldlist_specific +132: sound_song_volume +133: get_obj_screen_position +134: email_validation_add_new_address +135: friend_setrank +136: cc_setdragrenderbehaviour +137: notify_accountcreated +138: chatcat_getsubcatshortcut +139: lobby_entergamereply +140: if_settext +141: cam2_setpositionspringproperties +142: if_getgraphic +143: if_setonstattransmit +144: chat_getfilter_public +145: if_setonmisctransmit +146: quest_varpreq_count +148: cc_clearops +149: cc_setonvarcstrtransmit +150: cam2_resetsnapdistances +151: if_getmodelxof +152: if_getcharindexatpos +153: if_setobject_wearcol_nonum +154: if_sethide +155: if_setonclanchanneltransmit +156: pop_varbit +158: get_entity_bounding_box +159: activeclansettings_getbannedcount +160: detail_soundvol +161: worldmap_3dview_getloddistance +162: branch_greater_than +164: if_dragpickup +165: formatminimenu +166: if_getlayer +167: if_setmodelorthog +168: activechatphrase_setdynamicint +169: if_close +170: worldmap_3dview_enable +172: cam2_setpositionmaxspeed_axis +173: if_setonrelease +174: facing_fine +175: mes +176: shader_preload_throttle +177: if_setpausetext +178: if_setfontmono +179: worldlist_autoworld +180: sound_vorbis_volume +182: inv_getobj +183: chat_setfilter +185: return +186: if_setop +187: setwindowmode +190: if_setoptkeyrate +191: stockmarket_getofferprice +192: cc_setplayermodel +193: if_npc_setcustomrecol +194: if_settextshadow +195: worldmap_setmap +196: cc_setopbase +197: if_setfill +198: cc_getid +199: resume_countdialog +200: opplayer +201: if_setongamepadtrigger +203: add +204: cc_getop +206: ignore_add_temp +208: cc_setonsubchange +209: get_obj_bounding_box +211: cc_setmodelorigin +212: clan_getchatuserworld +213: cc_setlinewid +214: cc_setobject_wearcol_alwaysnum +215: cc_setdragdeadtime +216: if_setonsubchange +217: if_get2dangle +218: viewport_setfov +219: if_getscrollwidth +220: detail_skydetail +221: sound_synth_volume +223: cam2_setlookatentity_npc +224: cc_gettext +226: push_array_int_and_index +227: activeclansettings_find_listened +228: create_setunder13 +229: autosetup_setlow +230: cam2_setlookatorientation_xrotation +231: or +232: branch_if_false +233: cc_setnpcmodel +235: fullscreen_exit +236: addpercent +237: cc_getopbase +238: if_resetmodellighting +239: sethardcodedopcursors +240: if_setopbase +241: worldmap_setflashloops_default +242: cc_dragpickup +243: if_setonfriendtransmit +244: invother_total +248: cc_getx +249: if_getscrollx +250: if_setoptkey +251: join_string +252: map_lang +254: resend_uid_passport_request +255: if_gettext +256: cam2_setfieldofview +257: runenergy_visible +259: cc_setfontmono +261: enum_getreversecount_string +262: cam2_setspringproperties +263: map_members +265: activechatphrase_setdynamicobj +268: cam2_setlookatentity_player +269: defaultminimenu +270: if_setonplayergrouptransmit +271: push_array_int +274: ignore_setnotes +275: cam2_updateeffect_ztilt +276: cc_sendtofront +277: resume_namedialog +278: pop_long_local +279: cc_setmodelorthog +280: cam2_setpositionacceleration_axis +281: cc_settextshadow +283: cam2_setdepthplanes +284: autosetup_setmin +285: detail_cpuusage +286: cc_setongamepadtrigger +287: spline_addpoint +288: userdetail_lobby_emailstatus +289: max +290: if_getop +291: cc_npc_setcustomretex +292: worldmap_setcategorypriority +295: bug_report +297: cc_getmodelxof +300: if_getfontgraphic +301: openurl_shim +302: worldmap_getcategorypriority +303: player_find_active_minimenu_entry +304: if_getmodelangle_z +305: worldmap_3dview_setlighting +306: if_setobject_alwaysnum +307: cam_removeroof +308: if_gettargetmask +309: get_second_minimenu_entry +310: nc_param +311: worldlist_fetch +312: coordx_fine +313: detail_customcursors +314: branch_less_than_or_equals +316: cc_setoptkey +317: quest_questreq_count +319: if_getnextsubid +321: worldmap_getdisabletextsize +322: coordz_fine +323: setobj +324: if_setmodelangle +325: branch_if_true +326: cc_gettargetmask +327: if_setplayerhead_self +328: writeconsole +329: get_col_tag +330: append_num +331: define_array +334: mec_param +335: cam2_setfieldofviewscreen +336: if_getcharposatindex +337: ignore_del +338: autosetup_sethigh +339: cc_delete +340: worldlist_pingworlds +341: cam_smoothreset +343: if_setretex +345: if_npc_setcustomretex +346: detail_loginvol +348: cc_setopkey +349: quest_statreq_met +350: cc_param +351: sound_jingle +353: activeclansettings_getclanname +356: autosetup_setmedium +357: worldmap_getsourcecoord +358: cc_setonclickrepeat +359: if_setonclantransmit +361: cam2_setpositionspline_spline +362: cam2_removeeffect +363: keyheld_ctrl +364: enum_hasoutput_string +366: spline_new +367: cc_setrecol +368: quest_getname +370: baseidkit +371: if_debug_button8 +373: clan_getchatuserrank +376: inv_stockbase +381: cc_setondrag +382: playerdemo +383: detailget_toolkit +384: cc_setobject_wearcol +386: if_hassuboverlay +387: scale +388: cam2_setlookatorientation_xmovement +389: detail_waterdetail_high +390: friend_add +391: oc_unshard +392: create_createrequest +394: cc_sethide +395: text_switch +396: cam_dec_y +397: cc_deleteall +398: if_getmodelyof +399: clan_getchatusername_unfiltered +402: cc_resetmodellighting +404: cc_setonopt +405: cc_setretex +407: playermodlevel +408: if_find +409: cc_setonop +410: cam2_setpositionpoint_point +411: if_callonresize +412: if_setonplayergroupvarptransmit +413: worldmap_3dview_setloddistance +414: lobby_enterlobby_social_network +417: pop_array_int +419: pow +420: if_setobject_wearcol +422: friend_getworldname +424: userdetail_lobby_graceexpiry +425: cc_setongamepadaxis +426: coordy_fine +428: append_signnum +429: setbit +430: cc_setplayerhead_self +431: cc_setparam_int +432: cc_setobject +434: cc_settrans +436: cc_getlayer +437: if_setontimer +439: sound_mixbuss_setlevel +442: cam_movealong +443: cc_setfill +446: cc_getmodelangle_x +447: detail_idleanims +448: detail_maxscreensize +449: cc_setmodelzoom +450: if_getx +452: cc_setalpha +454: cc_settextfont +455: if_setondialogabort +457: cam2_setlookatmaxspeed +458: detail_grounddecor_on +459: cc_invalidate +461: if_setonopt +463: branch_less_than +465: cc_setmodelangle +466: tostring +467: cc_setonmouserepeat +468: if_resetlinkplayer +469: if_setonclickrepeat +471: divide +472: if_setopkeyrate +475: if_setonclick +480: cc_setoutline +482: worldlist_sort +484: friend_platform +485: long_branch_greater_than +487: detail_shadowquality +489: cc_setonclick +490: cc_setopkeyrate +491: activeclanchannel_getuserrank +495: chat_sendpublic +496: worldmap_getsize +497: cam_followcoord +500: detail_animdetail +502: ignore_getslotfromname +504: ignore_getnotes +505: activeclanchannel_getuserdisplayname +506: npc_find_active_minimenu_entry +507: worldmap_setflashloops +508: if_setmodelanim +509: cc_setongamepadbutton +510: long_branch_greater_than_or_equals +511: cam2_setcollisionmode +512: login_continue +513: oc_category +514: chatcat_getphrase +515: friend_getworld +522: branch +523: playermod +524: detailget_toolkit_default +526: string_length +528: get_mousey +531: cam2_getpositionentity_lookatangleoffsets +533: affiliate +534: cc_settextantimacro +535: activeclansettings_getaffineddisplayname +536: ttv_webcam_getcap_count +537: long_branch_less_than +539: worldmap_jumptosourcecoord +541: cc_setobject_wearcol_nonum +543: activeclanchannel_kickuser +544: not +545: cc_setmouseovercursor +546: branch_greater_than_or_equals +547: if_setongamepadbuttonheld +548: ttv_logout +550: cc_setonvarclantransmit +552: if_setplayermodel +554: clientclock +555: parawidth +559: if_setnpcmodel +561: sound_song +562: escape +563: char_isalphanumeric +564: cc_setonchattransmit +566: chat_gethistorylength +574: if_setonresize +575: ignore_getname +576: clanprofile_find +577: if_setrecol +579: detail_antialiasing +580: openurl +583: cc_npc_setcustombodymodel +584: cc_sendtoback +585: worldmap_getconfigbounds +587: activeclansettings_getaffinedcount +588: activeclanchannel_getusercount +590: cc_setlinkplayergroup +591: if_getcolour +595: if_setobject +597: stringwidth +598: if_setonvarcstrtransmit +599: detailget_drawdistance +600: cc_setlinkfriendchat +601: pop_long_discard +602: invother_getobj +603: if_setlinkfriendchat +604: worldmap_setmap_coord +606: cc_setondialogabort +608: resume_objdialog +609: activeclansettings_getranktalk +610: activeclansettings_getaffinedjoinruneday +611: ttv_login_getstate +612: cc_setclickmask +613: stat_base_actual +615: cc_setplayermodel_self +616: if_setonvarctransmit +617: setup_messagebox +618: pop_int_discard +619: create_name_availablerequest +623: cc_setonmouseover +626: cc_setoptchar +628: clan_getchatuserworldname +630: inv_totalparam +631: friend_test +632: cc_clearscripthooks +633: cc_setonkey +634: cc_getmodelyof +635: cc_setdraggable +636: affinedclansettings_addbanned_fromchannel +637: get_mousex +638: cc_setoptkeyrate +643: sound_vorbis_rate +646: activechatphrase_sendprivate +648: cc_find +650: if_setclickmask +653: chat_gethistory_byuid +655: cc_settargetverb +656: long_branch_equals +662: if_setlinkactiveclanchannel +664: stockmarket_isofferfinished +666: activeclansettings_getaffinedslot +667: if_hassub +668: stockmarket_isofferempty +671: cc_setonclansettingstransmit +672: cc_getwidth +674: paraline +676: if_setmodelorigin +677: cc_triggerop +681: detailget_vsync +687: detail_groundblending +690: pop_string_discard +695: if_setlinewid +699: string_indexof_char +700: cc_setmodel +704: if_setonmouseover +705: cc_setcolour +709: activeclansettings_getreplacementowner_slot +710: setgender +712: login_resetreply +713: cc_resetlinkplayer +714: worldmap_listelement_next +715: lowercase +717: if_setalpha +720: chat_playername +724: sound_synth_rate +726: cc_setobject_nonum +727: cam2_setlookatmode +728: detail_removeroofs_option_override +730: activeclansettings_getranklootshare +732: cc_setlinkfriend +733: activeclanchannel_getuserslot +736: if_getheight +737: sub +740: notify_accountcreatestarted +741: cc_setonstattransmit +743: if_getgraphicdimensions +744: pop_array_int_leave_value_on_stack +749: oc_uncert +750: cam2_setpositionentity_player +751: cc_getheight +753: push_varbit +755: activeclansettings_getallowunaffined +756: cam2_setlookatspline_spline +758: if_setsize +762: basecolour +763: friend_del +764: chat_sendabusereport +766: if_settextfont +767: if_setaspect +769: switch +771: cc_settiling +773: sound_jingle_volume +774: push_var +778: removetags +781: detailget_skydetail +783: setdefaultwindowmode +784: if_clearops +787: push_string_local +788: cc_setopchar +790: cc_setmodelanim +791: cc_setopkeyignoreheld +792: cc_setlinedirection +795: cam2_setsnapdistances +798: chatphrase_gettext +799: branch_not +800: detailget_removeroofs_option +801: cc_setnoclickthrough +804: viewport_setzoom +807: cc_setonrelease +808: substring +809: detail_diskcachesize +810: cc_setontargetenter +815: cc_setonresize +818: if_settargetcursors +824: if_hassubmodal +827: seq_param +829: push_long_constant +830: if_setonop +834: if_settargetverb +841: worldmap_disabletype +842: stockmarket_isofferstable +844: if_settextalign +845: userdetail_lobby_playage +848: if_setposition +850: push_constant_int +851: get_displayname_withextras +852: if_setdragrenderbehaviour +854: abort_dialog +861: if_debug_button7 +862: cc_getcharposatindex +863: if_setobject_wearcol_alwaysnum +866: cam2_setlookatorientation_zmovement +876: coordx +879: create_suggest_name_reply +880: lobby_entergame +881: if_setmodeltint +884: cc_setondragcomplete +886: opplayert +888: cc_npc_setcustomrecol +889: clan_joinchat +893: create_under13 +895: long_branch_less_than_or_equals +898: if_setondrag +901: oc_minimenu_colour +929: gosub_with_params +942: if_debug_target +945: worldmap_getmapname +949: cam_inc_x +957: cc_setontargetleave +980: if_settargetopcursor +981: worldmap_3dview_disable +987: cc_setoncameraupdatetransmit +993: userdetail_dob +994: cc_gettrans +1010: cc_setonscrollwheel +1014: if_setdragdeadzone +1027: setsubmenuminlength +1028: cc_setongamepadbuttonheld +1035: lobby_enterlobby +1037: cc_setgraphic +1039: lobby_leavelobby +1041: staffmodlevel +1049: coord +1058: if_setvflip +1062: randominc +1066: if_setonclansettingstransmit +1067: if_setlinkfriend +1068: video_advert_force_remove +1074: if_sendtofront +1082: clanforumqfc_tostring +1083: if_setonvartransmit +1099: cam_inc_y +1104: cc_setparam +1110: if_setonscrollwheel +1111: if_setonchattransmit +1138: detailget_loginvol +1139: cc_setonclantransmit +1156: getgridcoordrelativetocamera +1162: cc_settextalign +1171: cc_setop +1242: cc_setlinkactiveclanchannel \ No newline at end of file