Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
- // Jad home page: http://www.kpdus.com/jad.html
- // Decompiler options: packimports(3)
- import java.awt.*;
- import java.io.UnsupportedEncodingException;
- import java.net.MalformedURLException;
- import java.net.URL;
- public class RSString
- implements Interface2
- {
- public boolean method1026(int i)
- {
- if(i != 30350)
- {
- return true;
- } else
- {
- anInt1858++;
- return method1035(10, (byte)103);
- }
- }
- public RSString method1027(byte byte0)
- {
- anInt1892++;
- int i;
- for(i = 0; anInt1893 > i && (~aByteArray1894[i] <= -1 && ~aByteArray1894[i] >= -33 || (0xff & aByteArray1894[i]) == 160); i++);
- int j = anInt1893;
- int k = 1 % ((byte0 - -59) / 60);
- for(; ~j < ~i && (aByteArray1894[j + -1] >= 0 && aByteArray1894[j - 1] <= 32 || (0xff & aByteArray1894[j + -1]) == 160); j--);
- if(~i == -1 && anInt1893 == j)
- return this;
- RSString class58 = new RSString();
- class58.anInt1893 = j - i;
- class58.aByteArray1894 = new byte[class58.anInt1893];
- for(int l = 0; class58.anInt1893 > l; l++)
- class58.aByteArray1894[l] = aByteArray1894[i + l];
- return class58;
- }
- public RSString method1028(byte byte0, int i)
- {
- anInt1870++;
- if(~i >= -1 || ~i < -256)
- throw new IllegalArgumentException("invalid char:" + i);
- if(!aBoolean1896)
- throw new IllegalArgumentException();
- anInt1872 = 0;
- if(byte0 != -32)
- hashCode();
- if(~aByteArray1894.length == ~anInt1893)
- {
- int j;
- for(j = 1; ~j >= ~anInt1893; j += j);
- byte abyte0[] = new byte[j];
- ArrayUtils.arraycopy(aByteArray1894, 0, abyte0, 0, anInt1893);
- aByteArray1894 = abyte0;
- }
- aByteArray1894[anInt1893++] = (byte)i;
- return this;
- }
- public RSString method1029(int i, byte byte0)
- {
- anInt1860++;
- if(byte0 != 120)
- method1046(false);
- return substring(i, (byte)123, anInt1893);
- }
- public RSString method1030(RSString class58, int i)
- {
- if(i != -12860)
- substring(112, (byte)-112, -100);
- anInt1866++;
- if(!aBoolean1896)
- throw new IllegalArgumentException();
- anInt1872 = 0;
- if(~aByteArray1894.length > ~(anInt1893 - -class58.anInt1893))
- {
- int j;
- for(j = 1; j < anInt1893 + class58.anInt1893; j += j);
- byte abyte0[] = new byte[j];
- ArrayUtils.arraycopy(aByteArray1894, 0, abyte0, 0, anInt1893);
- aByteArray1894 = abyte0;
- }
- ArrayUtils.arraycopy(class58.aByteArray1894, 0, aByteArray1894, anInt1893, class58.anInt1893);
- anInt1893 += class58.anInt1893;
- return this;
- }
- public static void method1031(Component component, int i, CachedRequest class30, CachedRequest class30_1)
- {
- try
- {
- anInt1901++;
- if(CanvasWrapper.aBoolean74)
- return;
- CanvasWrapper.aClass15_64 = Class33_Sub6_Sub8.method513((byte)-112, component, 765, 503);
- CanvasWrapper.aClass15_64.method136(8);
- DrawingArea.method418();
- byte abyte0[] = class30_1.method222(5, SpotAnimLoader.aClass58_1346, NPCDefLoader.title);
- Class33_Sub16.aClass33_Sub6_Sub7_Sub3_2487 = new Sprite(abyte0, component);
- Class36.aClass33_Sub6_Sub7_Sub3_787 = Class33_Sub16.aClass33_Sub6_Sub7_Sub3_2487.method485();
- NPCDef.aClass33_Sub6_Sub7_Sub4_3116 = Class32.method259(SpotAnimLoader.aClass58_1346, -4236, Class21.logo, class30);
- Class33_Sub18.aClass33_Sub6_Sub7_Sub4_2523 = Class32.method259(SpotAnimLoader.aClass58_1346, -4236, Class21.titlebox, class30);
- Class43.aClass33_Sub6_Sub7_Sub4_931 = Class32.method259(SpotAnimLoader.aClass58_1346, -4236, Class33_Sub3.titlebutton, class30);
- Class33_Sub6_Sub15.aClass33_Sub6_Sub7_Sub4Array3065 = Class33_Sub6_Sub10.method527(true, class30, Class36.runes, SpotAnimLoader.aClass58_1346);
- CacheRequester.aClass33_Sub6_Sub7_Sub4Array1476 = Class33_Sub6_Sub10.method527(true, class30, Class33_Sub7.title_mute, SpotAnimLoader.aClass58_1346);
- Class59.anIntArray1269 = new int[256];
- for(int j = 0; j < 64; j++)
- Class59.anIntArray1269[j] = 0x40000 * j;
- for(int k = 0; ~k > -65; k++)
- Class59.anIntArray1269[64 + k] = 0xff0000 + 1024 * k;
- for(int l = 0; l < 64; l++)
- Class59.anIntArray1269[l + 128] = l * 4 + 0xffff00;
- for(int i1 = 0; i1 < 64; i1++)
- Class59.anIntArray1269[i1 - -192] = 0xffffff;
- NPCDef.anIntArray3093 = new int[256];
- for(int j1 = 0; j1 < 64; j1++)
- NPCDef.anIntArray3093[j1] = 1024 * j1;
- for(int k1 = 0; ~k1 > -65; k1++)
- NPCDef.anIntArray3093[k1 - -64] = 65280 - -(4 * k1);
- for(int l1 = 0; ~l1 > -65; l1++)
- NPCDef.anIntArray3093[l1 + 128] = 65535 + 0x40000 * l1;
- for(int i2 = 0; i2 < 64; i2++)
- NPCDef.anIntArray3093[i2 - -192] = 0xffffff;
- Class82.anIntArray1786 = new int[256];
- for(int j2 = 0; ~j2 > -65; j2++)
- Class82.anIntArray1786[j2] = 4 * j2;
- for(int k2 = 0; k2 < 64; k2++)
- Class82.anIntArray1786[k2 - -64] = 255 + k2 * 0x40000;
- for(int l2 = 0; l2 < 64; l2++)
- Class82.anIntArray1786[128 + l2] = 0xff00ff + l2 * 1024;
- if(i < 6)
- aClass58_1906 = null;
- for(int i3 = 0; ~i3 > -65; i3++)
- Class82.anIntArray1786[i3 + 192] = 0xffffff;
- Class38.anIntArray837 = new int[256];
- Class34.anIntArray1827 = new int[32768];
- NPCDef.anIntArray3067 = new int[32768];
- Class11.method108(null, -1);
- Class33_Sub6_Sub4_Sub6.anIntArray3596 = new int[32768];
- BufferedRequest.aBoolean2683 = false;
- SpotAnimLoader.currentUsername = SpotAnimLoader.aClass58_1346;
- Class31.anInt696 = 0;
- SpotAnimLoader.currentPassword = SpotAnimLoader.aClass58_1346;
- MapRegion.anIntArray1488 = new int[32768];
- if(~Class33_Sub6_Sub6.anInt2790 == -1)
- RSInterface.aBoolean2375 = true;
- else
- RSInterface.aBoolean2375 = false;
- if(RSInterface.aBoolean2375)
- Class31.method258(-27742, 2);
- else
- Animation.method568(Class30_Sub1.aClass30_Sub1_1990, 255, false, Class54.aClass58_1158, SpotAnimLoader.aClass58_1346, 2, false);
- FileRequest.method1154(false, 68);
- OpcodeHandler.aBoolean2752 = true;
- CanvasWrapper.aBoolean74 = true;
- Class33_Sub16.aClass33_Sub6_Sub7_Sub3_2487.method495(0, 0);
- Class36.aClass33_Sub6_Sub7_Sub3_787.method495(382, 0);
- NPCDef.aClass33_Sub6_Sub7_Sub4_3116.method503(382 - NPCDef.aClass33_Sub6_Sub7_Sub4_3116.anInt3734 / 2, 18);
- return;
- }
- catch(RuntimeException runtimeexception)
- {
- throw Class33.method264(runtimeexception, "qf.RA(" + (component == null ? "null" : "{...}") + ',' + i + ',' + (class30 == null ? "null" : "{...}") + ',' + (class30_1 == null ? "null" : "{...}") + ')');
- }
- }
- public int method1032(boolean flag, int i)
- {
- anInt1895++;
- if(flag)
- return -6;
- else
- return 0xff & aByteArray1894[i];
- }
- public int method1033(int i)
- {
- anInt1867++;
- if(i < 105)
- length(-90);
- return method1045(10, (byte)-99);
- }
- public String toString()
- {
- anInt1888++;
- //throw new RuntimeException();
- return new String(aByteArray1894);
- }
- public RSString method1034(boolean flag)
- {
- anInt1881++;
- RSString class58 = new RSString();
- class58.anInt1893 = anInt1893;
- class58.aByteArray1894 = new byte[anInt1893];
- for(int i = 0; anInt1893 > i; i++)
- class58.aByteArray1894[i] = 42;
- if(flag)
- anInt1872 = -91;
- return class58;
- }
- public boolean method1035(int i, byte byte0)
- {
- anInt1861++;
- boolean flag = false;
- boolean flag1 = false;
- if(~i > -2 || i > 36)
- i = 10;
- int j = 0;
- if(byte0 != 103)
- aBoolean1896 = false;
- for(int k = 0; ~k > ~anInt1893; k++)
- {
- int l = aByteArray1894[k] & 0xff;
- if(k == 0)
- {
- if(l == 45)
- {
- flag = true;
- continue;
- }
- if(l == 43)
- continue;
- }
- if(~l <= -49 && ~l >= -58)
- l -= 48;
- else
- if(l < 65 || ~l < -91)
- {
- if(l >= 97 && ~l >= -123)
- l -= 87;
- else
- return false;
- } else
- {
- l -= 55;
- }
- if(i <= l)
- return false;
- if(flag)
- l = -l;
- int i1 = i * j - -l;
- if(i1 / i != j)
- return false;
- j = i1;
- flag1 = true;
- }
- return flag1;
- }
- public int length(int i)
- {
- if(i != 27)
- aBoolean1896 = true;
- anInt1875++;
- return anInt1893;
- }
- public URL method1037(int i)
- throws MalformedURLException
- {
- if(i != 24861)
- aClass58_1914 = null;
- anInt1889++;
- return new URL(new String(aByteArray1894, 0, anInt1893));
- }
- public static void method1038(boolean flag)
- {
- aClass58_1914 = null;
- aClass33_Sub6_Sub7_Sub4Array1919 = null;
- aClass16_1900 = null;
- aClass33_Sub6_Sub7_Sub4_1920 = null;
- aClass58_1918 = null;
- aClass58_1905 = null;
- aClass58_1909 = null;
- aClass58_1917 = null;
- aClass58_1912 = null;
- aClass58_1910 = null;
- aClass58_1916 = null;
- aClass58_1915 = null;
- aClass58_1903 = null;
- aClass58_1906 = null;
- if(flag)
- {
- return;
- } else
- {
- aClass58_1921 = null;
- aClass33_Sub6_Sub7_Sub3Array1904 = null;
- aClass58_1908 = null;
- aClass30_Sub1_1911 = null;
- return;
- }
- }
- public int hashCode()
- {
- anInt1885++;
- return method1055(true);
- }
- public boolean method1039(RSString class58, int i)
- {
- anInt1864++;
- int j = -21 / ((i - -11) / 53);
- if(class58 == null)
- return false;
- if(class58.anInt1893 != anInt1893)
- return false;
- if(!aBoolean1896 || !class58.aBoolean1896)
- {
- if(~anInt1872 == -1)
- {
- anInt1872 = method1055(true);
- if(~anInt1872 == -1)
- anInt1872 = 1;
- }
- if(~class58.anInt1872 == -1)
- {
- class58.anInt1872 = class58.method1055(true);
- if(~class58.anInt1872 == -1)
- class58.anInt1872 = 1;
- }
- if(anInt1872 != class58.anInt1872)
- return false;
- }
- for(int k = 0; k < anInt1893; k++)
- if(~class58.aByteArray1894[k] != ~aByteArray1894[k])
- return false;
- return true;
- }
- public RSString add(int i, byte byte0)
- {
- anInt1880++;
- int j = -70 % ((-70 - byte0) / 42);
- if(~i >= -1 || ~i < -256)
- {
- throw new IllegalArgumentException("invalid char");
- } else
- {
- RSString class58 = new RSString();
- class58.aByteArray1894 = new byte[1 + anInt1893];
- class58.anInt1893 = 1 + anInt1893;
- ArrayUtils.arraycopy(aByteArray1894, 0, class58.aByteArray1894, 0, anInt1893);
- class58.aByteArray1894[anInt1893] = (byte)i;
- return class58;
- }
- }
- public int method1041(int i, int j)
- {
- anInt1887++;
- if(i != 0)
- aClass58_1905 = null;
- return method1050(0, j, -75);
- }
- public int method1042(RSString class58, int i)
- {
- int j;
- if(anInt1893 <= class58.anInt1893)
- j = anInt1893;
- else
- j = class58.anInt1893;
- anInt1899++;
- if(i <= 105)
- method1058(12);
- for(int k = 0; j > k; k++)
- {
- if(~Class33_Sub6_Sub13.anIntArray3006[0xff & aByteArray1894[k]] > ~Class33_Sub6_Sub13.anIntArray3006[0xff & class58.aByteArray1894[k]])
- return -1;
- if(Class33_Sub6_Sub13.anIntArray3006[aByteArray1894[k] & 0xff] > Class33_Sub6_Sub13.anIntArray3006[0xff & class58.aByteArray1894[k]])
- return 1;
- }
- if(~anInt1893 > ~class58.anInt1893)
- return -1;
- return anInt1893 <= class58.anInt1893 ? 0 : 1;
- }
- public long method1043(int i)
- {
- long l = 0L;
- anInt1859++;
- for(int j = 0; j < anInt1893; j++)
- l = (long)(aByteArray1894[j] & 0xff) + ((l << 0xd645fa05) + -l);
- int k = 60 / ((i - 49) / 41);
- return l;
- }
- public int method1044(RSString class58, boolean flag)
- {
- anInt1882++;
- int i;
- if(~class58.anInt1893 <= ~anInt1893)
- i = anInt1893;
- else
- i = class58.anInt1893;
- for(int j = 0; j < i; j++)
- {
- if(~(aByteArray1894[j] & 0xff) > ~(0xff & class58.aByteArray1894[j]))
- return -1;
- if((0xff & aByteArray1894[j]) > (0xff & class58.aByteArray1894[j]))
- return 1;
- }
- if(flag)
- aClass58_1905 = null;
- if(class58.anInt1893 > anInt1893)
- return -1;
- return class58.anInt1893 >= anInt1893 ? 0 : 1;
- }
- public int method1045(int i, byte byte0)
- {
- if(i < 1 || ~i < -37)
- i = 10;
- boolean flag1 = false;
- boolean flag = false;
- anInt1913++;
- int j = 0;
- int k = 0;
- if(byte0 != -99)
- aClass58_1921 = null;
- for(; k < anInt1893; k++)
- {
- int l = 0xff & aByteArray1894[k];
- if(~k == -1)
- {
- if(l == 45)
- {
- flag = true;
- continue;
- }
- if(l == 43)
- continue;
- }
- if(~l > -49 || l > 57)
- {
- if(~l > -66 || l > 90)
- {
- if(l >= 97 && ~l >= -123)
- l -= 87;
- else
- throw new NumberFormatException();
- } else
- {
- l -= 55;
- }
- } else
- {
- l -= 48;
- }
- if(i <= l)
- throw new NumberFormatException();
- if(flag)
- l = -l;
- int i1 = l + j * i;
- if(~j != ~(i1 / i))
- throw new NumberFormatException();
- j = i1;
- flag1 = true;
- }
- if(!flag1)
- throw new NumberFormatException();
- else
- return j;
- }
- public RSString method1046(boolean flag)
- {
- anInt1902++;
- if(!flag)
- method1031(null, -6, null, null);
- RSString class58 = new RSString();
- class58.anInt1893 = anInt1893;
- class58.aByteArray1894 = new byte[anInt1893];
- for(int i = 0; ~i > ~anInt1893; i++)
- {
- byte byte0 = aByteArray1894[i];
- if(~byte0 <= -66 && ~byte0 >= -91 || byte0 >= -64 && byte0 <= -34 && byte0 != -41)
- byte0 += 32;
- class58.aByteArray1894[i] = byte0;
- }
- return class58;
- }
- public boolean equals(Object obj)
- {
- anInt1878++;
- if(obj instanceof RSString)
- return method1039((RSString)obj, -94);
- else
- throw new IllegalArgumentException();
- }
- public int method1047(byte byte0, RSString class58)
- {
- if(byte0 > -58)
- {
- return -107;
- } else
- {
- anInt1876++;
- return method1052(true, class58, 0);
- }
- }
- public boolean method1048(RSString class58, byte byte0)
- {
- anInt1856++;
- if(class58.anInt1893 > anInt1893)
- return false;
- int i = anInt1893 - class58.anInt1893;
- for(int j = 0; ~class58.anInt1893 < ~j; j++)
- if(aByteArray1894[j - -i] != class58.aByteArray1894[j])
- return false;
- return byte0 == -8 ? true : true;
- }
- public RSString method1049(int i)
- {
- anInt1891++;
- if(i != 57)
- aClass58_1905 = null;
- if(!aBoolean1896)
- throw new IllegalArgumentException();
- anInt1872 = 0;
- if(anInt1893 != aByteArray1894.length)
- {
- byte abyte0[] = new byte[anInt1893];
- ArrayUtils.arraycopy(aByteArray1894, 0, abyte0, 0, anInt1893);
- aByteArray1894 = abyte0;
- }
- return this;
- }
- public int method1050(int i, int j, int k)
- {
- anInt1869++;
- if(k > -50)
- method1042(null, -102);
- byte byte0 = (byte)j;
- for(int l = i; anInt1893 > l; l++)
- if(byte0 == aByteArray1894[l])
- return l;
- return -1;
- }
- public static void method1051(Screen applet_sub1, int i)
- {
- anInt1890++;
- if(BufferedRequest.aBoolean2683)
- {
- Class40.method886(applet_sub1, true);
- return;
- }
- if(~CacheRequester.anInt1464 == -2 && ~Class82.anInt1794 <= -716 && Class48.anInt1055 >= 453)
- {
- RSInterface.aBoolean2375 = !RSInterface.aBoolean2375;
- if(RSInterface.aBoolean2375)
- Class78.method1186(3);
- else
- CacheFile.method118(Class54.aClass58_1158, SpotAnimLoader.aClass58_1346, false, 10500, Class30_Sub1.aClass30_Sub1_1990, 255);
- }
- if(Class23.gameState == 5)
- return;
- ItemDefLoader.anInt287++;
- if(~Class23.gameState != -11)
- return;
- if(~Class33_Sub2.anInt2023 != -3 && BZip2BlockEntry.anInt1617 == 0)
- {
- if(CacheRequester.anInt1464 == 1)
- {
- char c = '\u01CF';
- byte byte1 = 100;
- byte byte2 = 35;
- byte byte0 = 5;
- if(byte0 <= Class82.anInt1794 && ~Class82.anInt1794 >= ~(byte0 + byte1) && c <= Class48.anInt1055 && ~Class48.anInt1055 >= ~(c + byte2))
- {
- Class33_Sub19.method819((byte)110);
- return;
- }
- }
- if(Class33_Sub6_Sub10.aClass36_2881 != null)
- Class33_Sub19.method819((byte)110);
- }
- int j = CacheRequester.anInt1464;
- int k = Class82.anInt1794;
- int l = Class48.anInt1055;
- int i1 = -64 / ((38 - i) / 40);
- if(Class31.anInt696 == 0)
- {
- char c3 = '\u0123';
- char c1 = '\u012E';
- if(~j == -2 && ~(c1 - 75) >= ~k && c1 - -75 >= k && ~l <= ~(c3 + -20) && c3 + 20 >= l)
- {
- Class31.anInt701 = 0;
- Class31.anInt696 = 3;
- }
- c1 = '\u01CE';
- if(~j == -2 && k >= c1 - 75 && ~k >= ~(c1 - -75) && l >= c3 - 20 && l <= 20 + c3)
- {
- SpotAnimLoader.aClass58_1356 = Class23.aClass58_453;
- SpotAnimLoader.aClass58_1334 = Class57.aClass58_1250;
- Class31.anInt701 = 0;
- Class31.anInt696 = 2;
- SpotAnimLoader.aClass58_1343 = Class23.aClass58_435;
- return;
- }
- } else
- {
- if(~Class31.anInt696 == -3)
- {
- int j1 = 231;
- j1 += 30;
- if(j == 1 && ~l <= ~(j1 - 15) && l < j1)
- Class31.anInt701 = 0;
- j1 += 15;
- if(j == 1 && ~l <= ~(-15 + j1) && ~l > ~j1)
- Class31.anInt701 = 1;
- char c6 = '\u0141';
- j1 += 15;
- char c4 = '\u012E';
- if(~j == -2 && k >= -75 + c4 && ~k >= ~(c4 + 75) && ~l <= ~(-20 + c6) && ~(20 + c6) <= ~l)
- {
- SpotAnimLoader.currentUsername = SpotAnimLoader.currentUsername.method1054(true).method1066(-119);
- if(~SpotAnimLoader.currentUsername.length(27) == -1)
- {
- Class19.method167(Class23.aClass58_471, false, Class23.aClass58_479, Class33_Sub6_Sub4_Sub5.aClass58_3568);
- return;
- }
- if(~SpotAnimLoader.currentPassword.length(27) == -1)
- {
- Class19.method167(Class23.aClass58_439, false, Class23.aClass58_478, Class33_Sub6_Sub4_Sub1.aClass58_3359);
- return;
- } else
- {
- Class19.method167(Class23.aClass58_434, false, Class23.aClass58_463, Class33_Sub20.aClass58_2573);
- Class29.method216(20, (byte)-47);
- return;
- }
- }
- c4 = '\u01CE';
- if(j == 1 && ~k <= ~(-75 + c4) && k <= c4 - -75 && l >= c6 - 20 && l <= c6 + 20)
- {
- SpotAnimLoader.currentPassword = SpotAnimLoader.aClass58_1346;
- SpotAnimLoader.currentUsername = SpotAnimLoader.aClass58_1346;
- Class31.anInt696 = 0;
- }
- while(Class39.method878((byte)107))
- {
- boolean flag = false;
- for(int k1 = 0; ~k1 > ~Class51.aClass58_1107.length(27); k1++)
- {
- if(~Class41.keyChar != ~Class51.aClass58_1107.method1032(false, k1))
- continue;
- flag = true;
- break;
- }
- if(~Class31.anInt701 != -1)
- {
- if(Class31.anInt701 == 1)
- {
- if(~Class49.keyCode == -86 && ~SpotAnimLoader.currentPassword.length(27) < -1)
- SpotAnimLoader.currentPassword = SpotAnimLoader.currentPassword.substring(0, (byte)126, SpotAnimLoader.currentPassword.length(27) + -1);
- if(Class49.keyCode == 84 || Class49.keyCode == 80)
- Class31.anInt701 = 0;
- if(flag && SpotAnimLoader.currentPassword.length(27) < 20)
- SpotAnimLoader.currentPassword = SpotAnimLoader.currentPassword.add(Class41.keyChar, (byte)-122);
- }
- } else
- {
- if(~Class49.keyCode == -86 && ~SpotAnimLoader.currentUsername.length(27) < -1)
- SpotAnimLoader.currentUsername = SpotAnimLoader.currentUsername.substring(0, (byte)120, -1 + SpotAnimLoader.currentUsername.length(27));
- if(Class49.keyCode == 84 || ~Class49.keyCode == -81)
- Class31.anInt701 = 1;
- if(flag && SpotAnimLoader.currentUsername.length(27) < 12)
- SpotAnimLoader.currentUsername = SpotAnimLoader.currentUsername.add(Class41.keyChar, (byte)66);
- }
- }
- return;
- }
- if(~Class31.anInt696 == -4)
- {
- char c2 = '\u017E';
- char c5 = '\u0141';
- if(j == 1 && k >= c2 + -75 && k <= c2 - -75 && c5 - 20 <= l && 20 + c5 >= l)
- Class31.anInt696 = 0;
- }
- }
- }
- public int method1052(boolean flag, RSString class58, int i)
- {
- anInt1883++;
- int ai[] = new int[class58.anInt1893];
- int ai1[] = new int[256];
- int ai2[] = new int[class58.anInt1893];
- for(int j = 0; ~j > ~ai1.length; j++)
- ai1[j] = class58.anInt1893;
- for(int k = 1; class58.anInt1893 >= k; k++)
- {
- ai[k + -1] = -k + (class58.anInt1893 << 0xd4ddc281);
- ai1[CacheFile.method111(255, class58.aByteArray1894[-1 + k])] = -k + class58.anInt1893;
- }
- int l = class58.anInt1893 - -1;
- for(int i1 = class58.anInt1893; i1 > 0; i1--)
- {
- ai2[-1 + i1] = l;
- for(; l <= class58.anInt1893 && class58.aByteArray1894[i1 - 1] != class58.aByteArray1894[l - 1]; l = ai2[l + -1])
- if(~ai[l + -1] <= ~(-i1 + class58.anInt1893))
- ai[l - 1] = class58.anInt1893 + -i1;
- l--;
- }
- if(!flag)
- method1052(false, null, 90);
- int j1 = l;
- int k1 = 1;
- l = -j1 + 1 + class58.anInt1893;
- int l1 = 0;
- for(int i2 = 1; ~l <= ~i2;)
- {
- ai2[i2 - 1] = l1;
- for(; l1 >= 1 && ~class58.aByteArray1894[-1 + l1] != ~class58.aByteArray1894[i2 - 1]; l1 = ai2[-1 + l1]);
- i2++;
- l1++;
- }
- while(j1 < class58.anInt1893)
- {
- for(int j2 = k1; ~j2 >= ~j1; j2++)
- if(~ai[-1 + j2] <= ~(j1 + (class58.anInt1893 + -j2)))
- ai[j2 + -1] = j1 + (class58.anInt1893 - j2);
- k1 = 1 + j1;
- j1 -= -l - -ai2[-1 + l];
- l = ai2[-1 + l];
- }
- int l2;
- for(int k2 = -1 + (i - -class58.anInt1893); anInt1893 > k2; k2 += Math.max(ai1[aByteArray1894[k2] & 0xff], ai[l2]))
- {
- for(l2 = class58.anInt1893 + -1; ~l2 <= -1 && ~aByteArray1894[k2] == ~class58.aByteArray1894[l2]; l2--)
- k2--;
- if(l2 == -1)
- return k2 - -1;
- }
- return -1;
- }
- public boolean method1053(RSString class58, int i)
- {
- anInt1857++;
- if(i >= -60)
- method1059(-2, (byte)-2);
- if(~anInt1893 > ~class58.anInt1893)
- return false;
- for(int j = 0; class58.anInt1893 > j; j++)
- if(class58.aByteArray1894[j] != aByteArray1894[j])
- return false;
- return true;
- }
- public RSString method1054(boolean flag)
- {
- anInt1868++;
- RSString class58 = new RSString();
- class58.anInt1893 = 0;
- class58.aByteArray1894 = new byte[12];
- int i = 0;
- if(!flag)
- method1046(true);
- for(int j = 0; anInt1893 > j; j++)
- {
- if(~aByteArray1894[j] <= -66 && ~aByteArray1894[j] >= -91)
- {
- class58.aByteArray1894[i++] = (byte)(97 + (aByteArray1894[j] - 65));
- class58.anInt1893 = i;
- } else
- if((~aByteArray1894[j] > -98 || aByteArray1894[j] > 122) && (~aByteArray1894[j] > -49 || aByteArray1894[j] > 57))
- {
- if(i > 0)
- class58.aByteArray1894[i++] = 95;
- } else
- {
- class58.aByteArray1894[i++] = aByteArray1894[j];
- class58.anInt1893 = i;
- }
- if(~i == -13)
- break;
- }
- return class58;
- }
- public int method1055(boolean flag)
- {
- anInt1879++;
- int i = 0;
- if(!flag)
- aClass58_1910 = null;
- for(int j = 0; anInt1893 > j; j++)
- i = -i + ((i << 0x83b22645) + (0xff & aByteArray1894[j]));
- return i;
- }
- public int method1056(int i, byte abyte0[], int j, byte byte0, int k)
- {
- if(byte0 < 24)
- aClass58_1917 = null;
- ArrayUtils.arraycopy(aByteArray1894, j, abyte0, k, i - j);
- anInt1873++;
- return i - j;
- }
- public int method1057(FontMetrics fontmetrics, boolean flag)
- {
- anInt1863++;
- String s;
- try
- {
- if(!flag)
- return -8;
- s = new String(aByteArray1894, 0, anInt1893, "ISO-8859-1");
- }
- catch(UnsupportedEncodingException _ex)
- {
- s = new String(aByteArray1894, 0, anInt1893);
- }
- return fontmetrics.stringWidth(s);
- }
- public RSString method1058(int i)
- {
- anInt1898++;
- long l = method1043(-35);
- synchronized(RSString.class)
- {
- if(AnimationLoader.aClass82_2586 == null)
- {
- AnimationLoader.aClass82_2586 = new Class82(4096);
- } else
- {
- for(Class33_Sub3 class33_sub3 = (Class33_Sub3)AnimationLoader.aClass82_2586.getFront(109, l); class33_sub3 != null; class33_sub3 = (Class33_Sub3)AnimationLoader.aClass82_2586.method1220(false))
- if(method1039(class33_sub3.aClass58_2045, -106))
- {
- RSString class58 = class33_sub3.aClass58_2045;
- return class58;
- }
- }
- if(i != 4096)
- aClass33_Sub6_Sub7_Sub3Array1904 = null;
- Class33_Sub3 class33_sub3_1 = new Class33_Sub3();
- class33_sub3_1.aClass58_2045 = this;
- aBoolean1896 = false;
- AnimationLoader.aClass82_2586.method1219(class33_sub3_1, (byte)-110, l);
- }
- return this;
- }
- public static int method1059(int i, byte byte0)
- {
- anInt1897++;
- int j = 0;
- if(i < 0 || ~i <= 0xfffeffff)
- {
- i >>>= 16;
- j += 16;
- }
- if(i >= 256)
- {
- j += 8;
- i >>>= 8;
- }
- if(i >= 16)
- {
- j += 4;
- i >>>= 4;
- }
- if(i >= 4)
- {
- j += 2;
- i >>>= 2;
- }
- if(~i <= -2)
- {
- i >>>= 1;
- j++;
- }
- if(byte0 != -98)
- method1051(null, -117);
- return j + i;
- }
- public boolean method1060(int i, RSString class58)
- {
- anInt1886++;
- if(class58 == null)
- return false;
- if(i != -1)
- return false;
- if(~anInt1893 != ~class58.anInt1893)
- return false;
- for(int j = 0; ~j > ~anInt1893; j++)
- {
- byte byte0 = aByteArray1894[j];
- if(byte0 >= 65 && byte0 <= 90 || ~byte0 <= 63 && byte0 <= -34 && byte0 != -41)
- byte0 += 32;
- byte byte1 = class58.aByteArray1894[j];
- if(byte1 >= 65 && ~byte1 >= -91 || byte1 >= -64 && byte1 <= -34 && ~byte1 != 40)
- byte1 += 32;
- if(~byte1 != ~byte0)
- return false;
- }
- return true;
- }
- public byte[] method1061(int i)
- {
- if(i < 117)
- {
- return null;
- } else
- {
- anInt1871++;
- byte abyte0[] = new byte[anInt1893];
- ArrayUtils.arraycopy(aByteArray1894, 0, abyte0, 0, anInt1893);
- return abyte0;
- }
- }
- public RSString method1062(int i)
- {
- byte byte0 = 2;
- RSString class58 = new RSString();
- class58.anInt1893 = anInt1893;
- class58.aByteArray1894 = new byte[anInt1893];
- for(int j = 0; anInt1893 > j; j++)
- {
- byte byte1 = aByteArray1894[j];
- if(~byte1 <= -98 && byte1 <= 122 || byte1 >= -32 && ~byte1 >= 1 && byte1 != -9)
- {
- if(byte0 == 2)
- byte1 -= 32;
- byte0 = 0;
- } else
- if((byte1 < 65 || byte1 > 90) && (~byte1 > 63 || ~byte1 < 33 || byte1 == -41))
- {
- if(~byte1 == -47 || byte1 == 33 || byte1 == 63)
- byte0 = 2;
- else
- if(~byte1 != -33)
- byte0 = 1;
- else
- if(byte0 != 2)
- byte0 = 1;
- } else
- {
- if(byte0 == 0)
- byte1 += 32;
- byte0 = 0;
- }
- class58.aByteArray1894[j] = byte1;
- }
- if(i > -48)
- {
- return null;
- } else
- {
- anInt1874++;
- return class58;
- }
- }
- public long toLong(byte byte0)
- {
- if(byte0 != 11)
- aClass33_Sub6_Sub7_Sub3Array1904 = null;
- anInt1877++;
- long l = 0L;
- for(int i = 0; ~anInt1893 < ~i && ~i > -13; i++)
- {
- l *= 37L;
- byte byte1 = aByteArray1894[i];
- if(byte1 >= 65 && ~byte1 >= -91)
- l += byte1 + -64;
- else
- if(~byte1 <= -98 && byte1 <= 122)
- l += 1 + byte1 + -97;
- else
- if(byte1 >= 48 && ~byte1 >= -58)
- l += -48 + (27 + byte1);
- }
- for(; l % 37L == 0L && l != 0L; l /= 37L);
- return l;
- }
- public RSString substring(int i, byte byte0, int j)
- {
- anInt1865++;
- RSString class58 = new RSString();
- if(byte0 < 118)
- aClass58_1917 = null;
- class58.aByteArray1894 = new byte[-i + j];
- class58.anInt1893 = -i + j;
- ArrayUtils.arraycopy(aByteArray1894, i, class58.aByteArray1894, 0, class58.anInt1893);
- return class58;
- }
- public void method1065(int i, int j, int k, Graphics g)
- {
- if(i > -56)
- aClass58_1909 = null;
- anInt1862++;
- String s;
- try
- {
- s = new String(aByteArray1894, 0, anInt1893, "ISO-8859-1");
- }
- catch(UnsupportedEncodingException _ex)
- {
- s = new String(aByteArray1894, 0, anInt1893);
- }
- g.drawString(s, j, k);
- }
- public RSString method1066(int i)
- {
- anInt1884++;
- RSString class58 = new RSString();
- boolean flag = true;
- class58.anInt1893 = anInt1893;
- class58.aByteArray1894 = new byte[anInt1893];
- if(i >= -88)
- return null;
- for(int j = 0; ~anInt1893 < ~j; j++)
- {
- byte byte0 = aByteArray1894[j];
- if(~byte0 == -96)
- {
- flag = true;
- class58.aByteArray1894[j] = 32;
- } else
- if(~byte0 > -98 || byte0 > 122 || !flag)
- {
- flag = false;
- class58.aByteArray1894[j] = byte0;
- } else
- {
- flag = false;
- class58.aByteArray1894[j] = (byte)(-32 + byte0);
- }
- }
- return class58;
- }
- public RSString()
- {
- aBoolean1896 = true;
- }
- public static int anInt1856;
- public static int anInt1857;
- public static int anInt1858;
- public static int anInt1859;
- public static int anInt1860;
- public static int anInt1861;
- public static int anInt1862;
- public static int anInt1863;
- public static int anInt1864;
- public static int anInt1865;
- public static int anInt1866;
- public static int anInt1867;
- public static int anInt1868;
- public static int anInt1869;
- public static int anInt1870;
- public static int anInt1871;
- public int anInt1872;
- public static int anInt1873;
- public static int anInt1874;
- public static int anInt1875;
- public static int anInt1876;
- public static int anInt1877;
- public static int anInt1878;
- public static int anInt1879;
- public static int anInt1880;
- public static int anInt1881;
- public static int anInt1882;
- public static int anInt1883;
- public static int anInt1884;
- public static int anInt1885;
- public static int anInt1886;
- public static int anInt1887;
- public static int anInt1888;
- public static int anInt1889;
- public static int anInt1890;
- public static int anInt1891;
- public static int anInt1892;
- public int anInt1893;
- public byte aByteArray1894[];
- public static int anInt1895;
- public boolean aBoolean1896;
- public static int anInt1897;
- public static int anInt1898;
- public static int anInt1899;
- public static Class16 aClass16_1900 = new Class16(100);
- public static int anInt1901;
- public static int anInt1902;
- public static RSString aClass58_1903;
- public static Sprite aClass33_Sub6_Sub7_Sub3Array1904[];
- public static RSString aClass58_1905;
- public static RSString aClass58_1906;
- public static int anInt1907;
- public static RSString aClass58_1908;
- public static RSString aClass58_1909 = ItemDef.stringToRSString(111, "RuneScape wird geladen )2 bitte warten)3)3)3");
- public static RSString aClass58_1910;
- public static Class30_Sub1 aClass30_Sub1_1911;
- public static RSString aClass58_1912 = ItemDef.stringToRSString(107, "scrollbar");
- public static int anInt1913;
- public static RSString aClass58_1914;
- public static RSString aClass58_1915;
- public static RSString aClass58_1916 = ItemDef.stringToRSString(114, "backleft1");
- public static RSString aClass58_1917 = ItemDef.stringToRSString(123, "Die Verbindung konnte");
- public static RSString aClass58_1918;
- public static Background aClass33_Sub6_Sub7_Sub4Array1919[];
- public static Background aClass33_Sub6_Sub7_Sub4_1920;
- public static RSString aClass58_1921;
- public static int anInt1922 = 0;
- static
- {
- aClass58_1906 = ItemDef.stringToRSString(113, "Enter name:");
- aClass58_1910 = ItemDef.stringToRSString(112, " is already on your ignore list");
- aClass58_1905 = ItemDef.stringToRSString(122, " seconds)3");
- aClass58_1921 = aClass58_1910;
- aClass58_1918 = aClass58_1905;
- aClass58_1915 = ItemDef.stringToRSString(124, "M");
- aClass58_1908 = aClass58_1915;
- aClass58_1914 = aClass58_1906;
- aClass58_1903 = aClass58_1915;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement