Skip to content

Commit

Permalink
field341 > currentTypedKey
Browse files Browse the repository at this point in the history
  • Loading branch information
abextm committed Mar 28, 2018
1 parent 6281d4d commit 8c6482c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions runescape-client/src/main/java/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -3172,9 +3172,9 @@ final void method1552() {
if(rights >= 2 && KeyFocusListener.keyPressed[82] && class85.currentPressedKey == 66) {
String var26 = class61.method1092();
class249.clientInstance.method923(var26);
} else if(field923 != 1 || Size.field341 <= 0) {
} else if(field923 != 1 || Size.currentTypedKey <= 0) {
field1069[field869] = class85.currentPressedKey;
field1068[field869] = Size.field341;
field1068[field869] = Size.currentTypedKey;
++field869;
}
}
Expand Down
4 changes: 3 additions & 1 deletion runescape-client/src/main/java/Size.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import java.util.Iterator;
import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
Expand All @@ -23,7 +24,8 @@ public class Size {
)
public static final Size field334;
@ObfuscatedName("cv")
public static char field341;
@Export("currentTypedKey")
public static char currentTypedKey;
@ObfuscatedName("dk")
@ObfuscatedGetter(
intValue = 1746983793
Expand Down
14 changes: 7 additions & 7 deletions runescape-client/src/main/java/class195.java
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ static void method3768(GameEngine var0) {
boolean var10 = false;

for(int var11 = 0; var11 < "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"£$%^&*()-_=+[{]};:\'@#~,<.>/?\\| ".length(); ++var11) {
if(Size.field341 == "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"£$%^&*()-_=+[{]};:\'@#~,<.>/?\\| ".charAt(var11)) {
if(Size.currentTypedKey == "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"£$%^&*()-_=+[{]};:\'@#~,<.>/?\\| ".charAt(var11)) {
var10 = true;
break;
}
Expand All @@ -403,7 +403,7 @@ static void method3768(GameEngine var0) {
}

if(var10 && class90.username.length() < 320) {
class90.username = class90.username + Size.field341;
class90.username = class90.username + Size.currentTypedKey;
}
} else if(class90.field1351 == 1) {
if(class85.currentPressedKey == 85 && class90.password.length() > 0) {
Expand Down Expand Up @@ -433,7 +433,7 @@ static void method3768(GameEngine var0) {
}

if(var10 && class90.password.length() < 20) {
class90.password = class90.password + Size.field341;
class90.password = class90.password + Size.currentTypedKey;
}
}
}
Expand Down Expand Up @@ -496,7 +496,7 @@ static void method3768(GameEngine var0) {
var23 = false;

for(var24 = 0; var24 < "1234567890".length(); ++var24) {
if(Size.field341 == "1234567890".charAt(var24)) {
if(Size.currentTypedKey == "1234567890".charAt(var24)) {
var23 = true;
break;
}
Expand Down Expand Up @@ -529,7 +529,7 @@ static void method3768(GameEngine var0) {
}

if(var23 && Coordinates.field2779.length() < 6) {
Coordinates.field2779 = Coordinates.field2779 + Size.field341;
Coordinates.field2779 = Coordinates.field2779 + Size.currentTypedKey;
}
}
}
Expand All @@ -550,7 +550,7 @@ static void method3768(GameEngine var0) {
var23 = false;

for(var24 = 0; var24 < "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"£$%^&*()-_=+[{]};:\'@#~,<.>/?\\| ".length(); ++var24) {
if(Size.field341 == "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"£$%^&*()-_=+[{]};:\'@#~,<.>/?\\| ".charAt(var24)) {
if(Size.currentTypedKey == "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"£$%^&*()-_=+[{]};:\'@#~,<.>/?\\| ".charAt(var24)) {
var23 = true;
break;
}
Expand All @@ -569,7 +569,7 @@ static void method3768(GameEngine var0) {
}

if(var23 && class90.username.length() < 320) {
class90.username = class90.username + Size.field341;
class90.username = class90.username + Size.currentTypedKey;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion runescape-client/src/main/java/class290.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public static final boolean method5196() {
return false;
} else {
class85.currentPressedKey = KeyFocusListener.field605[KeyFocusListener.field611];
Size.field341 = KeyFocusListener.field601[KeyFocusListener.field611];
Size.currentTypedKey = KeyFocusListener.field601[KeyFocusListener.field611];
KeyFocusListener.field611 = KeyFocusListener.field611 + 1 & 127;
return true;
}
Expand Down

0 comments on commit 8c6482c

Please sign in to comment.