// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   mudclient.java

package pack5.pack6.pack7;

import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.*;
import java.lang.reflect.Array;
import java.net.InetAddress;
import java.util.*;
import javax.imageio.ImageIO;
import pack1.Class13;
import pack10.Class1;
import pack10.Class2;
import pack11.Class3;
import pack11.Class4;
import pack12.*;
import pack2.Class44;
import pack3.Class11;
import pack4.Class16;

// Referenced classes of package pack5.pack6.pack7:
//            Applet_Sub1_Sub1, Class32, Class31, Class26_Sub1, 
//            Class30, Class42, Class17, InputStream_Sub1, 
//            Class34, Class27, Class43, Class40, 
//            Class41, Class29, Class19, Class23, 
//            Class25, Class39, Class37, Class38, 
//            Class21, Class36, HashMap_Sub1, Class35, 
//            Class33_Sub1, Class26, Applet_Sub1, Frame_Sub1

public class mudclient extends Applet_Sub1_Sub1
{

    public static void main(String args[])
    {
        Applet_Sub1_Sub1.anInt761 = 4;
        mudclient mudclient1 = new mudclient(512, 334);
        Applet_Sub1_Sub1.aString763 = "127.0.0.1";
        Applet_Sub1_Sub1.anInt785 = 47223;
        mudclient1.aBoolean1060 = false;
        mudclient1.method12(aBufferedImage1266);
        mudclient1.method11(anInt1291, anInt1292 + 11, aString1294, false);
    }

    public boolean method45(int i, int j, int k, int l)
    {
        return super.anInt31 > i && super.anInt31 < j && super.anInt32 > k && super.anInt32 < l;
    }

    public static int[] method46(int ai[])
    {
        int i = (ai[0] + ai[1]) / 2;
        int j = (ai[2] + ai[3]) / 2;
        return (new int[] {
            i, j
        });
    }

    public static boolean method47(int i, int j, int ai[])
    {
        return i >= ai[0] && i <= ai[1] && j >= ai[2] && j <= ai[3];
    }

    public String method48(int i, int j)
    {
        if(aBoolean1179 = false)
            return "Wilderness";
        for(int k = 0; k < aStringArray1273.length; k++)
            if(method47(i, j, anIntArrayArray1274[k]))
                return aStringArray1273[k];

        return method50(i, j);
    }

    public boolean method49(String s)
    {
        for(int i = 0; i < super.aLongArray773.length; i++)
            if(Class35.method569(super.aLongArray773[i]).equalsIgnoreCase(s))
                return true;

        return false;
    }

    public String method50(int i, int j)
    {
        int k = 0x7fffffff;
        String s = "Unknown";
        for(int i1 = 0; i1 < aStringArray1273.length; i1++)
        {
            int ai[] = method46(anIntArrayArray1274[i1]);
            int l = (int)Math.sqrt(Math.pow(i - ai[0], 2D) + Math.pow(j - ai[1], 2D));
            if(l < k)
            {
                k = l;
                s = aStringArray1273[i1];
            }
        }

        if(k < 100)
            return (new StringBuilder()).append("Near ").append(s).toString();
        else
            return "Unknown";
    }

    public boolean method51(String s)
    {
        String s1;
        String as[];
        int i = s.indexOf(" ");
        s1 = s;
        as = new String[0];
        if(i != -1)
        {
            s1 = s.substring(0, i).trim();
            as = s.substring(i + 1).trim().split(" ");
        }
        if(!s1.equals("deposit"))
            break MISSING_BLOCK_LABEL_214;
        int j;
        int k;
        j = Integer.parseInt(as[0]);
        k = Integer.parseInt(as[1]);
        if(!aBoolean985)
            break MISSING_BLOCK_LABEL_196;
        if(method58(j) >= k)
            break MISSING_BLOCK_LABEL_151;
        method121((new StringBuilder()).append("@whi@You do not have that many ").append(Class3.method236(j).method292()).append(" deposit").toString(), 3, 0);
        return true;
        if(method58(j) >= k)
        {
            super.aClass33_Sub1_767.method558(24);
            super.aClass33_Sub1_767.method546(j);
            super.aClass33_Sub1_767.method544(k);
            super.aClass33_Sub1_767.method541();
        }
        return true;
        Exception exception;
        exception;
        method121("@cya@Invalid args!", 3, 0);
        return false;
        if(!s1.equals("withdraw"))
            break MISSING_BLOCK_LABEL_304;
        j = Integer.parseInt(as[0]);
        k = Integer.parseInt(as[1]);
        if(aBoolean985)
        {
            super.aClass33_Sub1_767.method558(25);
            super.aClass33_Sub1_767.method546(j);
            super.aClass33_Sub1_767.method544(k);
            super.aClass33_Sub1_767.method541();
        }
        return true;
        exception;
        method121("@cya@Invalid args!", 3, 0);
        return false;
        if(!s1.equals("offer"))
            break MISSING_BLOCK_LABEL_1187;
        boolean flag;
        j = Integer.parseInt(as[0]);
        k = Integer.parseInt(as[1]);
        flag = false;
        if(k >= 1)
            break MISSING_BLOCK_LABEL_358;
        method121("@cya@Invalid amount", 3, 0);
        return true;
        if(!aBoolean1236)
            break MISSING_BLOCK_LABEL_757;
        if(anInt1243 < 12)
            break MISSING_BLOCK_LABEL_388;
        method121("@cya@Your trade offer is currently full", 3, 0);
        return true;
        if(method58(j) >= k)
            break MISSING_BLOCK_LABEL_446;
        method121((new StringBuilder()).append("@cya@You do not have that many").append(Class3.method236(j).method292()).append(" to offer").toString(), 3, 0);
        return true;
        if(Class3.method236(j).method304() || k <= 1)
            break MISSING_BLOCK_LABEL_477;
        method121("@cya@You can only offer 1 non stackable at a time", 3, 0);
        return true;
        if(!Class3.method236(j).aBoolean807)
            break MISSING_BLOCK_LABEL_502;
        method121("@cya@You cannot trade quest items", 3, 0);
        return true;
        int l = 0;
_L3:
        if(l >= anInt1243)
            break MISSING_BLOCK_LABEL_627;
        if(anIntArray1244[l] != j)
            break MISSING_BLOCK_LABEL_621;
        if(!Class3.method236(j).method304())
            break MISSING_BLOCK_LABEL_627;
        if(method58(j) >= anIntArray1245[l] + k) goto _L2; else goto _L1
_L1:
        method121((new StringBuilder()).append("@cya@You do not have that many").append(Class3.method236(j).method292()).append(" to offer").toString(), 3, 0);
        return true;
_L2:
        anIntArray1245[l] += k;
        flag = true;
        break MISSING_BLOCK_LABEL_627;
        l++;
          goto _L3
        if(!flag)
        {
            anIntArray1244[anInt1243] = j;
            anIntArray1245[anInt1243] = k;
            anInt1243++;
        }
        aLong1267 = System.currentTimeMillis();
        super.aClass33_Sub1_767.method558(42);
        super.aClass33_Sub1_767.method542(anInt1243);
        for(l = 0; l < anInt1243; l++)
        {
            super.aClass33_Sub1_767.method546(anIntArray1244[l]);
            super.aClass33_Sub1_767.method544(anIntArray1245[l]);
        }

        super.aClass33_Sub1_767.method541();
        aBoolean997 = false;
        aBoolean998 = false;
        break MISSING_BLOCK_LABEL_1185;
        if(!aBoolean1193)
            break MISSING_BLOCK_LABEL_1156;
        if(anInt952 < 12)
            break MISSING_BLOCK_LABEL_787;
        method121("@cya@Your duel offer is currently full", 3, 0);
        return true;
        if(method58(j) >= k)
            break MISSING_BLOCK_LABEL_845;
        method121((new StringBuilder()).append("@cya@You do not have that many").append(Class3.method236(j).method292()).append(" to offer").toString(), 3, 0);
        return true;
        if(!Class3.method236(j).aBoolean807)
            break MISSING_BLOCK_LABEL_870;
        method121("@cya@You cannot trade quest items", 3, 0);
        return true;
        if(Class3.method236(j).method304() || k <= 1)
            break MISSING_BLOCK_LABEL_901;
        method121("@cya@You can only offer 1 non stackable at a time", 3, 0);
        return true;
        l = 0;
_L6:
        if(l >= anInt952)
            break MISSING_BLOCK_LABEL_1026;
        if(anIntArray956[l] != j)
            break MISSING_BLOCK_LABEL_1020;
        if(!Class3.method236(j).method304())
            break MISSING_BLOCK_LABEL_1026;
        if(method58(j) >= anIntArray957[l] + k) goto _L5; else goto _L4
_L4:
        method121((new StringBuilder()).append("@cya@You do not have that many").append(Class3.method236(j).method292()).append(" to offer").toString(), 3, 0);
        return true;
_L5:
        anIntArray957[l] += k;
        flag = true;
        break MISSING_BLOCK_LABEL_1026;
        l++;
          goto _L6
        if(!flag)
        {
            anIntArray956[anInt952] = j;
            anIntArray957[anInt952] = k;
            anInt952++;
        }
        aLong1267 = System.currentTimeMillis();
        super.aClass33_Sub1_767.method558(53);
        super.aClass33_Sub1_767.method542(anInt952);
        for(int i1 = 0; i1 < anInt952; i1++)
        {
            super.aClass33_Sub1_767.method546(anIntArray956[i1]);
            super.aClass33_Sub1_767.method544(anIntArray957[i1]);
        }

        super.aClass33_Sub1_767.method541();
        aBoolean959 = false;
        aBoolean958 = false;
        break MISSING_BLOCK_LABEL_1185;
        method121("@cya@You aren't in a trade/stake, there is nothing to offer to.", 3, 0);
        break MISSING_BLOCK_LABEL_1185;
        flag;
        method121("@cya@Invalid args!", 3, 0);
        return true;
        return false;
    }

    public static String method52(long l)
    {
        int i = (int)((System.currentTimeMillis() - l) / 1000L);
        int j = i / 60;
        int k = j / 60;
        int i1 = k / 24;
        if(i1 > 0)
            if(k > 0)
                return (new StringBuilder()).append(i1).append(" days, ").append(k % 24).append(" hours, ").append(j % 60).append(" mins").toString();
            else
                return (new StringBuilder()).append(i1).append(" days, ").append(j % 60).append(" mins").toString();
        if(k > 0)
            return (new StringBuilder()).append(k % 24).append(" hours, ").append(j % 60).append(" mins").toString();
        else
            return (new StringBuilder()).append(j % 60).append(" mins").toString();
    }

    public BufferedImage method53()
    {
        BufferedImage bufferedimage = new BufferedImage(anInt1246, anInt1247 + 11, 1);
        Graphics2D graphics2d = bufferedimage.createGraphics();
        graphics2d.drawImage(aClass26_Sub1_1195.anImage176, 0, 0, this);
        graphics2d.dispose();
        return bufferedimage;
    }

    public File method54(boolean flag)
    {
        String s = Class35.method569(Class35.method568(aString964));
        File file = new File((new StringBuilder()).append("media").append(File.separator).append(s).toString());
        try
        {
            if(!file.exists() || !file.isDirectory())
                file.mkdirs();
            String s1 = (new StringBuilder()).append(file.getPath()).append(File.separator).toString();
            file = null;
            for(int i = 0; file == null || file.exists(); i++)
                file = flag ? new File((new StringBuilder()).append(s1).append("movie").append(i).append(".mov").toString()) : new File((new StringBuilder()).append(s1).append("screenshot").append(i).append(".png").toString());

        }
        catch(Exception exception)
        {
            System.out.println((new StringBuilder()).append("An exception was encountered : please contact Zilent with the following:
").append(exception.getStackTrace()).append("
Thankyou for your patience.").toString());
        }
        return file;
    }

    public boolean method55(boolean flag)
    {
        File file = method54(false);
        ImageIO.write(method53(), "png", file);
        if(flag)
            method44((new StringBuilder()).append("@gre@RSCE:@whi@ Screenshot saved as:@gre@ ").append(file.getName()).toString());
        return true;
        IOException ioexception;
        ioexception;
        if(flag)
            method44("@gre@RSCE:@whi@ Error saving screenshot");
        return false;
    }

    public void method56(int i, int j, int k, int l, int i1, int j1, int k1)
    {
        Class31 class31 = aClass31Array991[i1];
        int l1 = class31.anInt301 + (anInt1085 + 16) / 32 & 7;
        boolean flag = false;
        int i2 = l1;
        if(i2 == 5)
        {
            i2 = 3;
            flag = true;
        } else
        if(i2 == 6)
        {
            i2 = 2;
            flag = true;
        } else
        if(i2 == 7)
        {
            i2 = 1;
            flag = true;
        }
        int j2 = i2 * 3 + anIntArray1012[(class31.anInt300 / Class3.method235(class31.anInt310).method315()) % 4];
        if(class31.anInt301 == 8)
        {
            i2 = 5;
            l1 = 2;
            flag = false;
            i -= (Class3.method235(class31.anInt310).method317() * k1) / 100;
            j2 = i2 * 3 + anIntArray1000[(anInt1033 / (Class3.method235(class31.anInt310).method316() - 1)) % 8];
        } else
        if(class31.anInt301 == 9)
        {
            i2 = 5;
            l1 = 2;
            flag = true;
            i += (Class3.method235(class31.anInt310).method317() * k1) / 100;
            j2 = i2 * 3 + anIntArray1057[(anInt1033 / Class3.method235(class31.anInt310).method316()) % 8];
        }
        for(int k2 = 0; k2 < 12; k2++)
        {
            int j3 = anIntArrayArray1122[l1][k2];
            int l3 = Class3.method235(class31.anInt310).method308(j3);
            if(l3 < 0)
                continue;
            int i4 = 0;
            int j4 = 0;
            int k4 = j2;
            if(flag && i2 >= 1 && i2 <= 3 && Class3.method239(l3).method342())
                k4 += 15;
            if(i2 == 5 && !Class3.method239(l3).method341())
                continue;
            int l4 = k4 + Class3.method239(l3).method343();
            i4 = (i4 * k) / ((Class26) (aClass26_Sub1_1195)).aClass16Array167[l4].method351();
            j4 = (j4 * l) / ((Class26) (aClass26_Sub1_1195)).aClass16Array167[l4].method352();
            int i5 = (k * ((Class26) (aClass26_Sub1_1195)).aClass16Array167[l4].method351()) / ((Class26) (aClass26_Sub1_1195)).aClass16Array167[Class3.method239(l3).method343()].method351();
            i4 -= (i5 - k) / 2;
            int j5 = Class3.method239(l3).method339();
            int k5 = 0;
            if(j5 == 1)
            {
                j5 = Class3.method235(class31.anInt310).method309();
                k5 = Class3.method235(class31.anInt310).method312();
            } else
            if(j5 == 2)
            {
                j5 = Class3.method235(class31.anInt310).method310();
                k5 = Class3.method235(class31.anInt310).method312();
            } else
            if(j5 == 3)
            {
                j5 = Class3.method235(class31.anInt310).method311();
                k5 = Class3.method235(class31.anInt310).method312();
            }
            aClass26_Sub1_1195.method452(i + i4, j + j4, i5, l, l4, j5, k5, j1, flag);
        }

        if(class31.anInt309 > 0)
        {
            anIntArray989[anInt983] = aClass26_Sub1_1195.method466(class31.aString308, 1) / 2;
            if(anIntArray989[anInt983] > 150)
                anIntArray989[anInt983] = 150;
            anIntArray990[anInt983] = (aClass26_Sub1_1195.method466(class31.aString308, 1) / 300) * aClass26_Sub1_1195.method464(1);
            anIntArray987[anInt983] = i + k / 2;
            anIntArray988[anInt983] = j;
            aStringArray984[anInt983++] = class31.aString308;
        }
        if(class31.anInt301 == 8 || class31.anInt301 == 9 || class31.anInt313 != 0)
        {
            if(class31.anInt313 > 0)
            {
                int l2 = i;
                if(class31.anInt301 == 8)
                    l2 -= (20 * k1) / 100;
                else
                if(class31.anInt301 == 9)
                    l2 += (20 * k1) / 100;
                int k3 = (class31.anInt311 * 30) / class31.anInt312;
                anIntArray1072[anInt1014] = l2 + k / 2;
                anIntArray1073[anInt1014] = j;
                anIntArray1074[anInt1014++] = k3;
            }
            if(class31.anInt313 > 150)
            {
                int i3 = i;
                if(class31.anInt301 == 8)
                    i3 -= (10 * k1) / 100;
                else
                if(class31.anInt301 == 9)
                    i3 += (10 * k1) / 100;
                aClass26_Sub1_1195.method438((i3 + k / 2) - 12, (j + l / 2) - 12, 2012);
                method79(String.valueOf(class31.anInt324), (i3 + k / 2) - 1, j + l / 2 + 5, 3, 0xffffff);
            }
        }
    }

    public void method57()
    {
        aClass30_1216.method472(super.anInt31, super.anInt32, super.anInt34, super.anInt33);
        if(aClass30_1216.method473(anInt1124))
            do
                anInt1094 = ((anInt1094 - 1) + Class3.method238()) % Class3.method238();
            while((Class3.method239(anInt1094).method340() & 3) != 1 || (Class3.method239(anInt1094).method340() & 4 * anInt1101) == 0);
        if(aClass30_1216.method473(anInt1125))
            do
                anInt1094 = (anInt1094 + 1) % Class3.method238();
            while((Class3.method239(anInt1094).method340() & 3) != 1 || (Class3.method239(anInt1094).method340() & 4 * anInt1101) == 0);
        if(aClass30_1216.method473(anInt1126))
            anInt1097 = ((anInt1097 - 1) + anIntArray1080.length) % anIntArray1080.length;
        if(aClass30_1216.method473(anInt1127))
            anInt1097 = (anInt1097 + 1) % anIntArray1080.length;
        if(aClass30_1216.method473(anInt1128) || aClass30_1216.method473(anInt1129))
        {
            for(anInt1101 = 3 - anInt1101; (Class3.method239(anInt1094).method340() & 3) != 1 || (Class3.method239(anInt1094).method340() & 4 * anInt1101) == 0; anInt1094 = (anInt1094 + 1) % Class3.method238());
            for(; (Class3.method239(anInt1095).method340() & 3) != 2 || (Class3.method239(anInt1095).method340() & 4 * anInt1101) == 0; anInt1095 = (anInt1095 + 1) % Class3.method238());
        }
        if(aClass30_1216.method473(anInt1130))
            anInt1098 = ((anInt1098 - 1) + anIntArray993.length) % anIntArray993.length;
        if(aClass30_1216.method473(anInt1131))
            anInt1098 = (anInt1098 + 1) % anIntArray993.length;
        if(aClass30_1216.method473(anInt1132))
            anInt1100 = ((anInt1100 - 1) + anIntArray1239.length) % anIntArray1239.length;
        if(aClass30_1216.method473(anInt1133))
            anInt1100 = (anInt1100 + 1) % anIntArray1239.length;
        if(aClass30_1216.method473(anInt1134))
            anInt1099 = ((anInt1099 - 1) + anIntArray993.length) % anIntArray993.length;
        if(aClass30_1216.method473(anInt1135))
            anInt1099 = (anInt1099 + 1) % anIntArray993.length;
        if(aClass30_1216.method473(anInt1136))
        {
            super.aClass33_Sub1_767.method558(13);
            super.aClass33_Sub1_767.method542(anInt1101);
            super.aClass33_Sub1_767.method542(anInt1094);
            super.aClass33_Sub1_767.method542(anInt1095);
            super.aClass33_Sub1_767.method542(anInt1096);
            super.aClass33_Sub1_767.method542(anInt1097);
            super.aClass33_Sub1_767.method542(anInt1098);
            super.aClass33_Sub1_767.method542(anInt1099);
            super.aClass33_Sub1_767.method542(anInt1100);
            super.aClass33_Sub1_767.method541();
            aClass26_Sub1_1195.method424();
            aBoolean1055 = false;
        }
    }

    public int method58(int i)
    {
        int j = 0;
        for(int k = 0; k < anInt979; k++)
        {
            if(anIntArray980[k] != i)
                continue;
            if(!Class3.method236(i).method304())
                j++;
            else
                j += anIntArray981[k];
        }

        return j;
    }

    public void method59()
    {
        if(super.anInt784 > 0)
            super.anInt784--;
        if(anInt994 == 0)
        {
            aClass30_1082.method472(super.anInt31, super.anInt32, super.anInt34, super.anInt33);
            if(aClass30_1082.method473(anInt963))
            {
                anInt994 = 2;
                aClass30_1079.method502(anInt1102, "");
                aClass30_1079.method502(anInt1103, aString964);
                aClass30_1079.method502(anInt1104, aString965);
                aClass30_1079.method506(anInt1103);
                return;
            }
        } else
        if(anInt994 == 2)
        {
            aClass30_1079.method472(super.anInt31, super.anInt32, super.anInt34, super.anInt33);
            if(aClass30_1079.method473(anInt1106))
                anInt994 = 0;
            if(aClass30_1079.method473(anInt1103))
                aClass30_1079.method506(anInt1104);
            if(aClass30_1079.method473(anInt1104) || aClass30_1079.method473(anInt1105))
            {
                aString964 = aClass30_1079.method503(anInt1103);
                aString965 = aClass30_1079.method503(anInt1104);
                method26(aString964, aString965, false);
            }
        }
    }

    public void method60()
    {
        aBoolean1031 = false;
        aClass26_Sub1_1195.aBoolean181 = false;
        aClass26_Sub1_1195.method424();
        if(anInt994 == 0 || anInt994 == 1 || anInt994 == 2 || anInt994 == 3)
            aClass26_Sub1_1195.method437(0, 0, aClass16_1261);
        if(anInt994 == 0)
            aClass30_1082.method475();
        if(anInt994 == 1)
            aClass30_1145.method475();
        if(anInt994 == 2)
            aClass30_1079.method475();
        aClass26_Sub1_1195.method423(aGraphics1206, 0, 0);
    }

    public void method61()
    {
        anInt1113 = 0;
        int i = anInt1292 / 2 - 45;
        for(int j = 0; j < 12; j++)
        {
            if(super.anInt31 > anInt1291 / 2 - 190 && super.anInt31 < anInt1291 / 2 + 190 && super.anInt32 >= i - 12 && super.anInt32 < i + 3)
                anInt1113 = j + 1;
            i += 14;
        }

        if(anInt1175 != 0 && anInt1113 != 0)
        {
            anInt1175 = 0;
            anInt1025 = 2;
            super.aString38 = "";
            super.aString39 = "";
            return;
        }
        i += 15;
        if(anInt1175 != 0)
        {
            anInt1175 = 0;
            if(method45(anInt1291 / 2 - 15, anInt1291 / 2 + 15, anInt1292 / 2 - 15, anInt1292 / 2 + 5))
            {
                anInt1025 = 0;
                return;
            }
            if(!method45(anInt1291 / 2 - 200, anInt1291 / 2 + 200, anInt1292 / 2 - 145, anInt1292 / 2 + 145))
            {
                anInt1025 = 0;
                return;
            }
        }
        aClass26_Sub1_1195.method428(anInt1291 / 2 - 200, anInt1292 / 2 - 145, 400, 290, 0);
        aClass26_Sub1_1195.method429(anInt1291 / 2 - 200, anInt1292 / 2 - 145, 400, 290, 0xffffff);
        i = anInt1292 / 2 - 132;
        String as[] = Class4.aStringArray69;
        int l = as.length;
        for(int i1 = 0; i1 < l; i1++)
        {
            String s = as[i1];
            method79(s, anInt1291 / 2, i, 1, 0xffffff);
            i += 15;
        }

        int k;
        if(anInt1113 == 1)
        {
            aClass26_Sub1_1195.method429(anInt1291 / 2 - 190, i - 12, 380, 15, 0xffffff);
            k = 0xff8000;
        } else
        {
            k = 0xffffff;
        }
        method79("1: Offensive language", anInt1291 / 2, i, 1, k);
        i += 14;
        if(anInt1113 == 2)
        {
            aClass26_Sub1_1195.method429(anInt1291 / 2 - 190, i - 12, 380, 15, 0xffffff);
            k = 0xff8000;
        } else
        {
            k = 0xffffff;
        }
        method79("2: Item scamming", anInt1291 / 2, i, 1, k);
        i += 14;
        if(anInt1113 == 3)
        {
            aClass26_Sub1_1195.method429(anInt1291 / 2 - 190, i - 12, 380, 15, 0xffffff);
            k = 0xff8000;
        } else
        {
            k = 0xffffff;
        }
        method79("3: Password scamming", anInt1291 / 2, i, 1, k);
        i += 14;
        if(anInt1113 == 4)
        {
            aClass26_Sub1_1195.method429(anInt1291 / 2 - 190, i - 12, 380, 15, 0xffffff);
            k = 0xff8000;
        } else
        {
            k = 0xffffff;
        }
        method79("4: Bug abuse", anInt1291 / 2, i, 1, k);
        i += 14;
        if(anInt1113 == 5)
        {
            aClass26_Sub1_1195.method429(anInt1291 / 2 - 190, i - 12, 380, 15, 0xffffff);
            k = 0xff8000;
        } else
        {
            k = 0xffffff;
        }
        method79("5: RSCE Staff impersonation", anInt1291 / 2, i, 1, k);
        i += 14;
        if(anInt1113 == 6)
        {
            aClass26_Sub1_1195.method429(anInt1291 / 2 - 190, i - 12, 380, 15, 0xffffff);
            k = 0xff8000;
        } else
        {
            k = 0xffffff;
        }
        method79("6: Account sharing/trading", anInt1291 / 2, i, 1, k);
        i += 14;
        if(anInt1113 == 7)
        {
            aClass26_Sub1_1195.method429(anInt1291 / 2 - 190, i - 12, 380, 15, 0xffffff);
            k = 0xff8000;
        } else
        {
            k = 0xffffff;
        }
        method79("7: Macroing", anInt1291 / 2, i, 1, k);
        i += 14;
        if(anInt1113 == 8)
        {
            aClass26_Sub1_1195.method429(anInt1291 / 2 - 190, i - 12, 380, 15, 0xffffff);
            k = 0xff8000;
        } else
        {
            k = 0xffffff;
        }
        method79("8: Mutiple logging in", anInt1291 / 2, i, 1, k);
        i += 14;
        if(anInt1113 == 9)
        {
            aClass26_Sub1_1195.method429(anInt1291 / 2 - 190, i - 12, 380, 15, 0xffffff);
            k = 0xff8000;
        } else
        {
            k = 0xffffff;
        }
        method79("9: Encouraging others to break rules", anInt1291 / 2, i, 1, k);
        i += 14;
        if(anInt1113 == 10)
        {
            aClass26_Sub1_1195.method429(anInt1291 / 2 - 190, i - 12, 380, 15, 0xffffff);
            k = 0xff8000;
        } else
        {
            k = 0xffffff;
        }
        method79("10: Misuse of customer support", anInt1291 / 2, i, 1, k);
        i += 14;
        if(anInt1113 == 11)
        {
            aClass26_Sub1_1195.method429(anInt1291 / 2 - 190, i - 12, 380, 15, 0xffffff);
            k = 0xff8000;
        } else
        {
            k = 0xffffff;
        }
        method79("11: Advertising / website", anInt1291 / 2, i, 1, k);
        i += 14;
        if(anInt1113 == 12)
        {
            aClass26_Sub1_1195.method429(anInt1291 / 2 - 190, i - 12, 380, 15, 0xffffff);
            k = 0xff8000;
        } else
        {
            k = 0xffffff;
        }
        method79("12: Real world item trading", anInt1291 / 2, i, 1, k);
        i += 14;
        i += 15;
        k = 0xffffff;
        if(super.anInt31 > anInt1291 / 2 - 15 && super.anInt31 < anInt1291 / 2 + 15 && super.anInt32 > i - 15 && super.anInt32 < i + 5)
            k = 0xffff00;
        method79("Cancel", anInt1291 / 2, i, 1, k);
    }

    public void method62()
    {
        if((anInt1016 & 1) == 1 && method124(anInt1016))
            return;
        if((anInt1016 & 1) == 0 && method124(anInt1016))
        {
            if(method124(anInt1016 + 1 & 7))
            {
                anInt1016 = anInt1016 + 1 & 7;
                return;
            }
            if(method124(anInt1016 + 7 & 7))
                anInt1016 = anInt1016 + 7 & 7;
            return;
        }
        int ai[] = {
            1, -1, 2, -2, 3, -3, 4
        };
        int i = 0;
        do
        {
            if(i >= 7)
                break;
            if(method124(anInt1016 + ai[i] + 8 & 7))
            {
                anInt1016 = anInt1016 + ai[i] + 8 & 7;
                break;
            }
            i++;
        } while(true);
        if((anInt1016 & 1) == 0 && method124(anInt1016))
        {
            if(method124(anInt1016 + 1 & 7))
            {
                anInt1016 = anInt1016 + 1 & 7;
                return;
            }
            if(method124(anInt1016 + 7 & 7))
                anInt1016 = anInt1016 + 7 & 7;
        }
    }

    public Graphics getGraphics()
    {
        if(Applet_Sub1.aFrame_Sub1_10 != null)
            return Applet_Sub1.aFrame_Sub1_10.getGraphics();
        else
            return super.getGraphics();
    }

    public void method63(int i, int j, int k, int l, int i1, int j1, int k1)
    {
        Class31 class31 = aClass31Array1171[i1];
        if(class31.anInt317 == 255)
            return;
        int l1 = class31.anInt301 + (anInt1085 + 16) / 32 & 7;
        boolean flag = false;
        int i2 = l1;
        if(i2 == 5)
        {
            i2 = 3;
            flag = true;
        } else
        if(i2 == 6)
        {
            i2 = 2;
            flag = true;
        } else
        if(i2 == 7)
        {
            i2 = 1;
            flag = true;
        }
        int j2 = i2 * 3 + anIntArray1012[(class31.anInt300 / 6) % 4];
        if(class31.anInt301 == 8)
        {
            i2 = 5;
            l1 = 2;
            flag = false;
            i -= (5 * k1) / 100;
            j2 = i2 * 3 + anIntArray1000[(anInt1033 / 5) % 8];
        } else
        if(class31.anInt301 == 9)
        {
            i2 = 5;
            l1 = 2;
            flag = true;
            i += (5 * k1) / 100;
            j2 = i2 * 3 + anIntArray1057[(anInt1033 / 6) % 8];
        }
        for(int k2 = 0; k2 < 12; k2++)
        {
            int k3 = anIntArrayArray1122[l1][k2];
            int j4 = class31.anIntArray307[k3] - 1;
            if(j4 < 0)
                continue;
            int l4 = 0;
            int i5 = 0;
            int j5 = j2;
            if(flag && i2 >= 1 && i2 <= 3)
                if(Class3.method239(j4).method342())
                    j5 += 15;
                else
                if(k3 == 4 && i2 == 1)
                {
                    l4 = -22;
                    i5 = -3;
                    j5 = i2 * 3 + anIntArray1012[(2 + class31.anInt300 / 6) % 4];
                } else
                if(k3 == 4 && i2 == 2)
                {
                    l4 = 0;
                    i5 = -8;
                    j5 = i2 * 3 + anIntArray1012[(2 + class31.anInt300 / 6) % 4];
                } else
                if(k3 == 4 && i2 == 3)
                {
                    l4 = 26;
                    i5 = -5;
                    j5 = i2 * 3 + anIntArray1012[(2 + class31.anInt300 / 6) % 4];
                } else
                if(k3 == 3 && i2 == 1)
                {
                    l4 = 22;
                    i5 = 3;
                    j5 = i2 * 3 + anIntArray1012[(2 + class31.anInt300 / 6) % 4];
                } else
                if(k3 == 3 && i2 == 2)
                {
                    l4 = 0;
                    i5 = 8;
                    j5 = i2 * 3 + anIntArray1012[(2 + class31.anInt300 / 6) % 4];
                } else
                if(k3 == 3 && i2 == 3)
                {
                    l4 = -26;
                    i5 = 5;
                    j5 = i2 * 3 + anIntArray1012[(2 + class31.anInt300 / 6) % 4];
                }
            if(i2 == 5 && !Class3.method239(j4).method341())
                continue;
            int k5 = j5 + Class3.method239(j4).method343();
            l4 = (l4 * k) / ((Class26) (aClass26_Sub1_1195)).aClass16Array167[k5].method351();
            i5 = (i5 * l) / ((Class26) (aClass26_Sub1_1195)).aClass16Array167[k5].method352();
            int l5 = (k * ((Class26) (aClass26_Sub1_1195)).aClass16Array167[k5].method351()) / ((Class26) (aClass26_Sub1_1195)).aClass16Array167[Class3.method239(j4).method343()].method351();
            l4 -= (l5 - k) / 2;
            int i6 = Class3.method239(j4).method339();
            int j6 = anIntArray1239[class31.anInt318];
            if(i6 == 1)
                i6 = anIntArray1080[class31.anInt315];
            else
            if(i6 == 2)
                i6 = anIntArray993[class31.anInt316];
            else
            if(i6 == 3)
                i6 = anIntArray993[class31.anInt317];
            aClass26_Sub1_1195.method452(i + l4, j + i5, l5, l, k5, i6, j6, j1, flag);
        }

        if(class31.anInt309 > 0)
        {
            anIntArray989[anInt983] = aClass26_Sub1_1195.method466(class31.aString308, 1) / 2;
            if(anIntArray989[anInt983] > 150)
                anIntArray989[anInt983] = 150;
            anIntArray990[anInt983] = (aClass26_Sub1_1195.method466(class31.aString308, 1) / 300) * aClass26_Sub1_1195.method464(1);
            anIntArray987[anInt983] = i + k / 2;
            anIntArray988[anInt983] = j;
            aStringArray984[anInt983++] = class31.aString308;
        }
        if(class31.anInt323 > 0)
        {
            anIntArray1137[anInt995] = i + k / 2;
            anIntArray1138[anInt995] = j;
            anIntArray1001[anInt995] = k1;
            anIntArray1002[anInt995++] = class31.anInt322;
        }
        if(class31.anInt301 == 8 || class31.anInt301 == 9 || class31.anInt313 != 0)
        {
            if(class31.anInt313 > 0)
            {
                int l2 = i;
                if(class31.anInt301 == 8)
                    l2 -= (20 * k1) / 100;
                else
                if(class31.anInt301 == 9)
                    l2 += (20 * k1) / 100;
                int l3 = (class31.anInt311 * 30) / class31.anInt312;
                anIntArray1072[anInt1014] = l2 + k / 2;
                anIntArray1073[anInt1014] = j;
                anIntArray1074[anInt1014++] = l3;
            }
            if(class31.anInt313 > 150)
            {
                int i3 = i;
                if(class31.anInt301 == 8)
                    i3 -= (10 * k1) / 100;
                else
                if(class31.anInt301 == 9)
                    i3 += (10 * k1) / 100;
                aClass26_Sub1_1195.method438((i3 + k / 2) - 12, (j + l / 2) - 12, 2011);
                method79(String.valueOf(class31.anInt324), (i3 + k / 2) - 1, j + l / 2 + 5, 3, 0xffffff);
            }
        }
        if(class31.anInt326 == 1 && class31.anInt323 == 0)
        {
            int j3 = j1 + i + k / 2;
            if(class31.anInt301 == 8)
                j3 -= (20 * k1) / 100;
            else
            if(class31.anInt301 == 9)
                j3 += (20 * k1) / 100;
            int i4 = (16 * k1) / 100;
            int k4 = (16 * k1) / 100;
            aClass26_Sub1_1195.method439(j3 - i4 / 2, j - k4 / 2 - (10 * k1) / 100, i4, k4, 2013);
        }
    }

    public void method64()
    {
        method21(15, "Unpacking Configuration...");
        Class3.method260();
    }

    public void method65()
    {
        method21(75, "Loading 3D Models...");
        String as[] = {
            "torcha2", "torcha3", "torcha4", "skulltorcha2", "skulltorcha3", "skulltorcha4", "firea2", "firea3", "fireplacea2", "fireplacea3", 
            "firespell2", "firespell3", "lightning2", "lightning3", "clawspell2", "clawspell3", "clawspell4", "clawspell5", "spellcharge2", "spellcharge3"
        };
        Object aobj[] = as;
        int i = aobj.length;
        for(int k = 0; k < i; k++)
        {
            String s = aobj[k];
            Class3.method261(s);
        }

        aobj = method111("models");
        if(aobj == null)
        {
            aBoolean1197 = true;
            return;
        }
        for(int j = 0; j < Class3.method231(); j++)
        {
            int l = Class35.method570((new StringBuilder()).append(Class3.method232(j)).append(".ob3").toString(), ((byte []) (aobj)));
            if(l == 0)
                aClass32Array1062[j] = new Class32(1, 1);
            else
                aClass32Array1062[j] = new Class32(((byte []) (aobj)), l, true);
            aClass32Array1062[j].aBoolean357 = Class3.method232(j).equals("giantcrystal");
        }

    }

    public void method16(int i, int j, int k)
    {
        anIntArray1202[anInt1201] = j;
        anIntArray1203[anInt1201] = k;
        anInt1201 = anInt1201 + 1 & 0x1fff;
label0:
        for(int l = 10; l < 4000; l++)
        {
            int i1 = anInt1201 - l & 0x1fff;
            if(anIntArray1202[i1] != j || anIntArray1203[i1] != k)
                continue;
            boolean flag = false;
            int j1 = 1;
            do
            {
                if(j1 >= l)
                    continue label0;
                int k1 = anInt1201 - j1 & 0x1fff;
                int l1 = i1 - j1 & 0x1fff;
                if(anIntArray1202[l1] != j || anIntArray1203[l1] != k)
                    flag = true;
                if(anIntArray1202[k1] != anIntArray1202[l1] || anIntArray1203[k1] != anIntArray1203[l1])
                    continue label0;
                if(j1 == l - 1 && flag && anInt949 == 0 && anInt1086 == 0)
                {
                    method75();
                    return;
                }
                j1++;
            } while(true);
        }

    }

    public void method10()
    {
        if(aBoolean1197)
        {
            Graphics g = getGraphics();
            g.setColor(Color.black);
            g.fillRect(0, 0, 512, 356);
            g.setFont(new Font("Helvetica", 1, 16));
            g.setColor(Color.yellow);
            int i = 35;
            g.drawString("Sorry, an error has occured whilst loading RSCEmatulion", 30, i);
            i += 50;
            g.setColor(Color.white);
            g.drawString("To fix this try the following (in order):", 30, i);
            i += 50;
            g.setColor(Color.white);
            g.setFont(new Font("Helvetica", 1, 12));
            g.drawString("1: Try closing ALL open web-browser windows, and reloading", 30, i);
            i += 30;
            g.drawString("2: Try clearing your web-browsers cache from tools->internet options", 30, i);
            i += 30;
            g.drawString("3: Try using a different game-world", 30, i);
            i += 30;
            g.drawString("4: Try rebooting your computer", 30, i);
            i += 30;
            g.drawString("5: Try selecting a different version of Java from the play-game menu", 30, i);
            method13(1);
            return;
        }
        if(aBoolean1009)
        {
            Graphics g1 = getGraphics();
            g1.setColor(Color.black);
            g1.fillRect(0, 0, 512, 356);
            g1.setFont(new Font("Helvetica", 1, 20));
            g1.setColor(Color.white);
            g1.drawString("Error - out of memory!", 50, 50);
            g1.drawString("Close ALL unnecessary programs", 50, 100);
            g1.drawString("and windows before loading the game", 50, 150);
            g1.drawString("RSCEmulation needs about 100mb of spare RAM", 50, 200);
            method13(1);
            return;
        }
        try
        {
            if(anInt1015 == 1)
            {
                aClass26_Sub1_1195.aBoolean184 = true;
                method93();
            } else
            {
                aClass26_Sub1_1195.aBoolean184 = false;
                method60();
            }
        }
        catch(OutOfMemoryError outofmemoryerror)
        {
            method98();
            aBoolean1009 = true;
        }
    }

    public void method66(int i, int j, int k, int l)
    {
        int i1;
        int j1;
        if(k == 0 || k == 4)
        {
            i1 = Class3.method247(l).method298();
            j1 = Class3.method247(l).method299();
        } else
        {
            j1 = Class3.method247(l).method298();
            i1 = Class3.method247(l).method299();
        }
        if(Class3.method247(l).method297() == 2 || Class3.method247(l).method297() == 3)
        {
            if(k == 0)
            {
                i--;
                i1++;
            }
            if(k == 2)
                j1++;
            if(k == 4)
                i1++;
            if(k == 6)
            {
                j--;
                j1++;
            }
            method128(anInt1157, anInt1158, i, j, (i + i1) - 1, (j + j1) - 1, false, true);
            return;
        } else
        {
            method128(anInt1157, anInt1158, i, j, (i + i1) - 1, (j + j1) - 1, true, true);
            return;
        }
    }

    public void method67()
    {
        char c = '\u0198';
        char c1 = '\u014E';
        if(anInt975 > 0 && anInt1123 <= 48)
            anInt975 = 0;
        if(anInt975 > 1 && anInt1123 <= 96)
            anInt975 = 1;
        if(anInt975 > 2 && anInt1123 <= 144)
            anInt975 = 2;
        if(anInt1107 >= anInt1123 || anInt1107 < 0)
            anInt1107 = -1;
        if(anInt1107 != -1 && anIntArray1177[anInt1107] != anInt1108)
        {
            anInt1107 = -1;
            anInt1108 = -2;
        }
        if(anInt1175 != 0)
        {
            anInt1175 = 0;
            int i = super.anInt31 - (anInt1291 / 2 - c / 2);
            int k = super.anInt32 - ((anInt1292 / 2 - c1 / 2) + 20);
            if(i >= 0 && k >= 12 && i < 408 && k < 280)
            {
                int i1 = anInt975 * 48;
                for(int k1 = 0; k1 < 6; k1++)
                {
                    for(int j2 = 0; j2 < 8; j2++)
                    {
                        int l3 = 7 + j2 * 49;
                        int j4 = 28 + k1 * 34;
                        if(i > l3 && i < l3 + 49 && k > j4 && k < j4 + 34 && i1 < anInt1123 && anIntArray1177[i1] != -1)
                        {
                            anInt1108 = anIntArray1177[i1];
                            anInt1107 = i1;
                        }
                        i1++;
                    }

                }

                i = anInt1291 / 2 - c / 2;
                k = (anInt1292 / 2 - c1 / 2) + 20;
                int l1;
                if(anInt1107 < 0)
                    l1 = -1;
                else
                    l1 = anIntArray1177[anInt1107];
                if(l1 != -1)
                {
                    int k2 = anIntArray1178[anInt1107];
                    if(k2 >= 1 && super.anInt31 >= i + 220 && super.anInt32 >= k + 238 && super.anInt31 < i + 250 && super.anInt32 <= k + 249)
                    {
                        super.aClass33_Sub1_767.method558(24);
                        super.aClass33_Sub1_767.method546(l1);
                        super.aClass33_Sub1_767.method544(1);
                        super.aClass33_Sub1_767.method541();
                    }
                    if(k2 >= 10 && super.anInt31 >= i + 250 && super.anInt32 >= k + 238 && super.anInt31 < i + 280 && super.anInt32 <= k + 249)
                    {
                        super.aClass33_Sub1_767.method558(24);
                        super.aClass33_Sub1_767.method546(l1);
                        super.aClass33_Sub1_767.method544(10);
                        super.aClass33_Sub1_767.method541();
                    }
                    if(k2 >= 100 && super.anInt31 >= i + 280 && super.anInt32 >= k + 238 && super.anInt31 < i + 305 && super.anInt32 <= k + 249)
                    {
                        super.aClass33_Sub1_767.method558(24);
                        super.aClass33_Sub1_767.method546(l1);
                        super.aClass33_Sub1_767.method544(100);
                        super.aClass33_Sub1_767.method541();
                    }
                    if(k2 >= 1000 && super.anInt31 >= i + 305 && super.anInt32 >= k + 238 && super.anInt31 < i + 335 && super.anInt32 <= k + 249)
                    {
                        super.aClass33_Sub1_767.method558(24);
                        super.aClass33_Sub1_767.method546(l1);
                        super.aClass33_Sub1_767.method544(1000);
                        super.aClass33_Sub1_767.method541();
                    }
                    if(k2 >= 10000 && super.anInt31 >= i + 335 && super.anInt32 >= k + 238 && super.anInt31 < i + 368 && super.anInt32 <= k + 249)
                    {
                        super.aClass33_Sub1_767.method558(24);
                        super.aClass33_Sub1_767.method546(l1);
                        super.aClass33_Sub1_767.method544(10000);
                        super.aClass33_Sub1_767.method541();
                    }
                    if(super.anInt31 >= i + 370 && super.anInt32 >= k + 238 && super.anInt31 < i + 400 && super.anInt32 <= k + 249)
                    {
                        super.aClass33_Sub1_767.method558(24);
                        super.aClass33_Sub1_767.method546(l1);
                        super.aClass33_Sub1_767.method544(k2);
                        super.aClass33_Sub1_767.method541();
                    }
                    if(method58(l1) >= 1 && super.anInt31 >= i + 220 && super.anInt32 >= k + 263 && super.anInt31 < i + 250 && super.anInt32 <= k + 274)
                    {
                        super.aClass33_Sub1_767.method558(25);
                        super.aClass33_Sub1_767.method546(l1);
                        super.aClass33_Sub1_767.method544(1);
                        super.aClass33_Sub1_767.method541();
                    }
                    if(method58(l1) >= 10 && super.anInt31 >= i + 250 && super.anInt32 >= k + 263 && super.anInt31 < i + 280 && super.anInt32 <= k + 274)
                    {
                        super.aClass33_Sub1_767.method558(25);
                        super.aClass33_Sub1_767.method546(l1);
                        super.aClass33_Sub1_767.method544(10);
                        super.aClass33_Sub1_767.method541();
                    }
                    if(method58(l1) >= 100 && super.anInt31 >= i + 280 && super.anInt32 >= k + 263 && super.anInt31 < i + 305 && super.anInt32 <= k + 274)
                    {
                        super.aClass33_Sub1_767.method558(25);
                        super.aClass33_Sub1_767.method546(l1);
                        super.aClass33_Sub1_767.method544(100);
                        super.aClass33_Sub1_767.method541();
                    }
                    if(method58(l1) >= 1000 && super.anInt31 >= i + 305 && super.anInt32 >= k + 263 && super.anInt31 < i + 335 && super.anInt32 <= k + 274)
                    {
                        super.aClass33_Sub1_767.method558(25);
                        super.aClass33_Sub1_767.method546(l1);
                        super.aClass33_Sub1_767.method544(1000);
                        super.aClass33_Sub1_767.method541();
                    }
                    if(method58(l1) >= 10000 && super.anInt31 >= i + 335 && super.anInt32 >= k + 263 && super.anInt31 < i + 368 && super.anInt32 <= k + 274)
                    {
                        super.aClass33_Sub1_767.method558(25);
                        super.aClass33_Sub1_767.method546(l1);
                        super.aClass33_Sub1_767.method544(10000);
                        super.aClass33_Sub1_767.method541();
                    }
                    if(super.anInt31 >= i + 370 && super.anInt32 >= k + 263 && super.anInt31 < i + 400 && super.anInt32 <= k + 274)
                    {
                        super.aClass33_Sub1_767.method558(25);
                        super.aClass33_Sub1_767.method546(l1);
                        super.aClass33_Sub1_767.method544(method58(l1));
                        super.aClass33_Sub1_767.method541();
                    }
                }
            } else
            if(anInt1123 > 48 && i >= 50 && i <= 115 && k <= 12 && super.anInt32 > anInt1292 / 2 - 146)
                anInt975 = 0;
            else
            if(anInt1123 > 48 && i >= 115 && i <= 180 && k <= 12 && super.anInt32 > anInt1292 / 2 - 146)
                anInt975 = 1;
            else
            if(anInt1123 > 96 && i >= 180 && i <= 245 && k <= 12 && super.anInt32 > anInt1292 / 2 - 146)
                anInt975 = 2;
            else
            if(anInt1123 > 144 && i >= 245 && i <= 310 && k <= 12 && super.anInt32 > anInt1292 / 2 - 146)
            {
                anInt975 = 3;
            } else
            {
                super.aClass33_Sub1_767.method558(26);
                super.aClass33_Sub1_767.method541();
                aBoolean985 = false;
                return;
            }
        }
        int j = anInt1291 / 2 - c / 2;
        int l = (anInt1292 / 2 - c1 / 2) + 20;
        aClass26_Sub1_1195.method428(j, l, 408, 12, 192);
        int j1 = 0x989898;
        method76(j, l + 12, 408, 17, j1, 160);
        method76(j, l + 29, 8, 204, j1, 160);
        method76(j + 399, l + 29, 9, 204, j1, 160);
        method76(j, l + 233, 408, 47, j1, 160);
        method80("Bank", j + 1, l + 10, 1, 0xffffff);
        int i2 = 50;
        if(anInt1123 > 48)
        {
            int l2 = 0xffffff;
            if(anInt975 == 0)
                l2 = 0xff0000;
            else
            if(super.anInt31 > j + i2 && super.anInt32 >= l && super.anInt31 < j + i2 + 65 && super.anInt32 < l + 12)
                l2 = 0xffff00;
            method80("<Page 1>", j + i2, l + 10, 1, l2);
            i2 += 65;
            l2 = 0xffffff;
            if(anInt975 == 1)
                l2 = 0xff0000;
            else
            if(super.anInt31 > j + i2 && super.anInt32 >= l && super.anInt31 < j + i2 + 65 && super.anInt32 < l + 12)
                l2 = 0xffff00;
            method80("<Page 2>", j + i2, l + 10, 1, l2);
            i2 += 65;
        }
        if(anInt1123 > 96)
        {
            int i3 = 0xffffff;
            if(anInt975 == 2)
                i3 = 0xff0000;
            else
            if(super.anInt31 > j + i2 && super.anInt32 >= l && super.anInt31 < j + i2 + 65 && super.anInt32 < l + 12)
                i3 = 0xffff00;
            method80("<Page 3>", j + i2, l + 10, 1, i3);
            i2 += 65;
        }
        if(anInt1123 > 144)
        {
            int j3 = 0xffffff;
            if(anInt975 == 3)
                j3 = 0xff0000;
            else
            if(super.anInt31 > j + i2 && super.anInt32 >= l && super.anInt31 < j + i2 + 65 && super.anInt32 < l + 12)
                j3 = 0xffff00;
            method80("<Page 4>", j + i2, l + 10, 1, j3);
            i2 += 65;
        }
        int k3 = 0xffffff;
        if(super.anInt31 > j + 320 && super.anInt32 >= l && super.anInt31 < j + 408 && super.anInt32 < l + 12)
            k3 = 0xff0000;
        aClass26_Sub1_1195.method457("Close Window", j + 406, l + 10, 1, k3);
        method80("Number In Bank", j + 7, l + 24, 1, 65280);
        method80("Number In Inventory", j + 289, l + 24, 1, 65535);
        int i4 = 0xd0d0d0;
        int k4 = anInt975 * 48;
        for(int l4 = 0; l4 < 6; l4++)
        {
            for(int j5 = 0; j5 < 8; j5++)
            {
                int l5 = j + 7 + j5 * 49;
                int k6 = l + 28 + l4 * 34;
                if(anInt1107 == k4)
                    method76(l5, k6, 49, 34, 0xff0000, 160);
                else
                    method76(l5, k6, 49, 34, i4, 160);
                aClass26_Sub1_1195.method429(l5, k6, 50, 35, 0);
                if(k4 < anInt1123 && anIntArray1177[k4] != -1)
                {
                    aClass26_Sub1_1195.method452(l5, k6, 48, 32, 2150 + Class3.method236(anIntArray1177[k4]).method302(), Class3.method236(anIntArray1177[k4]).method306(), 0, 0, false);
                    method80(method69(String.valueOf(anIntArray1178[k4])), l5 + 1, k6 + 10, 1, 65280);
                    aClass26_Sub1_1195.method457(method69(String.valueOf(method58(anIntArray1177[k4]))), l5 + 47, k6 + 29, 1, 65535);
                }
                k4++;
            }

        }

        method77(j + 5, l + 256, 398, 0);
        if(anInt1107 == -1)
        {
            method79("Select an object to withdraw or deposit", j + 204, l + 248, 3, 0xffff00);
            return;
        }
        int i5;
        if(anInt1107 < 0)
            i5 = -1;
        else
            i5 = anIntArray1177[anInt1107];
        if(i5 != -1)
        {
            int k5 = anIntArray1178[anInt1107];
            if(k5 > 0)
            {
                method80((new StringBuilder()).append("Withdraw ").append(Class3.method236(i5).method292()).toString(), j + 2, l + 248, 1, 0xffffff);
                int i6 = 0xffffff;
                if(super.anInt31 >= j + 220 && super.anInt32 >= l + 238 && super.anInt31 < j + 250 && super.anInt32 <= l + 249)
                    i6 = 0xff0000;
                method80("One", j + 222, l + 248, 1, i6);
                if(k5 >= 10)
                {
                    int l6 = 0xffffff;
                    if(super.anInt31 >= j + 250 && super.anInt32 >= l + 238 && super.anInt31 < j + 280 && super.anInt32 <= l + 249)
                        l6 = 0xff0000;
                    method80("10", j + 252, l + 248, 1, l6);
                }
                if(k5 >= 100)
                {
                    int i7 = 0xffffff;
                    if(super.anInt31 >= j + 280 && super.anInt32 >= l + 238 && super.anInt31 < j + 305 && super.anInt32 <= l + 249)
                        i7 = 0xff0000;
                    method80("100", j + 282, l + 248, 1, i7);
                }
                if(k5 >= 1000)
                {
                    int j7 = 0xffffff;
                    if(super.anInt31 >= j + 305 && super.anInt32 >= l + 238 && super.anInt31 < j + 335 && super.anInt32 <= l + 249)
                        j7 = 0xff0000;
                    method80("1k", j + 307, l + 248, 1, j7);
                }
                if(k5 >= 10000)
                {
                    int k7 = 0xffffff;
                    if(super.anInt31 >= j + 335 && super.anInt32 >= l + 238 && super.anInt31 < j + 368 && super.anInt32 <= l + 249)
                        k7 = 0xff0000;
                    method80("10k", j + 337, l + 248, 1, k7);
                }
                int l7 = 0xffffff;
                if(super.anInt31 >= j + 370 && super.anInt32 >= l + 238 && super.anInt31 < j + 400 && super.anInt32 <= l + 249)
                    l7 = 0xff0000;
                method80("All", j + 370, l + 248, 1, l7);
            }
            if(method58(i5) > 0)
            {
                method80((new StringBuilder()).append("Deposit ").append(Class3.method236(i5).method292()).toString(), j + 2, l + 273, 1, 0xffffff);
                int j6 = 0xffffff;
                if(super.anInt31 >= j + 220 && super.anInt32 >= l + 263 && super.anInt31 < j + 250 && super.anInt32 <= l + 274)
                    j6 = 0xff0000;
                method80("One", j + 222, l + 273, 1, j6);
                if(method58(i5) >= 10)
                {
                    int i8 = 0xffffff;
                    if(super.anInt31 >= j + 250 && super.anInt32 >= l + 263 && super.anInt31 < j + 280 && super.anInt32 <= l + 274)
                        i8 = 0xff0000;
                    method80("10", j + 252, l + 273, 1, i8);
                }
                if(method58(i5) >= 100)
                {
                    int j8 = 0xffffff;
                    if(super.anInt31 >= j + 280 && super.anInt32 >= l + 263 && super.anInt31 < j + 305 && super.anInt32 <= l + 274)
                        j8 = 0xff0000;
                    method80("100", j + 282, l + 273, 1, j8);
                }
                if(method58(i5) >= 1000)
                {
                    int k8 = 0xffffff;
                    if(super.anInt31 >= j + 305 && super.anInt32 >= l + 263 && super.anInt31 < j + 335 && super.anInt32 <= l + 274)
                        k8 = 0xff0000;
                    method80("1k", j + 307, l + 273, 1, k8);
                }
                if(method58(i5) >= 10000)
                {
                    int l8 = 0xffffff;
                    if(super.anInt31 >= j + 335 && super.anInt32 >= l + 263 && super.anInt31 < j + 368 && super.anInt32 <= l + 274)
                        l8 = 0xff0000;
                    method80("10k", j + 337, l + 273, 1, l8);
                }
                int i9 = 0xffffff;
                if(super.anInt31 >= j + 370 && super.anInt32 >= l + 263 && super.anInt31 < j + 400 && super.anInt32 <= l + 274)
                    i9 = 0xff0000;
                method80("All", j + 370, l + 273, 1, i9);
            }
        }
    }

    public void method68()
    {
        aClass26_Sub1_1195.method428(anInt1291 / 2 - 130, anInt1292 / 2 - 30, 260, 60, 0);
        aClass26_Sub1_1195.method429(anInt1291 / 2 - 130, anInt1292 / 2 - 30, 260, 60, 0xffffff);
        method79("Logging out...", anInt1291 / 2, anInt1292 / 2, 5, 0xffffff);
    }

    public String method69(String s)
    {
        if(s.length() < 4)
            return s;
        else
            return (new StringBuilder()).append(method69(s.substring(0, s.length() - 3))).append(",").append(s.substring(s.length() - 3, s.length())).toString();
    }

    public void method70(boolean flag)
    {
        int i = ((Class26) (aClass26_Sub1_1195)).anInt169 - 248;
        aClass26_Sub1_1195.method438(i, 3, 2001);
        for(int j = 0; j < anInt1160; j++)
        {
            int j1 = i + (j % 5) * 49;
            int l1 = 36 + (j / 5) * 34;
            if(j < anInt979 && anIntArray982[j] == 1)
                method76(j1, l1, 49, 34, 0xff0000, 128);
            else
                method76(j1, l1, 49, 34, Class26.method434(181, 181, 181), 128);
            if(j >= anInt979)
                continue;
            aClass26_Sub1_1195.method452(j1, l1, 48, 32, 2150 + Class3.method236(anIntArray980[j]).method302(), Class3.method236(anIntArray980[j]).method306(), 0, 0, false);
            if(Class3.method236(anIntArray980[j]).method304())
                method80(method69(String.valueOf(anIntArray981[j])), j1 + 1, l1 + 10, 1, 0xffff00);
        }

        for(int k = 1; k <= 4; k++)
            method78(i + k * 49, 36, (anInt1160 / 5) * 34, 0);

        for(int l = 1; l <= anInt1160 / 5 - 1; l++)
            method77(i, 36 + l * 34, 245, 0);

        if(!flag)
            return;
        i = super.anInt31 - (((Class26) (aClass26_Sub1_1195)).anInt169 - 248);
        int i1 = super.anInt32 - 36;
        if(i >= 0 && i1 >= 0 && i < 248 && i1 < (anInt1160 / 5) * 34)
        {
            int k1 = i / 49 + (i1 / 34) * 5;
            if(k1 < anInt979)
            {
                int i2 = anIntArray980[k1];
                Class9_Sub2 class9_sub2 = Class3.method236(i2);
                if(anInt1180 >= 0)
                {
                    if(Class3.method241(anInt1180).method333() == 3)
                    {
                        aStringArray966[anInt1049] = (new StringBuilder()).append("Cast ").append(Class3.method241(anInt1180).method292()).append(" on").toString();
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@lre@").append(class9_sub2.method292()).toString();
                        anIntArray1054[anInt1049] = 600;
                        anIntArray1117[anInt1049] = k1;
                        anIntArray1118[anInt1049] = anInt1180;
                        anInt1049++;
                        return;
                    }
                } else
                {
                    if(anInt1043 >= 0)
                    {
                        aStringArray966[anInt1049] = (new StringBuilder()).append("Use ").append(aString1044).append(" with").toString();
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@lre@").append(class9_sub2.method292()).toString();
                        anIntArray1054[anInt1049] = 610;
                        anIntArray1117[anInt1049] = k1;
                        anIntArray1118[anInt1049] = anInt1043;
                        anInt1049++;
                        return;
                    }
                    if(anIntArray982[k1] == 1)
                    {
                        aStringArray966[anInt1049] = "Remove";
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@lre@").append(class9_sub2.method292()).toString();
                        anIntArray1054[anInt1049] = 620;
                        anIntArray1117[anInt1049] = k1;
                        anInt1049++;
                    } else
                    if(Class3.method236(i2).method305())
                    {
                        aStringArray966[anInt1049] = "Wear";
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@lre@").append(class9_sub2.method292()).toString();
                        anIntArray1054[anInt1049] = 630;
                        anIntArray1117[anInt1049] = k1;
                        anInt1049++;
                    }
                    if(!class9_sub2.method301().equals(""))
                    {
                        aStringArray966[anInt1049] = class9_sub2.method301();
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@lre@").append(class9_sub2.method292()).toString();
                        anIntArray1054[anInt1049] = 640;
                        anIntArray1117[anInt1049] = k1;
                        anInt1049++;
                    }
                    aStringArray966[anInt1049] = "Use";
                    aStringArray1109[anInt1049] = (new StringBuilder()).append("@lre@").append(class9_sub2.method292()).toString();
                    anIntArray1054[anInt1049] = 650;
                    anIntArray1117[anInt1049] = k1;
                    anInt1049++;
                    aStringArray966[anInt1049] = "Drop";
                    aStringArray1109[anInt1049] = (new StringBuilder()).append("@lre@").append(class9_sub2.method292()).toString();
                    anIntArray1054[anInt1049] = 660;
                    anIntArray1117[anInt1049] = k1;
                    anInt1049++;
                    aStringArray966[anInt1049] = "Examine";
                    aStringArray1109[anInt1049] = (new StringBuilder()).append("@lre@").append(class9_sub2.method292()).append(aClass31_1156.anInt292 != 5 && aClass31_1156.anInt292 > 3 ? "" : (new StringBuilder()).append(" @or1@(").append(i2).append(")").toString()).toString();
                    anIntArray1054[anInt1049] = 3600;
                    anIntArray1117[anInt1049] = i2;
                    anInt1049++;
                }
            }
        }
    }

    public void method71()
    {
        aClass26_Sub1_1195.method438(0, anInt1247 - 4, 3331);
        aClass26_Sub1_1195.method438(anInt1257, anInt1247 - 4, 3332);
        aClass26_Sub1_1195.method438(anInt1257 * 2 + 85, anInt1247 - 4, 3332);
        aClass26_Sub1_1195.method438(anInt1257 * 3 + 170, anInt1247 - 4, 3332);
        aClass26_Sub1_1195.method438(anInt1257 * 4 + 255, anInt1247 - 4, 3332);
        aClass26_Sub1_1195.method438(anInt1257 * 5 + 340, anInt1247 - 4, 3333);
        int i = Class26.method434(200, 200, 255);
        if(anInt1092 == 0)
            i = Class26.method434(255, 200, 50);
        if(anInt1223 % 30 > 15)
            i = Class26.method434(255, 50, 50);
        method79("All Messages", anInt1257 + 55, anInt1247 + 6, 0, i);
        i = Class26.method434(200, 200, 255);
        if(anInt1092 == 1)
            i = Class26.method434(255, 200, 50);
        if(anInt1224 % 30 > 15)
            i = Class26.method434(255, 50, 50);
        method79("Chat History", anInt1257 * 2 + 140, anInt1247 + 6, 0, i);
        i = Class26.method434(200, 200, 255);
        if(anInt1092 == 2)
            i = Class26.method434(255, 200, 50);
        if(anInt1225 % 30 > 15)
            i = Class26.method434(255, 50, 50);
        method79("Global History", anInt1257 * 3 + 225, anInt1247 + 6, 0, i);
        i = Class26.method434(200, 200, 255);
        if(anInt1092 == 3)
            i = Class26.method434(255, 200, 50);
        if(anInt1226 % 30 > 15)
            i = Class26.method434(255, 50, 50);
        method79("Private History", anInt1257 * 4 + 311, anInt1247 + 6, 0, i);
        method79("Report Abuse", anInt1257 * 5 + 389, anInt1247 + 6, 0, 0xffffff);
    }

    public void method72()
    {
        aClass26_Sub1_1195.aBoolean181 = false;
        aClass26_Sub1_1195.method424();
        aClass30_1216.method475();
        int i = (anInt1291 - 215) / 2;
        int j = anInt1292 / 2 - 126;
        i += 116;
        j -= 25;
        aClass26_Sub1_1195.method442(i - 32 - 55, j, 64, 102, Class3.method239(anInt1096).method343(), anIntArray993[anInt1099]);
        aClass26_Sub1_1195.method452(i - 32 - 55, j, 64, 102, Class3.method239(anInt1095).method343(), anIntArray993[anInt1098], anIntArray1239[anInt1100], 0, false);
        aClass26_Sub1_1195.method452(i - 32 - 55, j, 64, 102, Class3.method239(anInt1094).method343(), anIntArray1080[anInt1097], anIntArray1239[anInt1100], 0, false);
        aClass26_Sub1_1195.method442(i - 32, j, 64, 102, Class3.method239(anInt1096).method343() + 6, anIntArray993[anInt1099]);
        aClass26_Sub1_1195.method452(i - 32, j, 64, 102, Class3.method239(anInt1095).method343() + 6, anIntArray993[anInt1098], anIntArray1239[anInt1100], 0, false);
        aClass26_Sub1_1195.method452(i - 32, j, 64, 102, Class3.method239(anInt1094).method343() + 6, anIntArray1080[anInt1097], anIntArray1239[anInt1100], 0, false);
        aClass26_Sub1_1195.method442((i - 32) + 55, j, 64, 102, Class3.method239(anInt1096).method343() + 12, anIntArray993[anInt1099]);
        aClass26_Sub1_1195.method452((i - 32) + 55, j, 64, 102, Class3.method239(anInt1095).method343() + 12, anIntArray993[anInt1098], anIntArray1239[anInt1100], 0, false);
        aClass26_Sub1_1195.method452((i - 32) + 55, j, 64, 102, Class3.method239(anInt1094).method343() + 12, anIntArray1080[anInt1097], anIntArray1239[anInt1100], 0, false);
        aClass26_Sub1_1195.method438(0, anInt1247, 2022);
        aClass26_Sub1_1195.method423(aGraphics1206, 0, 0);
    }

    public Class31 method73(int i, int j, int k, int l)
    {
        if(aClass31Array999[i] == null)
        {
            aClass31Array999[i] = new Class31();
            aClass31Array999[i].anInt295 = i;
            aClass31Array999[i].anInt296 = 0;
        }
        Class31 class31 = aClass31Array999[i];
        boolean flag = false;
        int i1 = 0;
        do
        {
            if(i1 >= anInt977)
                break;
            if(aClass31Array1058[i1].anInt295 == i)
            {
                flag = true;
                break;
            }
            i1++;
        } while(true);
        if(flag)
        {
            class31.anInt302 = l;
            int j1 = class31.anInt304;
            if(j != class31.anIntArray305[j1] || k != class31.anIntArray306[j1])
            {
                class31.anInt304 = j1 = (j1 + 1) % 10;
                class31.anIntArray305[j1] = j;
                class31.anIntArray306[j1] = k;
            }
        } else
        {
            class31.anInt295 = i;
            class31.anInt303 = 0;
            class31.anInt304 = 0;
            class31.anIntArray305[0] = class31.anInt298 = j;
            class31.anIntArray306[0] = class31.anInt299 = k;
            class31.anInt302 = class31.anInt301 = l;
            class31.anInt300 = 0;
        }
        aClass31Array1171[anInt976++] = class31;
        return class31;
    }

    public void method74()
    {
        int i = 75;
        if(!aString1032.equals("0.0.0.0"))
            i += 30;
        if(anInt955 > 0)
            i += 15;
        int j = anInt1292 / 2 - i / 2;
        aClass26_Sub1_1195.method428(anInt1291 / 2 - 200, anInt1292 / 2 - i / 2, 400, i, 0);
        aClass26_Sub1_1195.method429(anInt1291 / 2 - 200, anInt1292 / 2 - i / 2, 400, i, 0xffffff);
        j += 20;
        char ac[] = aString964.toCharArray();
        ac[0] = Character.toUpperCase(ac[0]);
        for(int k = 0; k < aString964.length() - 1; k++)
            if(ac[k] == ' ')
                ac[k + 1] = Character.toUpperCase(ac[k + 1]);

        aString964 = new String(ac);
        method79((new StringBuilder()).append("Welcome to RSCEmulation ").append(aString964).append("!").toString(), anInt1291 / 2, j, 4, 0xffff00);
        j += 30;
        String s;
        if(anInt954 == 0)
            s = "earlier today.";
        else
        if(anInt954 == 1)
            s = "yesterday.";
        else
            s = (new StringBuilder()).append(anInt954).append(" days ago.").toString();
        if(!aString1032.equals("0.0.0.0"))
        {
            method79((new StringBuilder()).append("You last logged in ").append(s).toString(), anInt1291 / 2, j, 1, 0xffffff);
            j += 15;
            method79((new StringBuilder()).append("Last IP: ").append(aString1032).toString(), anInt1291 / 2, j, 1, 0xffffff);
            j += 15;
        }
        if(anInt955 > 0)
        {
            if(anInt955 == 1)
                method79((new StringBuilder()).append("You have ").append(anInt955).append(" subscription day left!").toString(), anInt1291 / 2, j, 1, 0xffffff);
            else
                method79((new StringBuilder()).append("You have ").append(anInt955).append(" subscription days left.").toString(), anInt1291 / 2, j, 1, 0xffffff);
            j += 15;
        } else
        {
            method79("You have no active subscription... You're missing out!", anInt1291 / 2, j, 1, 0xffffff);
            j += 15;
        }
        int l = 0xffffff;
        if(super.anInt32 > j - 12 && super.anInt32 <= j && super.anInt31 > anInt1291 / 2 - 100 && super.anInt31 < anInt1291 + 100)
            l = 0xff0000;
        method79("Close Window", anInt1291 / 2, j, 1, l);
        if(anInt1175 == 1)
        {
            if(l == 0xff0000)
                aBoolean1093 = false;
            if(super.anInt31 < anInt1291 / 2 - 200 || super.anInt31 > anInt1291 / 2 + 200 || super.anInt32 < anInt1292 / 2 - i / 2 || super.anInt32 > anInt1292 / 2 + i / 2)
                aBoolean1093 = false;
        }
        anInt1175 = 0;
    }

    public void method75()
    {
        if(anInt1015 == 0)
            return;
        if(anInt949 > 450)
        {
            method121("@cya@You can't logout during combat!", 3, 0);
            return;
        }
        if(anInt949 > 0)
        {
            method121("@cya@You can't logout for 10 seconds after combat", 3, 0);
            return;
        } else
        {
            super.aClass33_Sub1_767.method558(76);
            super.aClass33_Sub1_767.method541();
            anInt1086 = 1000;
            return;
        }
    }

    public void method76(int i, int j, int k, int l, int i1, int j1)
    {
        aClass26_Sub1_1195.method426(i, j, k, l, i1, j1);
    }

    public void method77(int i, int j, int k, int l)
    {
        aClass26_Sub1_1195.method430(i, j, k, l);
    }

    public void method78(int i, int j, int k, int l)
    {
        aClass26_Sub1_1195.method431(i, j, k, l);
    }

    public void method79(String s, int i, int j, int k, int l)
    {
        aClass26_Sub1_1195.method458(s, i, j, k, l);
    }

    public void method80(String s, int i, int j, int k, int l)
    {
        aClass26_Sub1_1195.method460(s, i, j, k, l);
    }

    public void method81(boolean flag)
    {
        int i = ((Class26) (aClass26_Sub1_1195)).anInt169 - 199;
        int j = 36;
        aClass26_Sub1_1195.method438(i - 49, 3, 2003);
        char c = '\304';
        char c1 = '\u0113';
        int k;
        int l;
        int i1 = k = l = Class26.method434(160, 160, 160);
        if(anInt1110 == 0)
            i1 = Class26.method434(220, 220, 220);
        else
        if(anInt1110 == 1)
            k = Class26.method434(220, 220, 220);
        else
        if(anInt1110 == 2)
            l = Class26.method434(220, 220, 220);
        method76(314, j, c / 3, 24, i1, 128);
        method76(379, j, c / 3 - 2, 24, k, 128);
        method76(441, j, c / 3 + 3, 24, l, 128);
        method76(314, j + 24, c, c1 - 12, Class26.method434(220, 220, 220), 128);
        method77(314, j + 24, c, 0);
        method78(379, j, 24, 0);
        method78(441, j, 24, 0);
        method79("Stats", i + c / 6 + 2, j + 16, 4, 0);
        method79("Info", i + c / 7 + c / 3 + 4, j + 16, 4, 0);
        method79("Quests", i + c / 7 + (c / 3) * 2 + 4, j + 16, 4, 0);
        if(anInt1110 == 0)
            method82(i, 72);
        if(anInt1110 == 1)
            method84(i + 5, 72);
        if(anInt1110 == 2)
            method83();
        if(!flag)
            return;
        i = super.anInt31 - (((Class26) (aClass26_Sub1_1195)).anInt169 - 199);
        j = super.anInt32 - 36;
        if(i >= 0 && j >= 0 && i < c && j < c1 && j <= 24 && anInt1175 == 1)
        {
            if(i < 64)
            {
                anInt1110 = 0;
                return;
            }
            if(i > 64 && i < 128)
            {
                anInt1110 = 1;
                return;
            }
            if(i > 128)
            {
                anInt1110 = 2;
                return;
            }
        }
        anInt1175 = 0;
    }

    public void method82(int i, int j)
    {
        char c = '\304';
        int k = j;
        int l = -1;
        method80("Skills", i + 5, j, 3, 0xffff00);
        j += 13;
        int i1 = 0xffffff;
        for(int j1 = 0; j1 < 9; j1++)
        {
            i1 = 0xffffff;
            if(super.anInt31 > i + 3 && super.anInt32 >= j - 11 && super.anInt32 < j + 2 && super.anInt31 < i + 90)
            {
                i1 = 0xff0000;
                l = j1;
            }
            method80((new StringBuilder()).append(aStringArray1192[j1]).append(":@yel@").append(anIntArray1034[j1]).append("/").append(anIntArray1112[j1]).toString(), i + 5, j, 1, i1);
            j += 13;
        }

        String s = "@yel@";
        if(aLong1276 <= 100L)
            s = "@red@";
        if(aLong1276 < 98L)
            s = "@or3@";
        if(aLong1276 < 96L)
            s = "@or2@";
        if(aLong1276 < 94L)
            s = "@ora@";
        if(aLong1276 < 92L)
            s = "@yel@";
        if(aLong1276 < 90L)
            s = "@gr3@";
        if(aLong1276 < 88L)
            s = "@gr2@";
        if(aLong1276 < 86L)
            s = "@gre@";
        method80((new StringBuilder()).append("Fatigue: ").append(s).append(aLong1276).append("%").toString(), i + 5, j, 1, 0xffffff);
        j = k;
        for(int k1 = 0; k1 < 9; k1++)
        {
            i1 = 0xffffff;
            if(super.anInt31 >= i + 90 && super.anInt32 >= j - 11 && super.anInt32 < j + 2 && super.anInt31 < i + 196)
            {
                i1 = 0xff0000;
                l = k1 + 9;
            }
            method80((new StringBuilder()).append(aStringArray1192[k1 + 9]).append(":@yel@").append(anIntArray1034[k1 + 9]).append("/").append(anIntArray1112[k1 + 9]).toString(), (i + c / 2) - 5, j, 1, i1);
            j += 13;
        }

        i1 = 0xffffff;
        method80((new StringBuilder()).append("Quest Points:@yel@").append(anInt945).toString(), (i + c / 2) - 5, j, 1, i1);
        j += 34;
        method80("Equipment Status", i + 5, j, 3, 0xffff00);
        j += 12;
        for(int l1 = 0; l1 < 3; l1++)
        {
            method80((new StringBuilder()).append(aStringArray1173[l1]).append(":@yel@").append(anIntArray992[l1]).toString(), i + 5, j, 1, 0xffffff);
            method80((new StringBuilder()).append(aStringArray1173[l1 + 3]).append(":@yel@").append(anIntArray992[l1 + 3]).toString(), i + c / 2 + 25, j, 1, 0xffffff);
            j += 13;
        }

        j += 6;
        method77(i, j - 15, c, 0);
        if(l != -1)
        {
            method80((new StringBuilder()).append(aStringArray1196[l]).append(" skill").toString(), i + 5, j, 1, 0xffff00);
            j += 12;
            int i2 = anIntArray1198[0];
            for(int k2 = 0; k2 < 98; k2++)
                if(anIntArray1189[l] >= anIntArray1198[k2])
                    i2 = anIntArray1198[k2 + 1];

            method80((new StringBuilder()).append("Total XP: ").append(method69((new StringBuilder()).append("").append(anIntArray1189[l]).toString())).toString(), i + 5, j, 1, 0xffffff);
            j += 12;
            method80((new StringBuilder()).append("Next Level At: ").append(method69((new StringBuilder()).append("").append(i2).toString())).toString(), i + 5, j, 1, 0xffffff);
            j += 12;
            method80((new StringBuilder()).append("Required XP: ").append(method69((new StringBuilder()).append("").append(i2 - anIntArray1189[l]).toString())).toString(), i + 5, j, 1, 0xffffff);
        } else
        {
            method80("Overall Levels", i + 5, j, 1, 0xffff00);
            j += 12;
            int j2 = 0;
            long l2 = 0L;
            for(int i3 = 0; i3 < 18; i3++)
            {
                j2 += anIntArray1112[i3];
                l2 += anIntArray1189[i3];
            }

            method80((new StringBuilder()).append("Skill total: ").append(method69((new StringBuilder()).append("").append(j2).toString())).toString(), i + 5, j, 1, 0xffffff);
            j += 12;
            method80((new StringBuilder()).append("Total xp: ").append(method69((new StringBuilder()).append("").append(l2).toString())).toString(), i + 5, j, 1, 0xffffff);
            j += 12;
            method80((new StringBuilder()).append("Combat level: ").append(aClass31_1156.anInt314).toString(), i + 5, j, 1, 0xffffff);
        }
    }

    public void method83()
    {
        aClass30_1020.method498(anInt1021);
        int i = 0;
        String as[] = aStringArray1260;
        int k = as.length;
        for(int l = 0; l < k; l++)
        {
            String s = as[l];
            aClass30_1020.method500(anInt1021, i, s);
            i++;
        }

        aClass30_1020.method475();
        int j = super.anInt31 - (((Class26) (aClass26_Sub1_1195)).anInt169 - 199);
        k = super.anInt32 - 61;
        if(j >= 0 && k >= 0 && j < 196 && k < 260)
            aClass30_1020.method472(super.anInt31, super.anInt32, super.anInt34, super.anInt33);
    }

    public void method84(int i, int j)
    {
        method80("Player Information:", i, j, 3, 0xffff00);
        j += 13;
        if(aClass31_1156.anInt292 == 1)
            method80((new StringBuilder()).append("Character:@yel@ #adm#").append(aClass31_1156.aString294).toString(), i, j, 1, 0xffffff);
        else
        if(aClass31_1156.anInt292 == 2)
            method80((new StringBuilder()).append("Character: #mod#@whi@").append(aClass31_1156.aString294).toString(), i, j, 1, 0xffffff);
        else
        if(aClass31_1156.anInt292 == 3)
            method80((new StringBuilder()).append("Character: #dev#@red@").append(aClass31_1156.aString294).toString(), i, j, 1, 0xffffff);
        else
        if(aClass31_1156.anInt292 == 5)
            method80((new StringBuilder()).append("Character: #cmd#@blu@").append(aClass31_1156.aString294).toString(), i, j, 1, 0xffffff);
        else
        if(aClass31_1156.anInt292 == 6)
            method80((new StringBuilder()).append("Character: #pmd#@gre@").append(aClass31_1156.aString294).toString(), i, j, 1, 0xffffff);
        else
            method80((new StringBuilder()).append("Character:@yel@ ").append(aClass31_1156.aString294).toString(), i, j, 1, 0xffffff);
        j += 13;
        method80((new StringBuilder()).append("Coordinates: @yel@X: ").append(anInt1157 + anInt1035).append(", ").append("Y: ").append(anInt1158 + anInt1036).toString(), i, j, 1, 0xffffff);
        j += 13;
        method80((new StringBuilder()).append("Town: @yel@").append(method48(anInt1157 + anInt1035, anInt1158 + anInt1036)).append("").toString(), i, j, 1, 0xffffff);
        j += 13;
        method80((new StringBuilder()).append("XP Gained:@yel@ ").append(method69((new StringBuilder()).append("").append(aLong1284).toString())).toString(), i, j, 1, 0xffffff);
        j += 13;
        String s = "";
        if(anInt1264 < 30)
            s = "@red@";
        if(anInt1264 >= 30)
            s = "@yel@";
        if(anInt1264 >= 40)
            s = "@gre@";
        method80((new StringBuilder()).append("FPS: ").append(s).append(anInt1264).toString(), i, j, 1, 0xffffff);
        j += 21;
        method80("Client Information:", i, j, 3, 0xffff00);
        j += 13;
        if(!aString1032.equals("0.0.0.0"))
        {
            method80((new StringBuilder()).append("External IP:@yel@ ").append(aString1032).toString(), i, j, 1, 0xffffff);
            j += 13;
        }
        method80((new StringBuilder()).append("Internal IP:@yel@ ").append(aString1279).toString(), i, j, 1, 0xffffff);
        j += 13;
        method80((new StringBuilder()).append("Uptime:@yel@ ").append(method52(aLong1271)).toString(), i, j, 1, 0xffffff);
        j += 21;
        method80("Server Information:", i, j, 3, 0xffff00);
        j += 13;
        method80("Hostname:@yel@ RSCEMULATION.NET", i, j, 1, 0xffffff);
        j += 13;
        method80((new StringBuilder()).append("Server Index:@yel@ ").append(aClass31_1156.anInt295).toString(), i, j, 1, 0xffffff);
        j += 13;
        method80((new StringBuilder()).append("Uptime:@yel@ ").append(method52(aLong1272)).toString(), i, j, 1, 0xffffff);
        j += 13;
        method80("Location:@yel@ Southern California, USA", i, j, 1, 0xffffff);
        j += 13;
    }

    public void method85()
    {
        int i = anInt1292 / 2 - 72;
        aClass26_Sub1_1195.method428(anInt1291 / 2 - 170, anInt1292 / 2 - 90, 340, 180, 0);
        aClass26_Sub1_1195.method429(anInt1291 / 2 - 170, anInt1292 / 2 - 90, 340, 180, 0xffffff);
        method79("Warning! Proceed with caution", anInt1291 / 2, i, 4, 0xff0000);
        i += 26;
        method79("If you go much further north you will enter the", anInt1291 / 2, i, 1, 0xffffff);
        i += 13;
        method79("wilderness. This a very dangerous area where", anInt1291 / 2, i, 1, 0xffffff);
        i += 13;
        method79("other players can attack you!", anInt1291 / 2, i, 1, 0xffffff);
        i += 22;
        method79("The further north you go the more dangerous it", anInt1291 / 2, i, 1, 0xffffff);
        i += 13;
        method79("becomes, but the more treasure you will find.", anInt1291 / 2, i, 1, 0xffffff);
        i += 22;
        method79("In the wilderness an indicator at the bottom-right", anInt1291 / 2, i, 1, 0xffffff);
        i += 13;
        method79("of the screen will show the current level of danger", anInt1291 / 2, i, 1, 0xffffff);
        i += 22;
        int j = 0xffffff;
        if(super.anInt32 > i - 12 && super.anInt32 <= i && super.anInt31 > anInt1291 / 2 - 75 && super.anInt31 < anInt1291 / 2 + 75)
            j = 0xff0000;
        method79("Close Window", anInt1291 / 2, i, 1, j);
        if(anInt1175 != 0)
        {
            if(super.anInt32 > i - 12 && super.anInt32 <= i && super.anInt31 > anInt1291 / 2 - 75 && super.anInt31 < anInt1291 / 2 + 75)
                anInt1209 = 2;
            if(super.anInt31 < anInt1291 / 2 - 170 || super.anInt31 > anInt1291 / 2 + 170 || super.anInt32 < anInt1292 / 2 - 90 || super.anInt32 > anInt1292 / 2 + 90)
                anInt1209 = 2;
            anInt1175 = 0;
        }
    }

    public void method86(int i, int j, int k, int l, int i1, int j1, int k1)
    {
        int l1 = Class3.method236(i1).method302() + 2150;
        int i2 = Class3.method236(i1).method306();
        aClass26_Sub1_1195.method452(i, j, k, l, l1, i2, 0, 0, false);
    }

    public void method44(String s)
    {
        if(s.startsWith("@bor@"))
            method121((new StringBuilder()).append("@whi@").append(s).toString(), 4, 0);
        else
        if(s.startsWith("@que@"))
            method121(s, 5, 0);
        else
        if(s.startsWith("@say@"))
            method121(s, 7, 0);
        else
        if(s.startsWith("@pri@"))
            method121(s, 6, 0);
        else
            method121(s, 3, 0);
    }

    public void method87()
    {
        if(anInt1011 == 0 && super.anInt31 >= ((Class26) (aClass26_Sub1_1195)).anInt169 - 35 && super.anInt32 >= 3 && super.anInt31 < ((Class26) (aClass26_Sub1_1195)).anInt169 - 3 && super.anInt32 < 35)
            anInt1011 = 1;
        if(anInt1011 == 0 && super.anInt31 >= ((Class26) (aClass26_Sub1_1195)).anInt169 - 35 - 33 && super.anInt32 >= 3 && super.anInt31 < ((Class26) (aClass26_Sub1_1195)).anInt169 - 3 - 33 && super.anInt32 < 35)
        {
            anInt1011 = 2;
            anInt1255 = (int)(Math.random() * 13D) - 6;
            anInt1256 = (int)(Math.random() * 23D) - 11;
        }
        if(anInt1011 == 0 && super.anInt31 >= ((Class26) (aClass26_Sub1_1195)).anInt169 - 35 - 66 && super.anInt32 >= 3 && super.anInt31 < ((Class26) (aClass26_Sub1_1195)).anInt169 - 3 - 66 && super.anInt32 < 35)
            anInt1011 = 3;
        if(anInt1011 == 0 && super.anInt31 >= ((Class26) (aClass26_Sub1_1195)).anInt169 - 35 - 99 && super.anInt32 >= 3 && super.anInt31 < ((Class26) (aClass26_Sub1_1195)).anInt169 - 3 - 99 && super.anInt32 < 35)
            anInt1011 = 4;
        if(anInt1011 == 0 && super.anInt31 >= ((Class26) (aClass26_Sub1_1195)).anInt169 - 35 - 132 && super.anInt32 >= 3 && super.anInt31 < ((Class26) (aClass26_Sub1_1195)).anInt169 - 3 - 132 && super.anInt32 < 35)
            anInt1011 = 5;
        if(anInt1011 == 0 && super.anInt31 >= ((Class26) (aClass26_Sub1_1195)).anInt169 - 35 - 165 && super.anInt32 >= 3 && super.anInt31 < ((Class26) (aClass26_Sub1_1195)).anInt169 - 3 - 165 && super.anInt32 < 35)
            anInt1011 = 6;
        if(anInt1011 != 0 && super.anInt31 >= ((Class26) (aClass26_Sub1_1195)).anInt169 - 35 && super.anInt32 >= 3 && super.anInt31 < ((Class26) (aClass26_Sub1_1195)).anInt169 - 3 && super.anInt32 < 26)
            anInt1011 = 1;
        if(anInt1011 != 0 && anInt1011 != 2 && super.anInt31 >= ((Class26) (aClass26_Sub1_1195)).anInt169 - 35 - 33 && super.anInt32 >= 3 && super.anInt31 < ((Class26) (aClass26_Sub1_1195)).anInt169 - 3 - 33 && super.anInt32 < 26)
        {
            anInt1011 = 2;
            anInt1255 = (int)(Math.random() * 13D) - 6;
            anInt1256 = (int)(Math.random() * 23D) - 11;
        }
        if(anInt1011 != 0 && super.anInt31 >= ((Class26) (aClass26_Sub1_1195)).anInt169 - 35 - 66 && super.anInt32 >= 3 && super.anInt31 < ((Class26) (aClass26_Sub1_1195)).anInt169 - 3 - 66 && super.anInt32 < 26)
            anInt1011 = 3;
        if(anInt1011 != 0 && super.anInt31 >= ((Class26) (aClass26_Sub1_1195)).anInt169 - 35 - 99 && super.anInt32 >= 3 && super.anInt31 < ((Class26) (aClass26_Sub1_1195)).anInt169 - 3 - 99 && super.anInt32 < 26)
            anInt1011 = 4;
        if(anInt1011 != 0 && super.anInt31 >= ((Class26) (aClass26_Sub1_1195)).anInt169 - 35 - 132 && super.anInt32 >= 3 && super.anInt31 < ((Class26) (aClass26_Sub1_1195)).anInt169 - 3 - 132 && super.anInt32 < 26)
            anInt1011 = 5;
        if(anInt1011 != 0 && super.anInt31 >= ((Class26) (aClass26_Sub1_1195)).anInt169 - 35 - 165 && super.anInt32 >= 3 && super.anInt31 < ((Class26) (aClass26_Sub1_1195)).anInt169 - 3 - 165 && super.anInt32 < 26)
            anInt1011 = 6;
        if(anInt1011 == 1 && (super.anInt31 < ((Class26) (aClass26_Sub1_1195)).anInt169 - 248 || super.anInt32 > 36 + (anInt1160 / 5) * 34))
            anInt1011 = 0;
        if(anInt1011 == 3 && (super.anInt31 < ((Class26) (aClass26_Sub1_1195)).anInt169 - 199 || super.anInt32 > 316))
            anInt1011 = 0;
        if((anInt1011 == 2 || anInt1011 == 4 || anInt1011 == 5) && (super.anInt31 < ((Class26) (aClass26_Sub1_1195)).anInt169 - 199 || super.anInt32 > 240))
            anInt1011 = 0;
        if(anInt1011 == 6 && (super.anInt31 < ((Class26) (aClass26_Sub1_1195)).anInt169 - 199 || super.anInt32 > 311))
            anInt1011 = 0;
    }

    public void method88(int i)
    {
        int j = anIntArray1154[i];
        int k = anIntArray1155[i];
        int l = anIntArray1117[i];
        int i1 = anIntArray1118[i];
        int j1 = anIntArray1119[i];
        int k1 = anIntArray1054[i];
        if(k1 == 200)
        {
            method131(anInt1157, anInt1158, j, k, true);
            super.aClass33_Sub1_767.method558(37);
            super.aClass33_Sub1_767.method546(i1);
            super.aClass33_Sub1_767.method546(j + anInt1035);
            super.aClass33_Sub1_767.method546(k + anInt1036);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method541();
            anInt1180 = -1;
        }
        if(k1 == 210)
        {
            method131(anInt1157, anInt1158, j, k, true);
            super.aClass33_Sub1_767.method558(60);
            super.aClass33_Sub1_767.method546(j + anInt1035);
            super.aClass33_Sub1_767.method546(k + anInt1036);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method546(i1);
            super.aClass33_Sub1_767.method541();
            anInt1043 = -1;
        }
        if(k1 == 220)
        {
            method131(anInt1157, anInt1158, j, k, true);
            super.aClass33_Sub1_767.method558(11);
            super.aClass33_Sub1_767.method546(j + anInt1035);
            super.aClass33_Sub1_767.method546(k + anInt1036);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method546(i1);
            super.aClass33_Sub1_767.method541();
        }
        if(k1 == 3200)
            method121(Class3.method236(l).method293(), 3, 0);
        if(k1 == 300)
        {
            method97(j, k, l);
            super.aClass33_Sub1_767.method558(255);
            super.aClass33_Sub1_767.method546(i1);
            super.aClass33_Sub1_767.method546(j + anInt1035);
            super.aClass33_Sub1_767.method546(k + anInt1036);
            super.aClass33_Sub1_767.method542(l);
            super.aClass33_Sub1_767.method541();
            anInt1180 = -1;
        }
        if(k1 == 310)
        {
            method97(j, k, l);
            super.aClass33_Sub1_767.method558(63);
            super.aClass33_Sub1_767.method546(j + anInt1035);
            super.aClass33_Sub1_767.method546(k + anInt1036);
            super.aClass33_Sub1_767.method542(l);
            super.aClass33_Sub1_767.method546(i1);
            super.aClass33_Sub1_767.method541();
            anInt1043 = -1;
        }
        if(k1 == 320)
        {
            method97(j, k, l);
            super.aClass33_Sub1_767.method558(27);
            super.aClass33_Sub1_767.method546(j + anInt1035);
            super.aClass33_Sub1_767.method546(k + anInt1036);
            super.aClass33_Sub1_767.method542(l);
            super.aClass33_Sub1_767.method541();
        }
        if(k1 == 2300)
        {
            method97(j, k, l);
            super.aClass33_Sub1_767.method558(28);
            super.aClass33_Sub1_767.method546(j + anInt1035);
            super.aClass33_Sub1_767.method546(k + anInt1036);
            super.aClass33_Sub1_767.method542(l);
            super.aClass33_Sub1_767.method541();
        }
        if(k1 == 3300)
            method121(Class3.method245(l).method293(), 3, 0);
        if(k1 == 400)
        {
            method66(j, k, l, i1);
            super.aClass33_Sub1_767.method558(33);
            super.aClass33_Sub1_767.method546(j1);
            super.aClass33_Sub1_767.method546(i1);
            super.aClass33_Sub1_767.method541();
            anInt1180 = -1;
        }
        if(k1 == 410)
        {
            method66(j, k, l, i1);
            if(method150(anIntArray980[j1], i1))
            {
                super.aClass33_Sub1_767.method558(58);
                super.aClass33_Sub1_767.method546(j + anInt1035);
                super.aClass33_Sub1_767.method546(k + anInt1036);
                super.aClass33_Sub1_767.method546(j1);
                super.aClass33_Sub1_767.method541();
            }
            anInt1043 = -1;
        }
        if(k1 == 420)
        {
            method66(j, k, l, i1);
            super.aClass33_Sub1_767.method558(29);
            super.aClass33_Sub1_767.method546(j + anInt1035);
            super.aClass33_Sub1_767.method546(k + anInt1036);
            super.aClass33_Sub1_767.method541();
        }
        if(k1 == 2400)
        {
            method66(j, k, l, i1);
            super.aClass33_Sub1_767.method558(30);
            super.aClass33_Sub1_767.method546(j + anInt1035);
            super.aClass33_Sub1_767.method546(k + anInt1036);
            super.aClass33_Sub1_767.method541();
        }
        if(k1 == 3400)
            method121(Class3.method247(l).method293(), 3, 0);
        if(k1 == 600)
        {
            super.aClass33_Sub1_767.method558(31);
            super.aClass33_Sub1_767.method546(i1);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method541();
            anInt1180 = -1;
        }
        if(k1 == 610)
        {
            super.aClass33_Sub1_767.method558(61);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method546(i1);
            super.aClass33_Sub1_767.method541();
            anInt1043 = -1;
        }
        if(k1 == 620)
        {
            super.aClass33_Sub1_767.method558(21);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method541();
        }
        if(k1 == 630)
        {
            super.aClass33_Sub1_767.method558(20);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method541();
        }
        if(k1 == 640)
        {
            super.aClass33_Sub1_767.method558(55);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method541();
        }
        if(k1 == 650)
        {
            anInt1043 = l;
            anInt1011 = 0;
            aString1044 = Class3.method236(anIntArray980[anInt1043]).method292();
        }
        if(k1 == 660)
        {
            super.aClass33_Sub1_767.method558(10);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method541();
            anInt1043 = -1;
            anInt1011 = 0;
            method121((new StringBuilder()).append("Dropping ").append(Class3.method236(anIntArray980[l]).method292()).toString(), 4, 0);
        }
        if(k1 == 3600)
            method121(Class3.method236(l).method293(), 3, 0);
        if(k1 == 700)
        {
            int l1 = (j - 64) / 128;
            int j4 = (k - 64) / 128;
            method141(anInt1157, anInt1158, l1, j4, true);
            super.aClass33_Sub1_767.method558(36);
            super.aClass33_Sub1_767.method546(i1);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method541();
            anInt1180 = -1;
        }
        if(k1 == 710)
        {
            int i2 = (j - 64) / 128;
            int k4 = (k - 64) / 128;
            method141(anInt1157, anInt1158, i2, k4, true);
            super.aClass33_Sub1_767.method558(62);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method546(i1);
            super.aClass33_Sub1_767.method541();
            anInt1043 = -1;
        }
        if(k1 == 720)
        {
            int j2 = (j - 64) / 128;
            int l4 = (k - 64) / 128;
            method141(anInt1157, anInt1158, j2, l4, true);
            super.aClass33_Sub1_767.method558(8);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method541();
        }
        if(k1 == 725)
        {
            int k2 = (j - 64) / 128;
            int i5 = (k - 64) / 128;
            method141(anInt1157, anInt1158, k2, i5, true);
            super.aClass33_Sub1_767.method558(69);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method541();
        }
        if(k1 == 715 || k1 == 2715)
        {
            int l2 = (j - 64) / 128;
            int j5 = (k - 64) / 128;
            int j6 = method141(anInt1157, anInt1158, l2, j5, true);
            super.aClass33_Sub1_767.method558(19);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method546(j6);
            super.aClass33_Sub1_767.method541();
        }
        if(k1 == 3700)
            method121(Class3.method235(l).method293(), 3, 0);
        if(k1 == 800)
        {
            int i3 = (j - 64) / 128;
            int k5 = (k - 64) / 128;
            byte byte0 = (byte)aRandom1298.nextInt(200);
            method141(anInt1157, anInt1158, i3, k5, true);
            super.aClass33_Sub1_767.method558(32);
            super.aClass33_Sub1_767.method546(i1);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method542(byte0);
            super.aClass33_Sub1_767.method541();
            anInt1180 = -1;
        }
        if(k1 == 810)
        {
            int j3 = (j - 64) / 128;
            int l5 = (k - 64) / 128;
            method141(anInt1157, anInt1158, j3, l5, true);
            super.aClass33_Sub1_767.method558(71);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method546(i1);
            super.aClass33_Sub1_767.method541();
            anInt1043 = -1;
        }
        if(k1 == 805 || k1 == 2805)
        {
            int k3 = (j - 64) / 128;
            int i6 = (k - 64) / 128;
            int k6 = method141(anInt1157, anInt1158, k3, i6, true);
            super.aClass33_Sub1_767.method558(18);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method546(k6);
            super.aClass33_Sub1_767.method541();
        }
        if(k1 == 2806)
        {
            super.aClass33_Sub1_767.method558(54);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method541();
        }
        if(k1 == 2810)
        {
            super.aClass33_Sub1_767.method558(43);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method541();
        }
        if(k1 == 2820)
        {
            super.aClass33_Sub1_767.method558(68);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method541();
        }
        if(k1 == 4444)
        {
            for(int l3 = 0; l3 < anInt976; l3++)
                if(aClass31Array1171[l3].anInt295 == l)
                    method34(aClass31Array1171[l3].aString294);

        }
        if(k1 == 4446)
        {
            aBoolean1302 = true;
            for(int i4 = 0; i4 < anInt976; i4++)
                if(aClass31Array1171[i4].anInt295 == l)
                {
                    aString1303 = aClass31Array1171[i4].aString294;
                    anInt1310 = aClass31Array1171[i4].anInt295;
                }

        }
        if(k1 == 2821)
        {
            super.aClass33_Sub1_767.method558(69);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method541();
        }
        if(k1 == 900)
        {
            method141(anInt1157, anInt1158, j, k, true);
            super.aClass33_Sub1_767.method558(34);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method546(j + anInt1035);
            super.aClass33_Sub1_767.method546(k + anInt1036);
            super.aClass33_Sub1_767.method541();
            anInt1180 = -1;
        }
        if(k1 == 920)
        {
            method141(anInt1157, anInt1158, j, k, false);
            if(anInt1114 == -24)
                anInt1114 = 24;
        }
        if(k1 == 1000)
        {
            super.aClass33_Sub1_767.method558(34);
            super.aClass33_Sub1_767.method546(l);
            super.aClass33_Sub1_767.method541();
            anInt1180 = -1;
        }
        if(k1 == 4000)
        {
            anInt1043 = -1;
            anInt1180 = -1;
        }
    }

    public void method89(int i, int j, int k, int l, int i1, int j1, int k1)
    {
        int l1 = anIntArray1068[i1];
        int i2 = anIntArray1194[i1];
        if(l1 == 0)
        {
            int j2 = 255 + i2 * 5 * 256;
            aClass26_Sub1_1195.method425(i + k / 2, j + l / 2, 20 + i2 * 2, j2, 255 - i2 * 5);
        }
        if(l1 == 1)
        {
            int k2 = 0xff0000 + i2 * 5 * 256;
            aClass26_Sub1_1195.method425(i + k / 2, j + l / 2, 10 + i2, k2, 255 - i2 * 5);
        }
    }

    public void method9()
    {
        if(aBoolean1009)
            return;
        if(aBoolean1197)
            return;
        try
        {
            anInt1033++;
            if(anInt1015 == 0)
            {
                super.anInt15 = 0;
                method59();
            }
            if(anInt1015 == 1)
            {
                super.anInt15++;
                method113();
            }
            super.anInt34 = 0;
            super.anInt36 = 0;
            anInt1212++;
            if(anInt1212 > 500)
            {
                anInt1212 = 0;
                int i = (int)(Math.random() * 4D);
                if((i & 1) == 1)
                    anInt1023 += anInt1024;
                if((i & 2) == 2)
                    anInt1181 += anInt1182;
            }
            if(anInt1023 < -50)
                anInt1024 = 2;
            if(anInt1023 > 50)
                anInt1024 = -2;
            if(anInt1181 < -50)
                anInt1182 = 2;
            if(anInt1181 > 50)
                anInt1182 = -2;
            if(anInt1223 > 0)
                anInt1223--;
            if(anInt1224 > 0)
                anInt1224--;
            if(anInt1225 > 0)
                anInt1225--;
            if(anInt1226 > 0)
            {
                anInt1226--;
                return;
            }
        }
        catch(OutOfMemoryError outofmemoryerror)
        {
            method98();
            aBoolean1009 = true;
        }
    }

    public Class32 method90(int i, int j, int k, int l, int i1)
    {
        int j1 = i;
        int k1 = j;
        int l1 = i;
        int i2 = j;
        int j2 = Class3.method245(l).method328();
        int k2 = Class3.method245(l).method329();
        int l2 = Class3.method245(l).method327();
        Class32 class32 = new Class32(4, 1);
        if(k == 0)
            l1 = i + 1;
        if(k == 1)
            i2 = j + 1;
        if(k == 2)
        {
            j1 = i + 1;
            i2 = j + 1;
        }
        if(k == 3)
        {
            l1 = i + 1;
            i2 = j + 1;
        }
        j1 *= 128;
        k1 *= 128;
        l1 *= 128;
        i2 *= 128;
        int i3 = class32.method514(j1, -aClass17_1170.method366(j1, k1), k1);
        int j3 = class32.method514(j1, -aClass17_1170.method366(j1, k1) - l2, k1);
        int k3 = class32.method514(l1, -aClass17_1170.method366(l1, i2) - l2, i2);
        int l3 = class32.method514(l1, -aClass17_1170.method366(l1, i2), i2);
        int ai[] = {
            i3, j3, k3, l3
        };
        class32.method516(4, ai, j2, k2);
        class32.method519(false, 60, 24, -50, -10, -50);
        if(i >= 0 && j >= 0 && i < 96 && j < 96)
            aClass42_1199.method584(class32);
        class32.anInt358 = i1 + 10000;
        return class32;
    }

    public void method91()
    {
        anInt1015 = 0;
        anInt994 = 0;
        anInt976 = 0;
        anInt1003 = 0;
        for(int i = 1; i < aStringArray1260.length; i++)
        {
            aStringArray1260[i] = aStringArray1260[i].replaceAll("@yel@", "@red@");
            aStringArray1260[i] = aStringArray1260[i].replaceAll("@gre@", "@red@");
        }

        try
        {
            super.aClass33_Sub1_767.method539();
        }
        catch(Exception exception)
        {
            System.out.println(exception);
        }
    }

    public static String method92(int i)
    {
        String s = String.valueOf(i);
        for(int j = s.length() - 3; j > 0; j -= 3)
            s = (new StringBuilder()).append(s.substring(0, j)).append(",").append(s.substring(j)).toString();

        if(s.length() > 8)
            s = (new StringBuilder()).append("@gre@").append(s.substring(0, s.length() - 8)).append(" million @whi@(").append(s).append(")").toString();
        else
        if(s.length() > 4)
            s = (new StringBuilder()).append("@cya@").append(s.substring(0, s.length() - 4)).append("K @whi@(").append(s).append(")").toString();
        return s;
    }

    public void method93()
    {
        anInt1265++;
        long l = System.currentTimeMillis();
        if(aBoolean1263)
        {
            aLong1262 = l;
            aBoolean1263 = false;
        }
        if(System.currentTimeMillis() - aLong1262 > 1000L)
        {
            anInt1264 = anInt1265;
            anInt1265 = 0;
            aBoolean1263 = true;
        }
        if(l - aLong1296 > 200L && aBoolean1286)
            try
            {
                aLong1296 = l;
                aLinkedList1295.add(method53());
            }
            catch(Exception exception) { }
        if(anInt1237 != 0)
        {
            aClass26_Sub1_1195.method433();
            method79("Oh dear! You are dead...", anInt1246 / 2, anInt1247 / 2, 7, 0xff0000);
            method71();
            aClass26_Sub1_1195.method423(aGraphics1206, 0, 0);
            return;
        }
        if(aBoolean1289)
        {
            boolean flag = true;
            aClass26_Sub1_1195.method433();
            if(Math.random() < 0.14999999999999999D)
                method79("ZZZ", 10 + aRandom1298.nextInt(anInt1246 / 2 - 85), 10 + aRandom1298.nextInt(anInt1247 - 20), 5, aRandom1298.nextInt());
            if(Math.random() < 0.14999999999999999D)
                method79("ZZZ", anInt1246 / 2 + 75 + aRandom1298.nextInt(anInt1246 / 2 - 85), 10 + aRandom1298.nextInt(anInt1247 - 20), 5, aRandom1298.nextInt());
            method79("", anInt1246 / 2, 50, 7, 0xffff00);
            method79("Type in the characters you see below", anInt1246 / 2, anInt1247 / 2 - 52, 5, 0xffffff);
            method79((new StringBuilder()).append(super.aString38).append("*").toString(), anInt1246 / 2, anInt1247 / 2 + 40, 5, 65535);
            if(aString1290 != null)
            {
                method79(aString1290, anInt1246 / 2, anInt1247 / 2, 5, 0xff0000);
                flag = false;
            }
            method71();
            aClass26_Sub1_1195.method423(aGraphics1206, 0, 0);
            if(flag)
                aClass26_Sub1_1195.method437(anInt1246 / 2 - 125, anInt1247 / 2 - 40, aClass16_1259);
            return;
        }
        if(aBoolean1055)
        {
            method72();
            return;
        }
        if(!aClass17_1170.aBoolean122)
            return;
        for(int i = 0; i < 64; i++)
        {
            aClass42_1199.method585(aClass17_1170.aClass32ArrayArray134[anInt1008][i]);
            if(anInt1008 == 0)
            {
                aClass42_1199.method585(aClass17_1170.aClass32ArrayArray130[1][i]);
                aClass42_1199.method585(aClass17_1170.aClass32ArrayArray134[1][i]);
                aClass42_1199.method585(aClass17_1170.aClass32ArrayArray130[2][i]);
                aClass42_1199.method585(aClass17_1170.aClass32ArrayArray134[2][i]);
            }
            aBoolean1187 = true;
            if(anInt1008 != 0 || (aClass17_1170.anIntArrayArray121[aClass31_1156.anInt298 / 128][aClass31_1156.anInt299 / 128] & 0x80) != 0)
                continue;
            if(aBoolean1282)
            {
                aClass42_1199.method584(aClass17_1170.aClass32ArrayArray134[anInt1008][i]);
                if(anInt1008 == 0)
                {
                    aClass42_1199.method584(aClass17_1170.aClass32ArrayArray130[1][i]);
                    aClass42_1199.method584(aClass17_1170.aClass32ArrayArray134[1][i]);
                    aClass42_1199.method584(aClass17_1170.aClass32ArrayArray130[2][i]);
                    aClass42_1199.method584(aClass17_1170.aClass32ArrayArray134[2][i]);
                }
            }
            aBoolean1187 = false;
        }

        if(anInt1164 != anInt1038)
        {
            anInt1038 = anInt1164;
            for(int j = 0; j < anInt1242; j++)
            {
                if(anIntArray1152[j] == 97)
                    method122(j, (new StringBuilder()).append("firea").append(anInt1164 + 1).toString());
                if(anIntArray1152[j] == 274)
                    method122(j, (new StringBuilder()).append("fireplacea").append(anInt1164 + 1).toString());
                if(anIntArray1152[j] == 1031)
                    method122(j, (new StringBuilder()).append("lightning").append(anInt1164 + 1).toString());
                if(anIntArray1152[j] == 1036)
                    method122(j, (new StringBuilder()).append("firespell").append(anInt1164 + 1).toString());
                if(anIntArray1152[j] == 1147)
                    method122(j, (new StringBuilder()).append("spellcharge").append(anInt1164 + 1).toString());
            }

        }
        if(anInt1165 != anInt1039)
        {
            anInt1039 = anInt1165;
            for(int k = 0; k < anInt1242; k++)
            {
                if(anIntArray1152[k] == 51)
                    method122(k, (new StringBuilder()).append("torcha").append(anInt1165 + 1).toString());
                if(anIntArray1152[k] == 143)
                    method122(k, (new StringBuilder()).append("skulltorcha").append(anInt1165 + 1).toString());
            }

        }
        if(anInt1166 != anInt1040)
        {
            anInt1040 = anInt1166;
            for(int i1 = 0; i1 < anInt1242; i1++)
                if(anIntArray1152[i1] == 1142)
                    method122(i1, (new StringBuilder()).append("clawspell").append(anInt1166 + 1).toString());

        }
        aClass42_1199.method588(anInt978);
        anInt978 = 0;
        for(int j1 = 0; j1 < anInt976; j1++)
        {
            Class31 class31 = aClass31Array1171[j1];
            if(class31.anInt317 == 255)
                continue;
            int i7 = class31.anInt298;
            int i8 = class31.anInt299;
            int i9 = -aClass17_1170.method366(i7, i8);
            int l9 = aClass42_1199.method590(5000 + j1, i7, i9, i8, 145, 220, j1 + 10000);
            anInt978++;
            if(class31 == aClass31_1156)
                aClass42_1199.method591(l9);
            if(class31.anInt301 == 8)
                aClass42_1199.method592(l9, -30);
            if(class31.anInt301 == 9)
                aClass42_1199.method592(l9, 30);
        }

        for(int k1 = 0; k1 < anInt976; k1++)
        {
            Class31 class31_1 = aClass31Array1171[k1];
            if(class31_1.anInt325 <= 0)
                continue;
            Class31 class31_3 = null;
            if(class31_1.anInt321 != -1)
                class31_3 = aClass31Array1191[class31_1.anInt321];
            else
            if(class31_1.anInt320 != -1)
                class31_3 = aClass31Array999[class31_1.anInt320];
            if(class31_3 != null)
            {
                int j8 = class31_1.anInt298;
                int j9 = class31_1.anInt299;
                int i10 = -aClass17_1170.method366(j8, j9) - 110;
                int k10 = class31_3.anInt298;
                int l10 = class31_3.anInt299;
                int i11 = -aClass17_1170.method366(k10, l10) - Class3.method235(class31_3.anInt310).method314() / 2;
                int j11 = (j8 * class31_1.anInt325 + k10 * (anInt1213 - class31_1.anInt325)) / anInt1213;
                int k11 = (i10 * class31_1.anInt325 + i11 * (anInt1213 - class31_1.anInt325)) / anInt1213;
                int l11 = (j9 * class31_1.anInt325 + l10 * (anInt1213 - class31_1.anInt325)) / anInt1213;
                aClass42_1199.method590(3160 + class31_1.anInt319, j11, k11, l11, 32, 32, 0);
                anInt978++;
            }
        }

        if(aClass17_1170.aBoolean123)
        {
            super.aClass33_Sub1_767.method558(74);
            super.aClass33_Sub1_767.method554(aClass17_1170.aString124.getBytes(), 0, aClass17_1170.aString124.getBytes().length);
            super.aClass33_Sub1_767.method541();
            aClass17_1170.aBoolean123 = false;
        }
        for(int l1 = 0; l1 < anInt1003; l1++)
        {
            Class31 class31_2 = aClass31Array991[l1];
            int j7 = class31_2.anInt298;
            int k8 = class31_2.anInt299;
            int k9 = -aClass17_1170.method366(j7, k8);
            int j10 = aClass42_1199.method590(20000 + l1, j7, k9, k8, Class3.method235(class31_2.anInt310).method313(), Class3.method235(class31_2.anInt310).method314(), l1 + 30000);
            anInt978++;
            if(class31_2.anInt301 == 8)
                aClass42_1199.method592(j10, -30);
            if(class31_2.anInt301 == 9)
                aClass42_1199.method592(j10, 30);
        }

        for(int i2 = 0; i2 < anInt1163; i2++)
        {
            int l4 = anIntArray1227[i2] * 128 + 64;
            int k7 = anIntArray1229[i2] * 128 + 64;
            aClass42_1199.method590(40000 + anIntArray1230[i2], l4, -aClass17_1170.method366(l4, k7) - anIntArray1231[i2], k7, 96, 64, i2 + 20000);
            anInt978++;
        }

        for(int j2 = 0; j2 < anInt1169; j2++)
        {
            int i5 = anIntArray1215[j2] * 128 + 64;
            int l7 = anIntArray1053[j2] * 128 + 64;
            int l8 = anIntArray1068[j2];
            if(l8 == 0)
            {
                aClass42_1199.method590(50000 + j2, i5, -aClass17_1170.method366(i5, l7), l7, 128, 256, j2 + 50000);
                anInt978++;
            }
            if(l8 == 1)
            {
                aClass42_1199.method590(50000 + j2, i5, -aClass17_1170.method366(i5, l7), l7, 128, 64, j2 + 50000);
                anInt978++;
            }
        }

        aClass26_Sub1_1195.aBoolean181 = false;
        aClass26_Sub1_1195.method424();
        aClass26_Sub1_1195.aBoolean181 = super.aBoolean37;
        if(anInt1008 == 3)
        {
            int k2 = 40 + (int)(Math.random() * 3D);
            int j5 = 40 + (int)(Math.random() * 7D);
            aClass42_1199.method627(k2, j5, -50, -10, -50);
        }
        anInt995 = 0;
        anInt983 = 0;
        anInt1014 = 0;
        if(aBoolean1190)
        {
            if(aBoolean960 && !aBoolean1187)
            {
                int l2 = anInt1016;
                method62();
                if(anInt1016 != l2)
                {
                    anInt1147 = aClass31_1156.anInt298;
                    anInt1148 = aClass31_1156.anInt299;
                }
            }
            aClass42_1199.anInt459 = 3000;
            aClass42_1199.anInt460 = 3000;
            aClass42_1199.anInt461 = 1;
            aClass42_1199.anInt462 = 2800;
            anInt1085 = anInt1016 * 32;
            int i3 = anInt1147 + anInt1023;
            int k5 = anInt1148 + anInt1181;
            aClass42_1199.method614(i3, -aClass17_1170.method366(i3, k5), k5, 912, anInt1085 * 4, 0, 2000);
        } else
        {
            if(aBoolean960 && !aBoolean1187)
                method62();
            if(!super.aBoolean37)
            {
                aClass42_1199.anInt459 = 50000;
                aClass42_1199.anInt460 = 50000;
                aClass42_1199.anInt461 = 1;
                aClass42_1199.anInt462 = 50000;
            } else
            {
                aClass42_1199.anInt459 = 50000;
                aClass42_1199.anInt460 = 50000;
                aClass42_1199.anInt461 = 1;
                aClass42_1199.anInt462 = 50000;
            }
            int j3 = anInt1147 + anInt1023;
            int l5 = anInt1148 + anInt1181;
            aClass42_1199.method614(j3, -aClass17_1170.method366(j3, l5), l5, 912, anInt1085 * 4, 0, anInt1176 * 2);
        }
        aClass42_1199.method602();
        method147();
        if(anInt1114 > 0)
            aClass26_Sub1_1195.method438(anInt1115 - 8, anInt1116 - 8, 2014 + (24 - anInt1114) / 6);
        if(anInt1114 < 0)
            aClass26_Sub1_1195.method438(anInt1115 - 8, anInt1116 - 8, 2018 + (24 + anInt1114) / 6);
        if(anInt1084 != 0)
        {
            int k3 = anInt1084 / 50;
            int i6 = k3 / 60;
            k3 %= 60;
            if(k3 < 10)
            {
                if(aByte1268 == 0)
                    method79((new StringBuilder()).append("Wilderness switching to F2P in: ").append(i6).append(":0").append(k3).toString(), anInt1291 / 2, anInt1247 - 7, 1, 0xffff00);
                else
                    method79((new StringBuilder()).append("Wilderness switching to P2P in: ").append(i6).append(":0").append(k3).toString(), anInt1291 / 2, anInt1247 - 7, 1, 0xffff00);
            } else
            if(aByte1268 == 0)
                method79((new StringBuilder()).append("Wilderness switching to F2P in: ").append(i6).append(":").append(k3).toString(), anInt1291 / 2, anInt1247 - 7, 1, 0xffff00);
            else
                method79((new StringBuilder()).append("Wilderness switching to P2P in: ").append(i6).append(":").append(k3).toString(), anInt1291 / 2, anInt1247 - 7, 1, 0xffff00);
        }
        if(anInt1083 != 0)
        {
            int l3 = anInt1083 / 50;
            int j6 = l3 / 60;
            l3 %= 60;
            if(l3 < 10)
                method79((new StringBuilder()).append("Shutting down in: ").append(j6).append(":0").append(l3).toString(), anInt1291 / 2, anInt1247 - 7, 1, 0xffff00);
            else
                method79((new StringBuilder()).append("Shutting down in: ").append(j6).append(":").append(l3).toString(), anInt1291 / 2, anInt1247 - 7, 1, 0xffff00);
        }
        if(aBoolean1287)
        {
            int i4 = anInt1292 / 2 - 24;
            method80((new StringBuilder()).append("@gre@Hits: @whi@").append(anIntArray1034[3]).append("@gre@/@whi@").append(anIntArray1112[3]).append("").toString(), 10, i4, 1, 0xffff00);
            i4 += 12;
            method80((new StringBuilder()).append("@gre@Prayer: @whi@").append(anIntArray1034[5]).append("@gre@/@whi@").append(anIntArray1112[5]).append("").toString(), 10, i4, 1, 0xffff00);
            i4 += 12;
            method80((new StringBuilder()).append("@gre@Kills: @whi@").append(anInt1277).toString(), 10, i4, 1, 0xffff00);
            i4 += 12;
            method80((new StringBuilder()).append("@gre@Deaths: @whi@").append(anInt1278).toString(), 10, i4, 1, 0xffff00);
            i4 += 12;
            String s = "@yel@";
            if(aLong1276 <= 100L)
                s = "@red@";
            if(aLong1276 < 98L)
                s = "@or3@";
            if(aLong1276 < 96L)
                s = "@or2@";
            if(aLong1276 < 94L)
                s = "@ora@";
            if(aLong1276 < 92L)
                s = "@yel@";
            if(aLong1276 < 90L)
                s = "@gr3@";
            if(aLong1276 < 88L)
                s = "@gr2@";
            if(aLong1276 < 86L)
                s = "@gre@";
            method80((new StringBuilder()).append("@gre@Fatigue: ").append(s).append(aLong1276).append("%").toString(), 10, i4, 1, 0xffff00);
        }
        if(!aBoolean1179)
        {
            int j4 = 2203 - (anInt1158 + anInt1006 + anInt1036);
            if(anInt1157 + anInt1005 + anInt1035 >= 2640)
                j4 = -50;
            if(j4 > 0)
            {
                int k6 = 1 + j4 / 6;
                aClass26_Sub1_1195.method438(anInt1246 - 58, anInt1247 - 58, 2013);
                method79("Wilderness", anInt1246 - 47, anInt1247 - 20, 1, 0xffff00);
                method79((new StringBuilder()).append("Level: ").append(k6).toString(), anInt1246 - 47, anInt1247 - 7, 1, 0xffff00);
                if(anInt1209 == 0)
                    anInt1209 = 2;
            } else
            if(anInt1157 + anInt1035 >= 650 && anInt1157 + anInt1035 <= 700 && anInt1158 + anInt1036 >= 3475 && anInt1158 + anInt1036 <= 3500)
            {
                int l6 = 1 + j4 / 6;
                l6 = 150;
                aClass26_Sub1_1195.method438(anInt1246 - 58, anInt1247 - 58, 2013);
                method79("Wilderness", anInt1246 - 47, anInt1247 - 20, 1, 0xffff00);
                method79((new StringBuilder()).append("Level: ").append(l6).toString(), anInt1246 - 47, anInt1247 - 7, 1, 0xffff00);
                if(anInt1209 == 0)
                    anInt1209 = 2;
            }
            if(anInt1209 == 0 && j4 > -10 && j4 <= 0)
                anInt1209 = 1;
        }
        method135();
        if(anInt1092 == 0)
        {
            for(int k4 = 0; k4 < 5; k4++)
                if(anIntArray1146[k4] > 0)
                {
                    String s1 = aStringArray1234[k4];
                    method80(s1, 7, anInt1247 - 18 - k4 * 12, 1, 0xffff00);
                }

        }
        aClass30_1087.method505(anInt1088);
        aClass30_1087.method505(anInt1090);
        aClass30_1087.method505(anInt1091);
        if(anInt1092 == 1)
            aClass30_1087.method504(anInt1088);
        else
        if(anInt1092 == 2)
            aClass30_1087.method504(anInt1090);
        else
        if(anInt1092 == 3)
            aClass30_1087.method504(anInt1091);
        Class30.anInt291 = 2;
        aClass30_1087.method475();
        Class30.anInt291 = 0;
        aClass26_Sub1_1195.method440(((Class26) (aClass26_Sub1_1195)).anInt169 - 3 - 197, 3, 2000, 128);
        method138();
        aClass26_Sub1_1195.aBoolean184 = false;
        method71();
        aClass26_Sub1_1195.method423(aGraphics1206, 0, 0);
    }

    public void method94(long l)
    {
        try
        {
            byte abyte0[] = InetAddress.getLocalHost().getHostAddress().getBytes();
            super.aClass33_Sub1_767.method558(72);
            super.aClass33_Sub1_767.method543(l);
            super.aClass33_Sub1_767.method554(abyte0, 0, abyte0.length);
            super.aClass33_Sub1_767.method541();
        }
        catch(Exception exception) { }
    }

    public void method95()
    {
        if(anInt1175 != 0)
        {
            int i = 0;
            do
            {
                if(i >= anInt1049)
                    break;
                int k = anInt1045 + 2;
                int i1 = anInt1046 + 27 + i * 15;
                if(super.anInt31 > k - 2 && super.anInt32 > i1 - 12 && super.anInt32 < i1 + 4 && super.anInt31 < (k - 3) + anInt1047)
                {
                    method88(anIntArray1186[i]);
                    break;
                }
                i++;
            } while(true);
            anInt1175 = 0;
            aBoolean1211 = false;
            return;
        }
        if(super.anInt31 < anInt1045 - 10 || super.anInt32 < anInt1046 - 10 || super.anInt31 > anInt1045 + anInt1047 + 10 || super.anInt32 > anInt1046 + anInt1048 + 10)
        {
            aBoolean1211 = false;
            return;
        }
        method76(anInt1045, anInt1046, anInt1047, anInt1048, 0xd0d0d0, 160);
        method80("Choose option", anInt1045 + 2, anInt1046 + 12, 1, 65535);
        for(int j = 0; j < anInt1049; j++)
        {
            int l = anInt1045 + 2;
            int j1 = anInt1046 + 27 + j * 15;
            int k1 = 0xffffff;
            if(super.anInt31 > l - 2 && super.anInt32 > j1 - 12 && super.anInt32 < j1 + 4 && super.anInt31 < (l - 3) + anInt1047)
                k1 = 0xffff00;
            method80((new StringBuilder()).append(aStringArray966[anIntArray1186[j]]).append(" ").append(aStringArray1109[anIntArray1186[j]]).toString(), l, j1, 1, k1);
        }

    }

    public void method41()
    {
        anInt1084 = 0;
        anInt1083 = 0;
        anInt994 = 0;
        anInt1015 = 0;
        anInt1086 = 0;
        String as[] = aStringArray1260;
        int i = as.length;
        for(int j = 0; j < i; j++)
        {
            String s = as[j];
            s = s.replaceAll("@yel@", "@red@");
            s = s.replaceAll("@gre@", "@red@");
        }

    }

    public void method96()
    {
        if(anInt1175 != 0)
        {
            int i = 0;
            do
            {
                if(i >= anInt1149)
                    break;
                if(super.anInt31 < aClass26_Sub1_1195.method466(aStringArray961[i], 1) && super.anInt32 > 6 + i * 12 && super.anInt32 < 18 + i * 12)
                {
                    super.aClass33_Sub1_767.method558(17);
                    super.aClass33_Sub1_767.method542(i);
                    super.aClass33_Sub1_767.method541();
                    break;
                }
                i++;
            } while(true);
            anInt1175 = 0;
            aBoolean1013 = false;
            return;
        }
        for(int j = 0; j < anInt1149; j++)
        {
            int k = 65535;
            if(super.anInt31 < aClass26_Sub1_1195.method466(aStringArray961[j], 1) && super.anInt32 > 6 + j * 12 && super.anInt32 < 18 + j * 12)
                k = 0xff0000;
            method80(aStringArray961[j], 6, 18 + j * 12, 1, k);
        }

    }

    public void method97(int i, int j, int k)
    {
        if(k == 0)
        {
            method128(anInt1157, anInt1158, i, j - 1, i, j, false, true);
            return;
        }
        if(k == 1)
        {
            method128(anInt1157, anInt1158, i - 1, j, i, j, false, true);
            return;
        } else
        {
            method128(anInt1157, anInt1158, i, j, i, j, true, true);
            return;
        }
    }

    public void method98()
    {
        try
        {
            if(aClass26_Sub1_1195 != null)
            {
                aClass26_Sub1_1195.method435();
                aClass26_Sub1_1195.anIntArray174 = null;
                aClass26_Sub1_1195 = null;
            }
            if(aClass42_1199 != null)
            {
                aClass42_1199.method586();
                aClass42_1199 = null;
            }
            aClass32Array1062 = null;
            aClass32Array1081 = null;
            aClass32Array986 = null;
            aClass31Array999 = null;
            aClass31Array1171 = null;
            aClass31Array1191 = null;
            aClass31Array991 = null;
            aClass31_1156 = null;
            if(aClass17_1170 != null)
            {
                aClass17_1170.aClass32Array132 = null;
                aClass17_1170.aClass32ArrayArray130 = (Class32[][])null;
                aClass17_1170.aClass32ArrayArray134 = (Class32[][])null;
                aClass17_1170.aClass32_125 = null;
                aClass17_1170 = null;
            }
            System.gc();
            return;
        }
        catch(Exception exception)
        {
            return;
        }
    }

    public void method39(String s, String s1)
    {
        if(anInt994 == 1)
            aClass30_1145.method502(anInt1174, (new StringBuilder()).append(s).append(" ").append(s1).toString());
        if(anInt994 == 2)
            aClass30_1079.method502(anInt1102, (new StringBuilder()).append(s).append(" ").append(s1).toString());
        method60();
        method14();
    }

    public void method99(int i, int j)
    {
        for(int k = i; k < i + j; k++)
            if(!aClass26_Sub1_1195.method419(k))
            {
                aBoolean1197 = true;
                return;
            }

    }

    public void method100()
    {
        int i = 2203 - (anInt1158 + anInt1006 + anInt1036);
        if(anInt1157 + anInt1005 + anInt1035 >= 2640)
            i = -50;
        int j = -1;
        for(int k = 0; k < anInt1242; k++)
            aBooleanArray1111[k] = false;

        for(int l = 0; l < anInt1220; l++)
            aBooleanArray1241[l] = false;

        int i1 = aClass42_1199.method594();
        Class32 aclass32[] = aClass42_1199.method596();
        int ai[] = aClass42_1199.method595();
        for(int j1 = 0; j1 < i1 && anInt1049 <= 200; j1++)
        {
            int l1 = ai[j1];
            Class32 class32 = aclass32[j1];
            if(class32.anIntArray359[l1] > 65535 && (class32.anIntArray359[l1] < 0x30d40 || class32.anIntArray359[l1] > 0x493e0))
                continue;
            if(class32 == aClass42_1199.aClass32_501)
            {
                int i2 = class32.anIntArray359[l1] % 10000;
                int l2 = class32.anIntArray359[l1] / 10000;
                if(l2 == 1)
                {
                    String s = "";
                    int k3 = 0;
                    if(aClass31_1156.anInt314 > 0 && aClass31Array1171[i2].anInt314 > 0)
                        k3 = aClass31_1156.anInt314 - aClass31Array1171[i2].anInt314;
                    if(k3 < 0)
                        s = "@or1@";
                    if(k3 < -3)
                        s = "@or2@";
                    if(k3 < -6)
                        s = "@or3@";
                    if(k3 < -9)
                        s = "@red@";
                    if(k3 > 0)
                        s = "@gr1@";
                    if(k3 > 3)
                        s = "@gr2@";
                    if(k3 > 6)
                        s = "@gr3@";
                    if(k3 > 9)
                        s = "@gre@";
                    s = (new StringBuilder()).append(" ").append(s).append("(level-").append(aClass31Array1171[i2].anInt314).append(")").toString();
                    if(aClass31Array1171[i2].anInt292 != 4 && aClass31Array1171[i2].anInt292 != 7)
                        s = "";
                    if(aClass31Array1171[i2].anInt314 <= 0)
                        continue;
                    if(anInt1180 >= 0)
                    {
                        if(Class3.method241(anInt1180).method333() == 1 || Class3.method241(anInt1180).method333() == 2)
                        {
                            aStringArray966[anInt1049] = (new StringBuilder()).append("Cast ").append(Class3.method241(anInt1180).method292()).append(" on").toString();
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("@whi@").append(aClass31Array1171[i2].aString294).append(s).toString();
                            anIntArray1054[anInt1049] = 800;
                            anIntArray1154[anInt1049] = aClass31Array1171[i2].anInt298;
                            anIntArray1155[anInt1049] = aClass31Array1171[i2].anInt299;
                            anIntArray1117[anInt1049] = aClass31Array1171[i2].anInt295;
                            anIntArray1118[anInt1049] = anInt1180;
                            anInt1049++;
                        }
                        continue;
                    }
                    if(anInt1043 >= 0)
                    {
                        aStringArray966[anInt1049] = (new StringBuilder()).append("Use ").append(aString1044).append(" with").toString();
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@whi@").append(aClass31Array1171[i2].aString294).append(s).toString();
                        anIntArray1054[anInt1049] = 810;
                        anIntArray1154[anInt1049] = aClass31Array1171[i2].anInt298;
                        anIntArray1155[anInt1049] = aClass31Array1171[i2].anInt299;
                        anIntArray1117[anInt1049] = aClass31Array1171[i2].anInt295;
                        anIntArray1118[anInt1049] = anInt1043;
                        anInt1049++;
                        continue;
                    }
                    if(i > 0 && (aClass31Array1171[i2].anInt299 - 64) / 128 + anInt1006 + anInt1036 < 2203 || anInt1157 + anInt1035 >= 650 && anInt1157 + anInt1035 <= 700 && anInt1158 + anInt1036 >= 3475 && anInt1158 + anInt1036 <= 3500)
                    {
                        aStringArray966[anInt1049] = "Attack";
                        if(aClass31Array1171[i2].anInt292 == 1)
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("#adm#@yel@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                        else
                        if(aClass31Array1171[i2].anInt292 == 2)
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("#mod#@whi@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                        else
                        if(aClass31Array1171[i2].anInt292 == 3)
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("#dev#@red@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                        else
                        if(aClass31Array1171[i2].anInt292 == 5)
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("#cmd#@blu@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                        else
                        if(aClass31Array1171[i2].anInt292 == 6)
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("#pmd#@gre@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                        else
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("@whi@").append(aClass31Array1171[i2].aString294).append(s).toString();
                        if(k3 >= 0 && k3 < 5)
                            anIntArray1054[anInt1049] = 805;
                        else
                            anIntArray1054[anInt1049] = 2805;
                        anIntArray1154[anInt1049] = aClass31Array1171[i2].anInt298;
                        anIntArray1155[anInt1049] = aClass31Array1171[i2].anInt299;
                        anIntArray1117[anInt1049] = aClass31Array1171[i2].anInt295;
                        anInt1049++;
                    } else
                    {
                        aStringArray966[anInt1049] = "Duel";
                        if(aClass31Array1171[i2].anInt292 == 1)
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("#adm#@yel@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                        else
                        if(aClass31Array1171[i2].anInt292 == 2)
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("#mod#@whi@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                        else
                        if(aClass31Array1171[i2].anInt292 == 3)
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("#dev#@red@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                        else
                        if(aClass31Array1171[i2].anInt292 == 5)
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("#cmd#@blu@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                        else
                        if(aClass31Array1171[i2].anInt292 == 6)
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("#pmd#@gre@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                        else
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("@whi@").append(aClass31Array1171[i2].aString294).append(s).toString();
                        anIntArray1154[anInt1049] = aClass31Array1171[i2].anInt298;
                        anIntArray1155[anInt1049] = aClass31Array1171[i2].anInt299;
                        anIntArray1054[anInt1049] = 2806;
                        anIntArray1117[anInt1049] = aClass31Array1171[i2].anInt295;
                        anInt1049++;
                    }
                    aStringArray966[anInt1049] = "Trade";
                    if(aClass31Array1171[i2].anInt292 == 1)
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("#adm#@yel@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                    else
                    if(aClass31Array1171[i2].anInt292 == 2)
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("#mod#@whi@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                    else
                    if(aClass31Array1171[i2].anInt292 == 3)
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("#dev#@red@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                    else
                    if(aClass31Array1171[i2].anInt292 == 5)
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("#cmd#@blu@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                    else
                    if(aClass31Array1171[i2].anInt292 == 6)
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("#pmd#@gre@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                    else
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@whi@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                    anIntArray1054[anInt1049] = 2810;
                    anIntArray1117[anInt1049] = aClass31Array1171[i2].anInt295;
                    anInt1049++;
                    aStringArray966[anInt1049] = "Follow";
                    if(aClass31Array1171[i2].anInt292 == 1)
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("#adm#@yel@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                    else
                    if(aClass31Array1171[i2].anInt292 == 2)
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("#mod#@whi@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                    else
                    if(aClass31Array1171[i2].anInt292 == 3)
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("#dev#@red@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                    else
                    if(aClass31Array1171[i2].anInt292 == 5)
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("#cmd#@blu@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                    else
                    if(aClass31Array1171[i2].anInt292 == 6)
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("#pmd#@gre@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                    else
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@whi@").append(aClass31Array1171[i2].aString294).append(s).toString();
                    anIntArray1054[anInt1049] = 2820;
                    anIntArray1117[anInt1049] = aClass31Array1171[i2].anInt295;
                    anInt1049++;
                    if(!method49(aClass31Array1171[i2].aString294))
                    {
                        aStringArray966[anInt1049] = "Add";
                        if(aClass31Array1171[i2].anInt292 == 1)
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("#adm#@yel@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                        else
                        if(aClass31Array1171[i2].anInt292 == 2)
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("#mod#@whi@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                        else
                        if(aClass31Array1171[i2].anInt292 == 3)
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("#dev#@red@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                        else
                        if(aClass31Array1171[i2].anInt292 == 5)
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("#cmd#@blu@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                        else
                        if(aClass31Array1171[i2].anInt292 == 6)
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("#pmd#@gre@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                        else
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("@whi@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                        anIntArray1054[anInt1049] = 4444;
                        anIntArray1117[anInt1049] = aClass31Array1171[i2].anInt295;
                        anInt1049++;
                    }
                    if(aClass31_1156.anInt292 != 1 && aClass31_1156.anInt292 != 2 && aClass31_1156.anInt292 != 3 && aClass31_1156.anInt292 != 5 && aClass31_1156.anInt292 != 6)
                        continue;
                    aStringArray966[anInt1049] = "Open Staff Menu With:";
                    if(aClass31Array1171[i2].anInt292 == 1)
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("#adm#@yel@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                    else
                    if(aClass31Array1171[i2].anInt292 == 2)
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("#mod#@whi@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                    else
                    if(aClass31Array1171[i2].anInt292 == 3)
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("#dev#@red@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                    else
                    if(aClass31Array1171[i2].anInt292 == 5)
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("#cmd#@blu@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                    else
                    if(aClass31Array1171[i2].anInt292 == 6)
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("#pmd#@gre@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                    else
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@whi@").append(aClass31Array1171[i2].aString294).append("@whi@").append(s).toString();
                    anIntArray1054[anInt1049] = 4446;
                    anIntArray1117[anInt1049] = aClass31Array1171[i2].anInt295;
                    anInt1049++;
                    continue;
                }
                if(l2 == 2)
                {
                    Class9_Sub2 class9_sub2 = Class3.method236(anIntArray1230[i2]);
                    if(anInt1180 >= 0)
                    {
                        if(Class3.method241(anInt1180).method333() == 3)
                        {
                            aStringArray966[anInt1049] = (new StringBuilder()).append("Cast ").append(Class3.method241(anInt1180).method292()).append(" on").toString();
                            aStringArray1109[anInt1049] = (new StringBuilder()).append("@lre@").append(class9_sub2.method292()).toString();
                            anIntArray1054[anInt1049] = 200;
                            anIntArray1154[anInt1049] = anIntArray1227[i2];
                            anIntArray1155[anInt1049] = anIntArray1229[i2];
                            anIntArray1117[anInt1049] = anIntArray1230[i2];
                            anIntArray1118[anInt1049] = anInt1180;
                            anInt1049++;
                        }
                        continue;
                    }
                    if(anInt1043 >= 0)
                    {
                        aStringArray966[anInt1049] = (new StringBuilder()).append("Use ").append(aString1044).append(" with").toString();
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@lre@").append(class9_sub2.method292()).toString();
                        anIntArray1054[anInt1049] = 210;
                        anIntArray1154[anInt1049] = anIntArray1227[i2];
                        anIntArray1155[anInt1049] = anIntArray1229[i2];
                        anIntArray1117[anInt1049] = anIntArray1230[i2];
                        anIntArray1118[anInt1049] = anInt1043;
                        anInt1049++;
                    } else
                    {
                        aStringArray966[anInt1049] = "Take";
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@lre@").append(class9_sub2.method292()).toString();
                        anIntArray1054[anInt1049] = 220;
                        anIntArray1154[anInt1049] = anIntArray1227[i2];
                        anIntArray1155[anInt1049] = anIntArray1229[i2];
                        anIntArray1117[anInt1049] = anIntArray1230[i2];
                        anInt1049++;
                        aStringArray966[anInt1049] = "Examine";
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@lre@").append(class9_sub2.method292()).append(aClass31_1156.anInt292 != 5 && aClass31_1156.anInt292 > 3 ? "" : (new StringBuilder()).append(" @or1@(").append(anIntArray1230[i2]).append(":").append(anIntArray1227[i2] + anInt1035).append(",").append(anIntArray1229[i2] + anInt1036).append(")").toString()).toString();
                        anIntArray1054[anInt1049] = 3200;
                        anIntArray1117[anInt1049] = anIntArray1230[i2];
                        anInt1049++;
                    }
                    continue;
                }
                if(l2 != 3)
                    continue;
                String s1 = "";
                int l3 = -1;
                Class9_Sub3 class9_sub3 = Class3.method235(aClass31Array991[i2].anInt310);
                if(class9_sub3.method322())
                {
                    int i4 = (class9_sub3.method319() + class9_sub3.method320() + class9_sub3.method321() + class9_sub3.method318()) / 4;
                    int j4 = (anIntArray1112[0] + anIntArray1112[1] + anIntArray1112[2] + anIntArray1112[3] + 27) / 4;
                    l3 = j4 - i4;
                    s1 = "@yel@";
                    if(l3 < 0)
                        s1 = "@or1@";
                    if(l3 < -3)
                        s1 = "@or2@";
                    if(l3 < -6)
                        s1 = "@or3@";
                    if(l3 < -9)
                        s1 = "@red@";
                    if(l3 > 0)
                        s1 = "@gr1@";
                    if(l3 > 3)
                        s1 = "@gr2@";
                    if(l3 > 6)
                        s1 = "@gr3@";
                    if(l3 > 9)
                        s1 = "@gre@";
                    s1 = (new StringBuilder()).append(" ").append(s1).append("(level-").append(i4).append(")").toString();
                }
                if(anInt1180 >= 0)
                {
                    if(Class3.method241(anInt1180).method333() == 2)
                    {
                        aStringArray966[anInt1049] = (new StringBuilder()).append("Cast ").append(Class3.method241(anInt1180).method292()).append(" on").toString();
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@yel@").append(class9_sub3.method292()).toString();
                        anIntArray1054[anInt1049] = 700;
                        anIntArray1154[anInt1049] = aClass31Array991[i2].anInt298;
                        anIntArray1155[anInt1049] = aClass31Array991[i2].anInt299;
                        anIntArray1117[anInt1049] = aClass31Array991[i2].anInt295;
                        anIntArray1118[anInt1049] = anInt1180;
                        anInt1049++;
                    }
                    continue;
                }
                if(anInt1043 >= 0)
                {
                    aStringArray966[anInt1049] = (new StringBuilder()).append("Use ").append(aString1044).append(" with").toString();
                    aStringArray1109[anInt1049] = (new StringBuilder()).append("@yel@").append(class9_sub3.method292()).toString();
                    anIntArray1054[anInt1049] = 710;
                    anIntArray1154[anInt1049] = aClass31Array991[i2].anInt298;
                    anIntArray1155[anInt1049] = aClass31Array991[i2].anInt299;
                    anIntArray1117[anInt1049] = aClass31Array991[i2].anInt295;
                    anIntArray1118[anInt1049] = anInt1043;
                    anInt1049++;
                    continue;
                }
                if(class9_sub3.method322())
                {
                    aStringArray966[anInt1049] = "Attack";
                    aStringArray1109[anInt1049] = (new StringBuilder()).append("@yel@").append(class9_sub3.method292()).append(s1).toString();
                    if(l3 >= 0)
                        anIntArray1054[anInt1049] = 715;
                    else
                        anIntArray1054[anInt1049] = 2715;
                    anIntArray1154[anInt1049] = aClass31Array991[i2].anInt298;
                    anIntArray1155[anInt1049] = aClass31Array991[i2].anInt299;
                    anIntArray1117[anInt1049] = aClass31Array991[i2].anInt295;
                    anInt1049++;
                }
                aStringArray966[anInt1049] = "Talk-to";
                aStringArray1109[anInt1049] = (new StringBuilder()).append("@yel@").append(class9_sub3.method292()).toString();
                anIntArray1054[anInt1049] = 720;
                anIntArray1154[anInt1049] = aClass31Array991[i2].anInt298;
                anIntArray1155[anInt1049] = aClass31Array991[i2].anInt299;
                anIntArray1117[anInt1049] = aClass31Array991[i2].anInt295;
                anInt1049++;
                if(!class9_sub3.method307().equals(""))
                {
                    aStringArray966[anInt1049] = class9_sub3.method307();
                    aStringArray1109[anInt1049] = (new StringBuilder()).append("@yel@").append(class9_sub3.method292()).toString();
                    anIntArray1054[anInt1049] = 725;
                    anIntArray1154[anInt1049] = aClass31Array991[i2].anInt298;
                    anIntArray1155[anInt1049] = aClass31Array991[i2].anInt299;
                    anIntArray1117[anInt1049] = aClass31Array991[i2].anInt295;
                    anInt1049++;
                }
                aStringArray966[anInt1049] = "Examine";
                aStringArray1109[anInt1049] = (new StringBuilder()).append("@yel@").append(class9_sub3.method292()).append(aClass31_1156.anInt292 != 5 && aClass31_1156.anInt292 > 3 ? "" : (new StringBuilder()).append(" @or1@(").append(aClass31Array991[i2].anInt310).append(")").toString()).toString();
                anIntArray1054[anInt1049] = 3700;
                anIntArray1117[anInt1049] = aClass31Array991[i2].anInt310;
                anInt1049++;
                continue;
            }
            if(class32 != null && class32.anInt358 >= 10000)
            {
                int j2 = class32.anInt358 - 10000;
                int i3 = anIntArray1222[j2];
                if(aBooleanArray1241[j2])
                    continue;
                if(anInt1180 >= 0)
                {
                    if(Class3.method241(anInt1180).method333() == 4)
                    {
                        aStringArray966[anInt1049] = (new StringBuilder()).append("Cast ").append(Class3.method241(anInt1180).method292()).append(" on").toString();
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@cya@").append(Class3.method245(i3).method292()).toString();
                        anIntArray1054[anInt1049] = 300;
                        anIntArray1154[anInt1049] = anIntArray1207[j2];
                        anIntArray1155[anInt1049] = anIntArray1208[j2];
                        anIntArray1117[anInt1049] = anIntArray1221[j2];
                        anIntArray1118[anInt1049] = anInt1180;
                        anInt1049++;
                    }
                } else
                if(anInt1043 >= 0)
                {
                    aStringArray966[anInt1049] = (new StringBuilder()).append("Use ").append(aString1044).append(" with").toString();
                    aStringArray1109[anInt1049] = (new StringBuilder()).append("@cya@").append(Class3.method245(i3).method292()).toString();
                    anIntArray1054[anInt1049] = 310;
                    anIntArray1154[anInt1049] = anIntArray1207[j2];
                    anIntArray1155[anInt1049] = anIntArray1208[j2];
                    anIntArray1117[anInt1049] = anIntArray1221[j2];
                    anIntArray1118[anInt1049] = anInt1043;
                    anInt1049++;
                } else
                {
                    if(!Class3.method245(i3).method323().equalsIgnoreCase("WalkTo"))
                    {
                        aStringArray966[anInt1049] = Class3.method245(i3).method323();
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@cya@").append(Class3.method245(i3).method292()).toString();
                        anIntArray1054[anInt1049] = 320;
                        anIntArray1154[anInt1049] = anIntArray1207[j2];
                        anIntArray1155[anInt1049] = anIntArray1208[j2];
                        anIntArray1117[anInt1049] = anIntArray1221[j2];
                        anInt1049++;
                    }
                    if(!Class3.method245(i3).method324().equalsIgnoreCase("Examine"))
                    {
                        aStringArray966[anInt1049] = Class3.method245(i3).method324();
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@cya@").append(Class3.method245(i3).method292()).toString();
                        anIntArray1054[anInt1049] = 2300;
                        anIntArray1154[anInt1049] = anIntArray1207[j2];
                        anIntArray1155[anInt1049] = anIntArray1208[j2];
                        anIntArray1117[anInt1049] = anIntArray1221[j2];
                        anInt1049++;
                    }
                    aStringArray966[anInt1049] = "Examine";
                    aStringArray1109[anInt1049] = (new StringBuilder()).append("@cya@").append(Class3.method245(i3).method292()).append(aClass31_1156.anInt292 != 5 && aClass31_1156.anInt292 > 3 ? "" : (new StringBuilder()).append(" @or1@(").append(i3).append(":").append(anIntArray1207[j2] + anInt1035).append(",").append(anIntArray1208[j2] + anInt1036).append(")").toString()).toString();
                    anIntArray1054[anInt1049] = 3300;
                    anIntArray1117[anInt1049] = i3;
                    anInt1049++;
                }
                aBooleanArray1241[j2] = true;
                continue;
            }
            if(class32 != null && class32.anInt358 >= 0)
            {
                int k2 = class32.anInt358;
                int j3 = anIntArray1152[k2];
                if(aBooleanArray1111[k2])
                    continue;
                if(anInt1180 >= 0)
                {
                    if(Class3.method241(anInt1180).method333() == 5)
                    {
                        aStringArray966[anInt1049] = (new StringBuilder()).append("Cast ").append(Class3.method241(anInt1180).method292()).append(" on").toString();
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@cya@").append(Class3.method247(j3).method292()).toString();
                        anIntArray1054[anInt1049] = 400;
                        anIntArray1154[anInt1049] = anIntArray1150[k2];
                        anIntArray1155[anInt1049] = anIntArray1151[k2];
                        anIntArray1117[anInt1049] = anIntArray1153[k2];
                        anIntArray1118[anInt1049] = anIntArray1152[k2];
                        anIntArray1119[anInt1049] = anInt1180;
                        anInt1049++;
                    }
                } else
                if(anInt1043 >= 0)
                {
                    aStringArray966[anInt1049] = (new StringBuilder()).append("Use ").append(aString1044).append(" with").toString();
                    aStringArray1109[anInt1049] = (new StringBuilder()).append("@cya@").append(Class3.method247(j3).method292()).toString();
                    anIntArray1054[anInt1049] = 410;
                    anIntArray1154[anInt1049] = anIntArray1150[k2];
                    anIntArray1155[anInt1049] = anIntArray1151[k2];
                    anIntArray1117[anInt1049] = anIntArray1153[k2];
                    anIntArray1118[anInt1049] = anIntArray1152[k2];
                    anIntArray1119[anInt1049] = anInt1043;
                    anInt1049++;
                } else
                {
                    if(!Class3.method247(j3).method295().equalsIgnoreCase("WalkTo"))
                    {
                        aStringArray966[anInt1049] = Class3.method247(j3).method295();
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@cya@").append(Class3.method247(j3).method292()).toString();
                        anIntArray1054[anInt1049] = 420;
                        anIntArray1154[anInt1049] = anIntArray1150[k2];
                        anIntArray1155[anInt1049] = anIntArray1151[k2];
                        anIntArray1117[anInt1049] = anIntArray1153[k2];
                        anIntArray1118[anInt1049] = anIntArray1152[k2];
                        anInt1049++;
                    }
                    if(!Class3.method247(j3).method296().equalsIgnoreCase("Examine"))
                    {
                        aStringArray966[anInt1049] = Class3.method247(j3).method296();
                        aStringArray1109[anInt1049] = (new StringBuilder()).append("@cya@").append(Class3.method247(j3).method292()).toString();
                        anIntArray1054[anInt1049] = 2400;
                        anIntArray1154[anInt1049] = anIntArray1150[k2];
                        anIntArray1155[anInt1049] = anIntArray1151[k2];
                        anIntArray1117[anInt1049] = anIntArray1153[k2];
                        anIntArray1118[anInt1049] = anIntArray1152[k2];
                        anInt1049++;
                    }
                    aStringArray966[anInt1049] = "Examine";
                    aStringArray1109[anInt1049] = (new StringBuilder()).append("@cya@").append(Class3.method247(j3).method292()).append(aClass31_1156.anInt292 != 5 && aClass31_1156.anInt292 > 3 ? "" : (new StringBuilder()).append(" @or1@(").append(j3).append(":").append(anIntArray1150[k2] + anInt1035).append(",").append(anIntArray1151[k2] + anInt1036).append(")").toString()).toString();
                    anIntArray1054[anInt1049] = 3400;
                    anIntArray1117[anInt1049] = j3;
                    anInt1049++;
                }
                aBooleanArray1111[k2] = true;
                continue;
            }
            if(l1 >= 0)
                l1 = class32.anIntArray359[l1] - 0x30d40;
            if(l1 >= 0)
                j = l1;
        }

        if(anInt1180 >= 0 && Class3.method241(anInt1180).method333() <= 1)
        {
            aStringArray966[anInt1049] = (new StringBuilder()).append("Cast ").append(Class3.method241(anInt1180).method292()).append(" on self").toString();
            aStringArray1109[anInt1049] = "";
            anIntArray1054[anInt1049] = 1000;
            anIntArray1117[anInt1049] = anInt1180;
            anInt1049++;
        }
        if(j != -1)
        {
            int k1 = j;
            if(anInt1180 >= 0)
            {
                if(Class3.method241(anInt1180).method333() == 6)
                {
                    aStringArray966[anInt1049] = (new StringBuilder()).append("Cast ").append(Class3.method241(anInt1180).method292()).append(" on ground").toString();
                    aStringArray1109[anInt1049] = "";
                    anIntArray1054[anInt1049] = 900;
                    anIntArray1154[anInt1049] = aClass17_1170.anIntArray119[k1];
                    anIntArray1155[anInt1049] = aClass17_1170.anIntArray120[k1];
                    anIntArray1117[anInt1049] = anInt1180;
                    anInt1049++;
                    return;
                }
            } else
            if(anInt1043 < 0)
            {
                aStringArray966[anInt1049] = "Walk Here";
                aStringArray1109[anInt1049] = "";
                anIntArray1054[anInt1049] = 920;
                anIntArray1154[anInt1049] = aClass17_1170.anIntArray119[k1];
                anIntArray1155[anInt1049] = aClass17_1170.anIntArray120[k1];
                anInt1049++;
            }
        }
    }

    public void method8()
    {
        String s = new String(aByteArray1238);
        anInt1228 = Integer.valueOf(s).intValue();
        int i = 0;
        for(int j = 0; j < 99; j++)
        {
            int l = j + 1;
            int i1 = (int)((double)l + 300D * Math.pow(2D, (double)l / 7D));
            i += i1;
            anIntArray1198[j] = (i & 0xffffffc) / 4;
        }

        super.anInt14 = 0;
        Applet_Sub1_Sub1.anInt762 = 1000;
        method64();
        if(aBoolean1197)
            return;
        aGraphics1206 = getGraphics();
        method13(50);
        aClass26_Sub1_1195 = new Class26_Sub1(anInt1246, anInt1247 + 12, 4000, this);
        aClass26_Sub1_1195.aMudclient837 = this;
        aClass26_Sub1_1195.method421(0, 0, anInt1246, anInt1247 + 12);
        Class30.aBoolean287 = false;
        aClass30_1018 = new Class30(aClass26_Sub1_1195, 5);
        int k = ((Class26) (aClass26_Sub1_1195)).anInt169 - 199;
        anInt1019 = aClass30_1018.method496(k, 60, 196, 90, 1, 500, true);
        aClass30_1249 = new Class30(aClass26_Sub1_1195, 5);
        anInt1250 = aClass30_1249.method496(k, 76, 196, 126, 1, 500, true);
        aClass30_1020 = new Class30(aClass26_Sub1_1195, 5);
        anInt1021 = aClass30_1020.method496(k, 60, 196, 263, 1, 500, true);
        method102();
        if(aBoolean1197)
            return;
        method103();
        if(aBoolean1197)
            return;
        aClass42_1199 = new Class42(aClass26_Sub1_1195, 15000, 15000, 10000);
        aClass42_1199.method597(anInt1246 / 2, anInt1247 / 2, anInt1246 / 2, anInt1247 / 2, anInt1246, anInt1248);
        aClass42_1199.anInt459 = 2400;
        aClass42_1199.anInt460 = 2400;
        aClass42_1199.anInt461 = 1;
        aClass42_1199.anInt462 = 2300;
        aClass42_1199.method626(-50, -10, -50);
        aClass17_1170 = new Class17(aClass42_1199, aClass26_Sub1_1195);
        method104();
        if(aBoolean1197)
            return;
        method65();
        if(aBoolean1197)
            return;
        method114();
        if(aBoolean1197)
        {
            return;
        } else
        {
            method21(100, "Starting game...");
            aBoolean1301 = true;
            aClass26_Sub1_1195.method418();
            method110();
            method137();
            method118();
            return;
        }
    }

    public void method101(int i, int j)
    {
        for(int k = i; k < i + j; k++)
            if(!aClass26_Sub1_1195.method419(k))
            {
                aBoolean1197 = true;
                return;
            }

    }

    public void method102()
    {
        method21(30, "Unpacking Media...");
        method101(2000, 1);
        method101(2001, 6);
        method101(2009, 1);
        method101(2010, 1);
        method101(2011, 3);
        method101(2014, 8);
        method101(2022, 1);
        method101(2024, 1);
        method101(2025, 2);
        method101(2100, 2);
        method101(2102, 4);
        method101(2106, 2);
        method101(3160, 7);
        method101(3150, 1);
        method101(3331, 1);
        method101(3332, 1);
        method101(3333, 1);
        method99(anInt1228, 50);
        int i = Class3.method233();
        for(int j = 1; i > 0; j++)
        {
            int k = i;
            i -= 30;
            if(k > 30)
                k = 30;
            method101(2150 + (j - 1) * 30, k);
        }

    }

    public void method103()
    {
        method21(45, "Unpacking Entities...");
        int i = 0;
label0:
        for(int j = 0; j < Class3.method238(); j++)
        {
            String s = Class3.method239(j).method338();
            for(int k = 0; k < j; k++)
                if(Class3.method239(k).method338().equalsIgnoreCase(s))
                {
                    Class3.method239(j).anInt91 = Class3.method239(k).method343();
                    continue label0;
                }

            method101(i, 15);
            if(Class3.method239(j).method341())
                method101(i + 15, 3);
            if(Class3.method239(j).method342())
                method101(i + 18, 9);
            Class3.method239(j).anInt91 = i;
            i += 27;
        }

    }

    public void method104()
    {
        method21(60, "Unpacking Textures...");
        aClass42_1199.method620(Class3.method237(), 7, 11);
        for(int i = 0; i < Class3.method237(); i++)
        {
            method101(3220 + i, 1);
            Class16 class16 = ((Class26) (aClass26_Sub1_1195)).aClass16Array167[3220 + i];
            int j = class16.method359() * class16.method360();
            int ai[] = class16.method358();
            int ai1[] = new int[32768];
            for(int k = 0; k < j; k++)
                ai1[((ai[k] & 0xf80000) >> 9) + ((ai[k] & 0xf800) >> 6) + ((ai[k] & 0xf8) >> 3)]++;

            int ai2[] = new int[256];
            ai2[0] = 0xff00ff;
            int ai3[] = new int[256];
            for(int l = 0; l < ai1.length; l++)
            {
                int i1 = ai1[l];
                if(i1 > ai3[255])
                {
                    int k1 = 1;
                    do
                    {
                        if(k1 >= 256)
                            break;
                        if(i1 > ai3[k1])
                        {
                            for(int i2 = 255; i2 > k1; i2--)
                            {
                                ai2[i2] = ai2[i2 - 1];
                                ai3[i2] = ai3[i2 - 1];
                            }

                            ai2[k1] = ((l & 0x7c00) << 9) + ((l & 0x3e0) << 6) + ((l & 0x1f) << 3) + 0x40404;
                            ai3[k1] = i1;
                            break;
                        }
                        k1++;
                    } while(true);
                }
                ai1[l] = -1;
            }

            byte abyte0[] = new byte[j];
            for(int j1 = 0; j1 < j; j1++)
            {
                int l1 = ai[j1];
                int j2 = ((l1 & 0xf80000) >> 9) + ((l1 & 0xf800) >> 6) + ((l1 & 0xf8) >> 3);
                int k2 = ai1[j2];
                if(k2 == -1)
                {
                    int l2 = 0x3b9ac9ff;
                    int i3 = l1 >> 16 & 0xff;
                    int j3 = l1 >> 8 & 0xff;
                    int k3 = l1 & 0xff;
                    for(int l3 = 0; l3 < 256; l3++)
                    {
                        int i4 = ai2[l3];
                        int j4 = i4 >> 16 & 0xff;
                        int k4 = i4 >> 8 & 0xff;
                        int l4 = i4 & 0xff;
                        int i5 = (i3 - j4) * (i3 - j4) + (j3 - k4) * (j3 - k4) + (k3 - l4) * (k3 - l4);
                        if(i5 < l2)
                        {
                            l2 = i5;
                            k2 = l3;
                        }
                    }

                    ai1[j2] = k2;
                }
                abyte0[j1] = (byte)k2;
            }

            aClass42_1199.method621(i, abyte0, ai2, class16.method351() / 64 - 1);
        }

    }

    public void method105()
    {
        if(anInt1180 >= 0 || anInt1043 >= 0)
        {
            aStringArray966[anInt1049] = "Cancel";
            aStringArray1109[anInt1049] = "";
            anIntArray1054[anInt1049] = 4000;
            anInt1049++;
        }
        for(int i = 0; i < anInt1049; i++)
            anIntArray1186[i] = i;

        boolean flag = false;
        while(!flag) 
        {
            flag = true;
            int k = 0;
            while(k < anInt1049 - 1) 
            {
                int i1 = anIntArray1186[k];
                int k1 = anIntArray1186[k + 1];
                if(anIntArray1054[i1] > anIntArray1054[k1])
                {
                    anIntArray1186[k] = k1;
                    anIntArray1186[k + 1] = i1;
                    flag = false;
                }
                k++;
            }
        }
        if(anInt1049 > 20)
            anInt1049 = 20;
        if(anInt1049 > 0)
        {
            int j = -1;
            int l = 0;
            do
            {
                if(l >= anInt1049)
                    break;
                if(aStringArray1109[anIntArray1186[l]] != null && aStringArray1109[anIntArray1186[l]].length() > 0)
                {
                    j = l;
                    break;
                }
                l++;
            } while(true);
            String s = null;
            if((anInt1043 >= 0 || anInt1180 >= 0) && anInt1049 == 1)
                s = "Choose a target";
            else
            if((anInt1043 >= 0 || anInt1180 >= 0) && anInt1049 > 1)
                s = (new StringBuilder()).append("@whi@").append(aStringArray966[anIntArray1186[0]]).append(" ").append(aStringArray1109[anIntArray1186[0]]).toString();
            else
            if(j != -1)
                s = (new StringBuilder()).append(aStringArray1109[anIntArray1186[j]]).append(": @whi@").append(aStringArray966[anIntArray1186[0]]).toString();
            if(anInt1049 == 2 && s != null)
                s = (new StringBuilder()).append(s).append("@whi@ / 1 more option").toString();
            if(anInt1049 > 2 && s != null)
                s = (new StringBuilder()).append(s).append("@whi@ / ").append(anInt1049 - 1).append(" more options").toString();
            if(s != null)
                method80(s, 6, 14, 1, 0xffff00);
            if(!aBoolean1063 && anInt1175 == 1 || aBoolean1063 && anInt1175 == 1 && anInt1049 == 1)
            {
                method88(anIntArray1186[0]);
                anInt1175 = 0;
                return;
            }
            if(!aBoolean1063 && anInt1175 == 2 || aBoolean1063 && anInt1175 == 1)
            {
                anInt1048 = (anInt1049 + 1) * 15;
                anInt1047 = aClass26_Sub1_1195.method466("Choose option", 1) + 5;
                for(int j1 = 0; j1 < anInt1049; j1++)
                {
                    int l1 = aClass26_Sub1_1195.method466((new StringBuilder()).append(aStringArray966[j1]).append(" ").append(aStringArray1109[j1]).toString(), 1) + 5;
                    if(l1 > anInt1047)
                        anInt1047 = l1;
                }

                anInt1045 = super.anInt31 - anInt1047 / 2;
                anInt1046 = super.anInt32 - 7;
                aBoolean1211 = true;
                if(anInt1045 < 0)
                    anInt1045 = 0;
                if(anInt1046 < 0)
                    anInt1046 = 0;
                if(anInt1045 + anInt1047 > anInt1291)
                    anInt1045 = anInt1291 - anInt1047;
                if(anInt1046 + anInt1048 > anInt1292)
                    anInt1046 = anInt1292 - anInt1048;
                anInt1175 = 0;
            }
        }
    }

    public void method42()
    {
        anInt1086 = 0;
        method121("@cya@Sorry, you can't logout at the moment", 3, 0);
    }

    public void method106(boolean flag)
    {
        int i = ((Class26) (aClass26_Sub1_1195)).anInt169 - 199;
        int j = 36;
        aClass26_Sub1_1195.method438(i - 49, 3, 2005);
        char c = '\304';
        char c1 = '\266';
        int k;
        int l = k = Class26.method434(160, 160, 160);
        if(anInt1251 == 0)
            l = Class26.method434(220, 220, 220);
        else
            k = Class26.method434(220, 220, 220);
        method76(i, j, c / 2, 24, l, 128);
        method76(i + c / 2, j, c / 2, 24, k, 128);
        method76(i, j + 24, c, c1 - 24, Class26.method434(220, 220, 220), 128);
        method77(i, j + 24, c, 0);
        method78(i + c / 2, j, 24, 0);
        method77(i, (j + c1) - 16, c, 0);
        method79("Friends", i + c / 4, j + 16, 4, 0);
        method79("Ignore", i + c / 4 + c / 2, j + 16, 4, 0);
        aClass30_1249.method498(anInt1250);
        String s = (new StringBuilder()).append("~").append(anInt1291 - 73).append("~").toString();
        if(anInt1251 == 0)
        {
            for(int i1 = 0; i1 < super.anInt772; i1++)
            {
                String s1;
                if(super.anIntArray774[i1] > 0)
                    s1 = "@gre@";
                else
                    s1 = "@red@";
                aClass30_1249.method500(anInt1250, i1, (new StringBuilder()).append(s1).append(Class35.method569(super.aLongArray773[i1])).append(s).append("@whi@Remove                      WWWWWWWWWW").toString());
            }

        }
        if(anInt1251 == 1)
        {
            for(int j1 = 0; j1 < super.anInt775; j1++)
                aClass30_1249.method500(anInt1250, j1, (new StringBuilder()).append("@yel@").append(Class35.method569(super.aLongArray776[j1])).append(s).append("@whi@Remove                   WWWWWWWWWW").toString());

        }
        aClass30_1249.method475();
        if(anInt1251 == 0)
        {
            int k1 = aClass30_1249.method507(anInt1250);
            if(k1 >= 0 && super.anInt31 < anInt1291 - 20)
                if(super.anInt31 > anInt1291 - 75)
                    method79((new StringBuilder()).append("Remove ").append(Class35.method569(super.aLongArray773[k1])).toString(), i + c / 2, j + 35, 1, 0xffffff);
                else
                if(super.anIntArray774[k1] > 0)
                    method79((new StringBuilder()).append("Message ").append(Class35.method569(super.aLongArray773[k1])).toString(), i + c / 2, j + 35, 1, 0xffffff);
                else
                    method79((new StringBuilder()).append(Class35.method569(super.aLongArray773[k1])).append(" is @red@offline").toString(), i + c / 2, j + 35, 1, 0xffffff);
            int k2;
            if(super.anInt31 > i && super.anInt31 < i + c && super.anInt32 > (j + c1) - 16 && super.anInt32 < j + c1)
                k2 = 0xffff00;
            else
                k2 = 0xffffff;
            method79("Add Friend", i + c / 2, (j + c1) - 3, 1, k2);
        }
        if(anInt1251 == 1)
        {
            int l1 = aClass30_1249.method507(anInt1250);
            if(l1 >= 0 && super.anInt31 < anInt1291 - 10 && super.anInt31 > anInt1291 - 60 && super.anInt31 > anInt1291 - 75)
                method79((new StringBuilder()).append("Remove ").append(Class35.method569(super.aLongArray776[l1])).toString(), i + c / 2, j + 35, 1, 0xffffff);
            int l2;
            if(super.anInt31 > i && super.anInt31 < i + c && super.anInt32 > (j + c1) - 16 && super.anInt32 < j + c1)
                l2 = 0xffff00;
            else
                l2 = 0xffffff;
            method79("Add Ignore", i + c / 2, (j + c1) - 3, 1, l2);
        }
        if(!flag)
            return;
        i = super.anInt31 - (((Class26) (aClass26_Sub1_1195)).anInt169 - 199);
        j = super.anInt32 - 36;
        if(i >= 0 && j >= 0 && i < 196 && j < 182)
        {
            aClass30_1249.method472(i + (((Class26) (aClass26_Sub1_1195)).anInt169 - 199), j + 36, super.anInt34, super.anInt33);
            if(j <= 24 && anInt1175 == 1)
                if(i < 98 && anInt1251 == 1)
                {
                    anInt1251 = 0;
                    aClass30_1249.method499(anInt1250, 0);
                } else
                if(i > 98 && anInt1251 == 0)
                {
                    anInt1251 = 1;
                    aClass30_1249.method499(anInt1250, 0);
                }
            if(anInt1175 == 1 && anInt1251 == 0)
            {
                int i2 = aClass30_1249.method507(anInt1250);
                if(i2 >= 0 && super.anInt31 < anInt1291 - 20)
                    if(super.anInt31 > anInt1291 - 75)
                        method35(super.aLongArray773[i2]);
                    else
                    if(super.anIntArray774[i2] != 0)
                    {
                        anInt1059 = 2;
                        aLong1252 = super.aLongArray773[i2];
                        super.aString40 = "";
                        super.aString41 = "";
                    }
            }
            if(anInt1175 == 1 && anInt1251 == 1)
            {
                int j2 = aClass30_1249.method507(anInt1250);
                if(j2 >= 0 && super.anInt31 < anInt1291 - 20 && super.anInt31 > anInt1291 - 75)
                    method33(super.aLongArray776[j2]);
            }
            if(j > 166 && anInt1175 == 1 && anInt1251 == 0)
            {
                anInt1059 = 1;
                super.aString38 = "";
                super.aString39 = "";
            }
            if(j > 166 && anInt1175 == 1 && anInt1251 == 1)
            {
                anInt1059 = 3;
                super.aString38 = "";
                super.aString39 = "";
            }
            anInt1175 = 0;
        }
    }

    public boolean method107(int i, int j)
    {
        if(anInt1237 != 0)
        {
            aClass17_1170.aBoolean122 = false;
            return false;
        }
        aBoolean1179 = false;
        i += anInt1005;
        j += anInt1006;
        if(anInt1008 == anInt1037 && i > anInt1075 && i < anInt1077 && j > anInt1076 && j < anInt1078)
        {
            aClass17_1170.aBoolean122 = true;
            return false;
        }
        method79("Loading...", anInt1291 / 2, anInt1292 / 2, 1, 0xffffff);
        method71();
        aClass26_Sub1_1195.method423(aGraphics1206, 0, 0);
        int k = anInt1035;
        int l = anInt1036;
        int i1 = (i + 24) / 48;
        int j1 = (j + 24) / 48;
        anInt1008 = anInt1037;
        anInt1035 = i1 * 48 - 48;
        anInt1036 = j1 * 48 - 48;
        anInt1075 = i1 * 48 - 32;
        anInt1076 = j1 * 48 - 32;
        anInt1077 = i1 * 48 + 32;
        anInt1078 = j1 * 48 + 32;
        aClass17_1170.method368(i, j, anInt1008);
        anInt1035 -= anInt1005;
        anInt1036 -= anInt1006;
        int k1 = anInt1035 - k;
        int l1 = anInt1036 - l;
        for(int i2 = 0; i2 < anInt1242;)
        {
            anIntArray1150[i2] -= k1;
            anIntArray1151[i2] -= l1;
            int j3 = anIntArray1150[i2];
            int l3 = anIntArray1151[i2];
            int l4 = anIntArray1152[i2];
            int j5 = anIntArray1153[i2];
            Class32 class32 = aClass32Array1081[i2];
            try
            {
                int l5 = anIntArray1153[i2];
                int i6;
                int j6;
                if(l5 == 0 || l5 == 4)
                {
                    i6 = Class3.method247(l4).method298();
                    j6 = Class3.method247(l4).method299();
                } else
                {
                    j6 = Class3.method247(l4).method298();
                    i6 = Class3.method247(l4).method299();
                }
                int k6 = ((j3 + j3 + i6) * 128) / 2;
                int l6 = ((l3 + l3 + j6) * 128) / 2;
                if(j3 < 0 || l3 < 0 || j3 >= 96 || l3 >= 96)
                    continue;
                aClass42_1199.method584(class32);
                class32.method525(k6, -aClass17_1170.method366(k6, l6), l6);
                aClass17_1170.method379(j3, l3, l4, j5);
                if(l4 == 74)
                    class32.method524(0, -480, 0);
                continue;
            }
            catch(RuntimeException runtimeexception1)
            {
                System.out.println((new StringBuilder()).append("Loc Error: ").append(runtimeexception1.getMessage()).toString());
                System.out.println((new StringBuilder()).append("i:").append(i2).append(" obj:").append(class32).toString());
                runtimeexception1.printStackTrace();
                i2++;
            }
        }

        for(int j2 = 0; j2 < anInt1220;)
        {
            anIntArray1207[j2] -= k1;
            anIntArray1208[j2] -= l1;
            int k3 = anIntArray1207[j2];
            int i4 = anIntArray1208[j2];
            int i5 = anIntArray1222[j2];
            int k5 = anIntArray1221[j2];
            try
            {
                aClass17_1170.method375(k3, i4, k5, i5);
                Class32 class32_1 = method90(k3, i4, k5, i5, j2);
                aClass32Array986[j2] = class32_1;
                continue;
            }
            catch(RuntimeException runtimeexception)
            {
                System.out.println((new StringBuilder()).append("Bound Error: ").append(runtimeexception.getMessage()).toString());
                runtimeexception.printStackTrace();
                j2++;
            }
        }

        for(int k2 = 0; k2 < anInt1163; k2++)
        {
            anIntArray1227[k2] -= k1;
            anIntArray1229[k2] -= l1;
        }

        for(int l2 = 0; l2 < anInt976; l2++)
        {
            Class31 class31 = aClass31Array1171[l2];
            class31.anInt298 -= k1 * 128;
            class31.anInt299 -= l1 * 128;
            for(int j4 = 0; j4 <= class31.anInt304; j4++)
            {
                class31.anIntArray305[j4] -= k1 * 128;
                class31.anIntArray306[j4] -= l1 * 128;
            }

        }

        for(int i3 = 0; i3 < anInt1003; i3++)
        {
            Class31 class31_1 = aClass31Array991[i3];
            class31_1.anInt298 -= k1 * 128;
            class31_1.anInt299 -= l1 * 128;
            for(int k4 = 0; k4 <= class31_1.anInt304; k4++)
            {
                class31_1.anIntArray305[k4] -= k1 * 128;
                class31_1.anIntArray306[k4] -= l1 * 128;
            }

        }

        aClass17_1170.aBoolean122 = true;
        return true;
    }

    public void method108(boolean flag)
    {
        int i = ((Class26) (aClass26_Sub1_1195)).anInt169 - 199;
        int j = 36;
        aClass26_Sub1_1195.method438(i - 49, 3, 2004);
        char c = '\304';
        char c1 = '\266';
        int k;
        int l = k = Class26.method434(160, 160, 160);
        if(anInt1022 == 0)
            l = Class26.method434(220, 220, 220);
        else
            k = Class26.method434(220, 220, 220);
        method76(i, j, c / 2, 24, l, 128);
        method76(i + c / 2, j, c / 2, 24, k, 128);
        method76(i, j + 24, c, 90, Class26.method434(220, 220, 220), 128);
        method76(i, j + 24 + 90, c, c1 - 90 - 24, Class26.method434(160, 160, 160), 128);
        method77(i, j + 24, c, 0);
        method78(i + c / 2, j, 24, 0);
        method77(i, j + 113, c, 0);
        method79("Magic", i + c / 4, j + 16, 4, 0);
        method79("Prayer", i + c / 4 + c / 2, j + 16, 4, 0);
        if(anInt1022 == 0)
        {
            aClass30_1018.method498(anInt1019);
            int i1 = 0;
            for(int i2 = 0; i2 < Class3.method240(); i2++)
            {
                String s = "@yel@";
                Iterator iterator = Class3.method241(i2).method335().iterator();
                do
                {
                    if(!iterator.hasNext())
                        break;
                    java.util.Map.Entry entry = (java.util.Map.Entry)iterator.next();
                    if(method143(((Integer)entry.getKey()).intValue(), ((Integer)entry.getValue()).intValue()))
                        continue;
                    s = "@whi@";
                    break;
                } while(true);
                int i4 = anIntArray1034[6];
                if(Class3.method241(i2).method332() > i4)
                    s = "@bla@";
                aClass30_1018.method500(anInt1019, i1++, (new StringBuilder()).append(s).append("Level ").append(Class3.method241(i2).method332()).append(": ").append(Class3.method241(i2).method292()).toString());
            }

            aClass30_1018.method475();
            int j2 = aClass30_1018.method507(anInt1019);
            if(j2 != -1)
            {
                method80((new StringBuilder()).append("Level ").append(Class3.method241(j2).method332()).append(": ").append(Class3.method241(j2).method292()).toString(), i + 2, j + 124, 1, 0xffff00);
                method80(Class3.method241(j2).method293(), i + 2, j + 136, 0, 0xffffff);
                int k3 = 0;
                for(Iterator iterator1 = Class3.method241(j2).method335().iterator(); iterator1.hasNext();)
                {
                    java.util.Map.Entry entry1 = (java.util.Map.Entry)iterator1.next();
                    int j4 = ((Integer)entry1.getKey()).intValue();
                    aClass26_Sub1_1195.method438(i + 2 + k3 * 44, j + 150, 2150 + Class3.method236(j4).method302());
                    int k4 = method58(j4);
                    int l4 = ((Integer)entry1.getValue()).intValue();
                    String s2 = "@red@";
                    if(method143(j4, l4))
                        s2 = "@gre@";
                    method80((new StringBuilder()).append(s2).append(k4).append("/").append(l4).toString(), i + 2 + k3 * 44, j + 150, 1, 0xffffff);
                    k3++;
                }

            }
        }
        if(anInt1022 == 1)
        {
            aClass30_1018.method498(anInt1019);
            int j1 = 0;
            for(int k2 = 0; k2 < Class3.method242(); k2++)
            {
                String s1 = "@whi@";
                if(Class3.method243(k2).method330() > anIntArray1112[5])
                    s1 = "@bla@";
                if(aBooleanArray996[k2])
                    s1 = "@gre@";
                aClass30_1018.method500(anInt1019, j1++, (new StringBuilder()).append(s1).append("Level ").append(Class3.method243(k2).method330()).append(": ").append(Class3.method243(k2).method292()).toString());
            }

            aClass30_1018.method475();
            int l2 = aClass30_1018.method507(anInt1019);
            if(l2 != -1)
            {
                method79((new StringBuilder()).append("Level ").append(Class3.method243(l2).method330()).append(": ").append(Class3.method243(l2).method292()).toString(), i + c / 2, j + 130, 1, 0xffff00);
                method79(Class3.method243(l2).method293(), i + c / 2, j + 145, 0, 0xffffff);
                method79((new StringBuilder()).append("Drain rate: ").append(Class3.method243(l2).method331()).toString(), i + c / 2, j + 160, 1, 0);
            }
        }
        if(!flag)
            return;
        i = super.anInt31 - (((Class26) (aClass26_Sub1_1195)).anInt169 - 199);
        j = super.anInt32 - 36;
        if(i >= 0 && j >= 0 && i < 196 && j < 182)
        {
            aClass30_1018.method472(i + (((Class26) (aClass26_Sub1_1195)).anInt169 - 199), j + 36, super.anInt34, super.anInt33);
            if(j <= 24 && anInt1175 == 1)
                if(i < 98 && anInt1022 == 1)
                {
                    anInt1022 = 0;
                    anInt1280 = aClass30_1018.method508(anInt1019);
                    aClass30_1018.method499(anInt1019, anInt1281);
                } else
                if(i > 98 && anInt1022 == 0)
                {
                    anInt1022 = 1;
                    anInt1281 = aClass30_1018.method508(anInt1019);
                    aClass30_1018.method499(anInt1019, anInt1280);
                }
            if(anInt1175 == 1 && anInt1022 == 0)
            {
                int k1 = aClass30_1018.method507(anInt1019);
                if(k1 != -1)
                {
                    int i3 = anIntArray1034[6];
                    if(Class3.method241(k1).method332() > i3)
                    {
                        method121("Your magic ability is not high enough for this spell", 3, 0);
                    } else
                    {
                        int l3 = 0;
                        Iterator iterator2 = Class3.method241(k1).method335().iterator();
                        do
                        {
                            if(!iterator2.hasNext())
                                break;
                            java.util.Map.Entry entry2 = (java.util.Map.Entry)iterator2.next();
                            if(!method143(((Integer)entry2.getKey()).intValue(), ((Integer)entry2.getValue()).intValue()))
                            {
                                method121("You don't have all the reagents you need for this spell", 3, 0);
                                l3 = -1;
                                break;
                            }
                            l3++;
                        } while(true);
                        if(l3 == Class3.method241(k1).method334())
                        {
                            anInt1180 = k1;
                            anInt1043 = -1;
                        }
                    }
                }
            }
            if(anInt1175 == 1 && anInt1022 == 1)
            {
                int l1 = aClass30_1018.method507(anInt1019);
                if(l1 != -1)
                {
                    int j3 = anIntArray1112[5];
                    if(Class3.method243(l1).method330() > j3)
                        method121("Your prayer ability is not high enough for this prayer", 3, 0);
                    else
                    if(anIntArray1034[5] == 0)
                        method121("You have run out of prayer points. Return to a church to recharge", 3, 0);
                    else
                    if(aBooleanArray996[l1])
                    {
                        super.aClass33_Sub1_767.method558(23);
                        super.aClass33_Sub1_767.method542(l1);
                        super.aClass33_Sub1_767.method541();
                        aBooleanArray996[l1] = false;
                        method127("prayeroff", false);
                    } else
                    {
                        super.aClass33_Sub1_767.method558(22);
                        super.aClass33_Sub1_767.method542(l1);
                        super.aClass33_Sub1_767.method541();
                        aBooleanArray996[l1] = true;
                        method127("prayeron", false);
                    }
                }
            }
            anInt1175 = 0;
        }
    }

    public void method15(int i)
    {
        if(aBoolean1301)
        {
            switch(i)
            {
            case 27: // '\033'
                if(aBoolean1289)
                {
                    aBoolean1289 = false;
                    method144();
                    aBoolean1288 = false;
                    super.aClass33_Sub1_767.method558(70);
                    super.aClass33_Sub1_767.method556("userpressedescape");
                    super.aClass33_Sub1_767.method541();
                }
                if(aBoolean1200)
                    aBoolean1200 = false;
                if(aBoolean985)
                    aBoolean985 = false;
                if(aBoolean1236)
                {
                    aBoolean1236 = false;
                    super.aClass33_Sub1_767.method558(41);
                    super.aClass33_Sub1_767.method541();
                }
                if(aBoolean1193)
                {
                    aBoolean1193 = false;
                    super.aClass33_Sub1_767.method558(41);
                    super.aClass33_Sub1_767.method541();
                }
                if(aBoolean1167)
                {
                    aBoolean1167 = false;
                    super.aClass33_Sub1_767.method558(41);
                    super.aClass33_Sub1_767.method541();
                }
                if(aBoolean1204)
                {
                    aBoolean1204 = false;
                    super.aClass33_Sub1_767.method558(41);
                    super.aClass33_Sub1_767.method541();
                }
                if(aBoolean1093)
                    aBoolean1093 = false;
                if(aBoolean1030)
                    aBoolean1030 = false;
                if(anInt1025 != 0)
                    anInt1025 = 0;
                if(anInt1059 != 0)
                    anInt1059 = 0;
                if(aBoolean1302)
                    aBoolean1302 = !aBoolean1302;
                if(aBoolean1305)
                    aBoolean1305 = !aBoolean1305;
                break;

            case 1004: 
                if(anInt1176 < 350)
                    anInt1176 += 25;
                else
                    anInt1176 -= 25;
                break;

            case 1005: 
                if(anInt1176 > 2500)
                    anInt1176 -= 25;
                else
                    anInt1176 += 25;
                break;

            case 1002: 
                aClass30_1087.method502(anInt1089, aString1275);
                break;

            case 1003: 
                aClass30_1087.method502(anInt1089, "");
                break;

            case 1018: 
                aBoolean1286 = !aBoolean1286;
                if(aBoolean1286)
                {
                    try
                    {
                        aLinkedList1295.clear();
                        File file = method54(true);
                        Class44 class44 = new Class44(anInt1246, anInt1247 + 11, 5F, aLinkedList1295, file.getAbsolutePath(), "video.quicktime");
                        method121("@gre@RSCE:@whi@ Recording movie...", 3, 0);
                        (new Thread(class44)).start();
                    }
                    catch(Exception exception)
                    {
                        System.out.println(exception);
                    }
                } else
                {
                    aLinkedList1295.add(null);
                    method121("@gre@RSCE:@whi@ Movie saved", 3, 0);
                }
                break;

            case 1019: 
                method55(true);
                break;

            case 1009: 
                aBoolean1287 = !aBoolean1287;
                if(aBoolean1287)
                    method44("@gre@RSCE:@whi@ Combat Menu:@gre@ ON");
                else
                    method44("@gre@RSCE:@whi@ Combat Menu:@red@ OFF");
                break;
            }
            if(anInt1015 == 0)
            {
                if(anInt994 == 0)
                    aClass30_1082.method474(i);
                if(anInt994 == 1)
                    aClass30_1145.method474(i);
                if(anInt994 == 2)
                    aClass30_1079.method474(i);
            }
            if(anInt1015 == 1)
            {
                if(aBoolean1055)
                {
                    aClass30_1216.method474(i);
                    return;
                }
                if(anInt1059 == 0 && anInt1025 == 0 && !aBoolean1305)
                    aClass30_1087.method474(i);
            }
        }
    }

    public void method109()
    {
        if(anInt1175 != 0)
        {
            anInt1175 = 0;
            int i = super.anInt31 - (anInt1291 - 411) / 2;
            int k = super.anInt32 - (anInt1292 - 247) / 2;
            if(i >= 0 && k >= 12 && i < anInt1291 / 2 + 206 && k < anInt1292 / 2 + 124)
            {
                int i1 = 0;
                for(int k1 = 0; k1 < 5; k1++)
                {
                    for(int j2 = 0; j2 < 8; j2++)
                    {
                        int j3 = 7 + j2 * 49;
                        int l3 = 28 + k1 * 34;
                        if(i > j3 && i < j3 + 49 && k > l3 && k < l3 + 34 && anIntArray1120[i1] != -1)
                        {
                            anInt1232 = i1;
                            anInt1233 = anIntArray1120[i1];
                        }
                        i1++;
                    }

                }

                if(anInt1232 >= 0)
                {
                    int l1 = anIntArray1120[anInt1232];
                    if(l1 != -1)
                    {
                        if(anIntArray1121[anInt1232] > 0 && i > 298 && k >= 204 && i < 408 && k <= 215)
                        {
                            int k2 = (anInt1218 * Class3.method236(l1).method303()) / 100;
                            super.aClass33_Sub1_767.method558(65);
                            super.aClass33_Sub1_767.method546(anIntArray1120[anInt1232]);
                            super.aClass33_Sub1_767.method544(k2);
                            super.aClass33_Sub1_767.method541();
                        }
                        if(method58(l1) > 0 && i > 2 && k >= 229 && i < 112 && k <= 240)
                        {
                            int l2 = (anInt1217 * Class3.method236(l1).method303()) / 100;
                            super.aClass33_Sub1_767.method558(66);
                            super.aClass33_Sub1_767.method546(anIntArray1120[anInt1232]);
                            super.aClass33_Sub1_767.method544(l2);
                            super.aClass33_Sub1_767.method541();
                        }
                    }
                }
            } else
            {
                super.aClass33_Sub1_767.method558(67);
                super.aClass33_Sub1_767.method541();
                aBoolean1200 = false;
                return;
            }
        }
        int j = anInt1291 / 2 - 204;
        int l = anInt1292 / 2 - 123;
        aClass26_Sub1_1195.method428(j, l, 408, 12, 192);
        int j1 = 0x989898;
        method76(j, l + 12, 408, 17, j1, 160);
        method76(j, l + 29, 8, 170, j1, 160);
        method76(j + 399, l + 29, 9, 170, j1, 160);
        method76(j, l + 199, 408, 47, j1, 160);
        method80("Buy / Sell", j + 1, l + 10, 1, 0xffffff);
        int i2 = 0xffffff;
        if(super.anInt31 > j + 320 && super.anInt32 >= l && super.anInt31 < j + 408 && super.anInt32 < l + 12)
            i2 = 0xff0000;
        aClass26_Sub1_1195.method457("Close Window", j + 406, l + 10, 1, i2);
        method80("Shop's Stock", j + 2, l + 24, 1, 65280);
        method80("Inventory Amount", j + 135, l + 24, 1, 65535);
        method80((new StringBuilder()).append("Your money: ").append(method69((new StringBuilder()).append("").append(method58(10)).toString())).append("GP").toString(), j + 246, l + 24, 1, 0xffff00);
        int i3 = 0xd0d0d0;
        int k3 = 0;
        for(int i4 = 0; i4 < 5; i4++)
        {
            for(int k4 = 0; k4 < 8; k4++)
            {
                int j5 = j + 7 + k4 * 49;
                int i6 = l + 28 + i4 * 34;
                if(anInt1232 == k3)
                    method76(j5, i6, 49, 34, 0xff0000, 160);
                else
                    method76(j5, i6, 49, 34, i3, 160);
                aClass26_Sub1_1195.method429(j5, i6, 50, 35, 0);
                if(anIntArray1120[k3] != -1)
                {
                    aClass26_Sub1_1195.method452(j5, i6, 48, 32, 2150 + Class3.method236(anIntArray1120[k3]).method302(), Class3.method236(anIntArray1120[k3]).method306(), 0, 0, false);
                    method80(String.valueOf(anIntArray1121[k3]), j5 + 1, i6 + 10, 1, 65280);
                    aClass26_Sub1_1195.method457(String.valueOf(method58(anIntArray1120[k3])), j5 + 47, i6 + 10, 1, 65535);
                }
                k3++;
            }

        }

        method77(j + 5, l + 222, 398, 0);
        if(anInt1232 == -1)
        {
            method79("Select an object to buy or sell", j + 204, l + 214, 3, 0xffff00);
            return;
        }
        int j4 = anIntArray1120[anInt1232];
        if(j4 != -1)
        {
            if(anIntArray1121[anInt1232] > 0)
            {
                int l4 = (anInt1218 * Class3.method236(j4).method303()) / 100;
                method80((new StringBuilder()).append("Buy a new ").append(Class3.method236(j4).method292()).append(" for ").append(l4).append("gp").toString(), j + 2, l + 214, 1, 0xffff00);
                int k5 = 0xffffff;
                if(super.anInt31 > j + 378 && super.anInt32 >= l + 204 && super.anInt31 < j + 408 && super.anInt32 <= l + 215)
                    k5 = 0xff0000;
                aClass26_Sub1_1195.method457("Buy", j + 405, l + 214, 3, k5);
            } else
            {
                method79("This item is not currently available to buy", j + 204, l + 214, 3, 0xffff00);
            }
            if(method58(j4) > 0)
            {
                int i5 = (anInt1217 * Class3.method236(j4).method303()) / 100;
                aClass26_Sub1_1195.method457((new StringBuilder()).append("Sell your ").append(Class3.method236(j4).method292()).append(" for ").append(i5).append("gp").toString(), j + 405, l + 239, 1, 0xffff00);
                int l5 = 0xffffff;
                if(super.anInt31 > j + 2 && super.anInt32 >= l + 229 && super.anInt31 < j + 30 && super.anInt32 <= l + 240)
                    l5 = 0xff0000;
                method80("Sell", j + 2, l + 239, 3, l5);
                return;
            }
            method79("You do not have any of this item to sell", j + 204, l + 239, 3, 0xffff00);
        }
    }

    public void method110()
    {
        aClass30_1087 = new Class30(aClass26_Sub1_1195, 10);
        anInt1088 = aClass30_1087.method493(5, anInt1292 - 65, anInt1291 - 14, 56, 1, 20, true);
        anInt1089 = aClass30_1087.method494(7, anInt1292 - 10, anInt1291 - 14, 14, 1, 80, false, true);
        anInt1090 = aClass30_1087.method493(5, anInt1292 - 65, anInt1291 - 14, 56, 1, 20, true);
        anInt1091 = aClass30_1087.method493(5, anInt1292 - 65, anInt1291 - 14, 56, 1, 20, true);
        aClass30_1087.method506(anInt1089);
    }

    public byte[] method111(String s)
    {
        return super.method23(getClass().getClassLoader().getResourceAsStream((new StringBuilder()).append("resources/").append(s).toString()));
    }

    public void method112(boolean flag)
    {
        int i = ((Class26) (aClass26_Sub1_1195)).anInt169 - 199;
        int j = 36;
        aClass26_Sub1_1195.method438(i - 49, 3, 2006);
        char c = '\304';
        method76(i, 36, c, 65, Class26.method434(181, 181, 181), 160);
        method76(i, 101, c, 80, Class26.method434(201, 201, 201), 160);
        method76(i, 181, c, 95, Class26.method434(181, 181, 181), 160);
        method76(i, 276, c, 40, Class26.method434(201, 201, 201), 160);
        int k = i + 3;
        int l = j + 15;
        method80("Game Options:", k, l, 1, 0);
        l += 15;
        if(aBoolean960)
            method80("Camera Rotate: @red@Auto", k, l, 1, 0xffffff);
        else
            method80("Camera Rotate: @gre@Manual", k, l, 1, 0xffffff);
        l += 15;
        if(aBoolean1063)
            method80("Mouse Buttons: @red@One", k, l, 1, 0xffffff);
        else
            method80("Mouse Buttons: @gre@Two", k, l, 1, 0xffffff);
        l += 15;
        if(aBoolean1210)
            method80("Sound Effects: @red@Off", k, l, 1, 0xffffff);
        else
            method80("Sound Effects: @gre@On", k, l, 1, 0xffffff);
        l += 15;
        method80("Client Options:", k, l, 1, 0);
        l += 15;
        if(aBoolean1282)
            method80("Hide Roofs: @gre@Show", k, l, 1, 0xffffff);
        else
            method80("Hide Roofs: @red@Hide", k, l, 1, 0xffffff);
        l += 15;
        if(aBoolean1283)
            method80("Auto Screenshots: @gre@On", k, l, 1, 0xffffff);
        else
            method80("Auto Screenshots: @red@Off", k, l, 1, 0xffffff);
        l += 15;
        if(anInt953 == 0)
            method80("Fightmode Selector: @gre@Always", k, l, 1, 0xffffff);
        else
        if(anInt953 == 1)
            method80("Fightmode Selector: @yel@In Combat", k, l, 1, 0xffffff);
        else
            method80("Fightmode Selector: @red@Never", k, l, 1, 0xffffff);
        l += 15;
        if(aBoolean1270)
            method80("Kill Notify: @yel@Coming Soon!", k, l, 1, 0xffffff);
        else
            method80("Kill Notify: @yel@Coming Soon!", k, l, 1, 0xffffff);
        l += 15;
        method80("Privacy Settings: Applied to people", i + 3, l, 1, 0);
        l += 15;
        method80("not on your friends list:", i + 3, l, 1, 0);
        l += 15;
        if(super.aBoolean777)
            method80("Chat Messages: @gre@Allowed", i + 3, l, 1, 0xffffff);
        else
            method80("Chat Messages: @red@Blocked", i + 3, l, 1, 0xffffff);
        l += 15;
        if(super.aBoolean779)
            method80("Private Messages: @gre@Allowed", i + 3, l, 1, 0xffffff);
        else
            method80("Private Messages: @red@Blocked", i + 3, l, 1, 0xffffff);
        l += 15;
        if(super.aBoolean780)
            method80("Trade Requests: @gre@Allowed", i + 3, l, 1, 0xffffff);
        else
            method80("Trade Requests: @red@Blocked", i + 3, l, 1, 0xffffff);
        l += 15;
        if(super.aBoolean781)
            method80("Duel Requests: @gre@Allowed", i + 3, l, 1, 0xffffff);
        else
            method80("Duel Requests: @red@Blocked", i + 3, l, 1, 0xffffff);
        l += 15;
        if(super.aBoolean778)
            method80("Global Chat: @gre@Allowed", i + 3, l, 1, 0xffffff);
        else
            method80("Global Chat: @red@Blocked", i + 3, l, 1, 0xffffff);
        l += 10;
        l += 5;
        l += 15;
        int i1 = 0xffffff;
        if(super.anInt31 > k && super.anInt31 < k + c && super.anInt32 > l - 12 && super.anInt32 < l + 4)
            i1 = 0xffff00;
        method80("Logout RSCEmulation", i + 3, l, 1, i1);
        if(!flag)
            return;
        i = super.anInt31 - (((Class26) (aClass26_Sub1_1195)).anInt169 - 199);
        j = super.anInt32 - 36;
        if(i >= 0 && j >= 0 && i < 196 && j < 280)
        {
            int j1 = ((Class26) (aClass26_Sub1_1195)).anInt169 - 199;
            char c1 = '\304';
            int k1 = j1 + 3;
            int l1 = 66;
            if(super.anInt31 > k1 && super.anInt31 < k1 + c1 && super.anInt32 > l1 - 12 && super.anInt32 < l1 + 4 && anInt1175 == 1)
            {
                aBoolean960 = !aBoolean960;
                super.aClass33_Sub1_767.method558(15);
                super.aClass33_Sub1_767.method542(aBoolean960 ? 5 : 0);
                super.aClass33_Sub1_767.method541();
            }
            l1 += 15;
            if(super.anInt31 > k1 && super.anInt31 < k1 + c1 && super.anInt32 > l1 - 12 && super.anInt32 < l1 + 4 && anInt1175 == 1)
            {
                aBoolean1063 = !aBoolean1063;
                super.aClass33_Sub1_767.method558(15);
                super.aClass33_Sub1_767.method542(aBoolean1063 ? 1 : 6);
                super.aClass33_Sub1_767.method541();
            }
            l1 += 15;
            if(super.anInt31 > k1 && super.anInt31 < k1 + c1 && super.anInt32 > l1 - 12 && super.anInt32 < l1 + 4 && anInt1175 == 1)
            {
                aBoolean1210 = !aBoolean1210;
                super.aClass33_Sub1_767.method558(15);
                super.aClass33_Sub1_767.method542(aBoolean1210 ? 2 : 7);
                super.aClass33_Sub1_767.method541();
            }
            l1 += 30;
            if(super.anInt31 > k1 && super.anInt31 < k1 + c1 && super.anInt32 > l1 - 12 && super.anInt32 < l1 + 4 && anInt1175 == 1)
            {
                aBoolean1282 = !aBoolean1282;
                super.aClass33_Sub1_767.method558(15);
                super.aClass33_Sub1_767.method542(aBoolean1282 ? 3 : 8);
                super.aClass33_Sub1_767.method541();
            }
            l1 += 15;
            if(super.anInt31 > k1 && super.anInt31 < k1 + c1 && super.anInt32 > l1 - 12 && super.anInt32 < l1 + 4 && anInt1175 == 1)
            {
                aBoolean1283 = !aBoolean1283;
                super.aClass33_Sub1_767.method558(15);
                super.aClass33_Sub1_767.method542(aBoolean1283 ? 9 : 4);
                super.aClass33_Sub1_767.method541();
            }
            l1 += 15;
            if(super.anInt31 > k1 && super.anInt31 < k1 + c1 && super.anInt32 > l1 - 12 && super.anInt32 < l1 + 4 && anInt1175 == 1)
            {
                super.aClass33_Sub1_767.method558(15);
                if(anInt953 == 0)
                {
                    anInt953++;
                    super.aClass33_Sub1_767.method542(11);
                } else
                if(anInt953 == 1)
                {
                    anInt953++;
                    super.aClass33_Sub1_767.method542(12);
                } else
                {
                    anInt953 = 0;
                    super.aClass33_Sub1_767.method542(10);
                }
                super.aClass33_Sub1_767.method541();
            }
            l1 += 15;
            if(super.anInt31 > k1 && super.anInt31 < k1 + c1 && super.anInt32 > l1 - 12 && super.anInt32 < l1 + 4 && anInt1175 == 1)
            {
                aBoolean1270 = !aBoolean1270;
                super.aClass33_Sub1_767.method558(15);
                super.aClass33_Sub1_767.method542(aBoolean1270 ? 13 : 14);
                super.aClass33_Sub1_767.method541();
            }
            l1 += 45;
            if(super.anInt31 > k1 && super.anInt31 < k1 + c1 && super.anInt32 > l1 - 12 && super.anInt32 < l1 + 4 && anInt1175 == 1)
            {
                super.aBoolean777 = !super.aBoolean777;
                super.aClass33_Sub1_767.method558(16);
                super.aClass33_Sub1_767.method542(super.aBoolean777 ? 0 : 5);
                super.aClass33_Sub1_767.method541();
            }
            l1 += 15;
            if(super.anInt31 > k1 && super.anInt31 < k1 + c1 && super.anInt32 > l1 - 12 && super.anInt32 < l1 + 4 && anInt1175 == 1)
            {
                super.aBoolean779 = !super.aBoolean779;
                super.aClass33_Sub1_767.method558(16);
                super.aClass33_Sub1_767.method542(super.aBoolean779 ? 1 : 6);
                super.aClass33_Sub1_767.method541();
            }
            l1 += 15;
            if(super.anInt31 > k1 && super.anInt31 < k1 + c1 && super.anInt32 > l1 - 12 && super.anInt32 < l1 + 4 && anInt1175 == 1)
            {
                super.aBoolean780 = !super.aBoolean780;
                super.aClass33_Sub1_767.method558(16);
                super.aClass33_Sub1_767.method542(super.aBoolean780 ? 2 : 7);
                super.aClass33_Sub1_767.method541();
            }
            l1 += 15;
            if(super.anInt31 > k1 && super.anInt31 < k1 + c1 && super.anInt32 > l1 - 12 && super.anInt32 < l1 + 4 && anInt1175 == 1)
            {
                super.aBoolean781 = !super.aBoolean781;
                super.aClass33_Sub1_767.method558(16);
                super.aClass33_Sub1_767.method542(super.aBoolean781 ? 3 : 8);
                super.aClass33_Sub1_767.method541();
            }
            l1 += 15;
            if(super.anInt31 > k1 && super.anInt31 < k1 + c1 && super.anInt32 > l1 - 12 && super.anInt32 < l1 + 4 && anInt1175 == 1)
            {
                super.aBoolean778 = !super.aBoolean778;
                super.aClass33_Sub1_767.method558(16);
                super.aClass33_Sub1_767.method542(super.aBoolean778 ? 4 : 9);
                super.aClass33_Sub1_767.method541();
            }
            l1 += 35;
            if(super.anInt31 > k1 && super.anInt31 < k1 + c1 && super.anInt32 > l1 - 12 && super.anInt32 < l1 + 4 && anInt1175 == 1)
                method75();
            anInt1175 = 0;
        }
    }

    public void method113()
    {
        if(!aBoolean948 && System.currentTimeMillis() - aLong1269 > 5000L)
        {
            aLong1269 = System.currentTimeMillis();
            super.aClass33_Sub1_767.method558(5);
            super.aClass33_Sub1_767.method541();
            aBoolean948 = true;
        }
        if(anInt1083 >= 1)
            anInt1083--;
        if(anInt1084 >= 1)
            anInt1084--;
        method29();
        if(anInt1086 > 0)
            anInt1086--;
        if(aClass31_1156.anInt301 == 8 || aClass31_1156.anInt301 == 9)
            anInt949 = 500;
        if(anInt949 > 0)
            anInt949--;
        if(aBoolean1055)
        {
            method57();
            return;
        }
        for(int i = 0; i < anInt976; i++)
        {
            Class31 class31 = aClass31Array1171[i];
            int i3 = (class31.anInt304 + 1) % 10;
            if(class31.anInt303 != i3)
            {
                int l3 = -1;
                int j4 = class31.anInt303;
                int l4;
                if(j4 < i3)
                    l4 = i3 - j4;
                else
                    l4 = (10 + i3) - j4;
                int j5 = 4;
                if(l4 > 2)
                    j5 = (l4 - 1) * 4;
                if(class31.anIntArray305[j4] - class31.anInt298 > 384 || class31.anIntArray306[j4] - class31.anInt299 > 384 || class31.anIntArray305[j4] - class31.anInt298 < -384 || class31.anIntArray306[j4] - class31.anInt299 < -384 || l4 > 8)
                {
                    class31.anInt298 = class31.anIntArray305[j4];
                    class31.anInt299 = class31.anIntArray306[j4];
                } else
                {
                    if(class31.anInt298 < class31.anIntArray305[j4])
                    {
                        class31.anInt298 += j5;
                        class31.anInt300++;
                        l3 = 2;
                    } else
                    if(class31.anInt298 > class31.anIntArray305[j4])
                    {
                        class31.anInt298 -= j5;
                        class31.anInt300++;
                        l3 = 6;
                    }
                    if(class31.anInt298 - class31.anIntArray305[j4] < j5 && class31.anInt298 - class31.anIntArray305[j4] > -j5)
                        class31.anInt298 = class31.anIntArray305[j4];
                    if(class31.anInt299 < class31.anIntArray306[j4])
                    {
                        class31.anInt299 += j5;
                        class31.anInt300++;
                        if(l3 == -1)
                            l3 = 4;
                        else
                        if(l3 == 2)
                            l3 = 3;
                        else
                            l3 = 5;
                    } else
                    if(class31.anInt299 > class31.anIntArray306[j4])
                    {
                        class31.anInt299 -= j5;
                        class31.anInt300++;
                        if(l3 == -1)
                            l3 = 0;
                        else
                        if(l3 == 2)
                            l3 = 1;
                        else
                            l3 = 7;
                    }
                    if(class31.anInt299 - class31.anIntArray306[j4] < j5 && class31.anInt299 - class31.anIntArray306[j4] > -j5)
                        class31.anInt299 = class31.anIntArray306[j4];
                }
                if(l3 != -1)
                    class31.anInt301 = l3;
                if(class31.anInt298 == class31.anIntArray305[j4] && class31.anInt299 == class31.anIntArray306[j4])
                    class31.anInt303 = (j4 + 1) % 10;
            } else
            {
                class31.anInt301 = class31.anInt302;
            }
            if(class31.anInt309 > 0)
                class31.anInt309--;
            if(class31.anInt323 > 0)
                class31.anInt323--;
            if(class31.anInt313 > 0)
                class31.anInt313--;
            if(anInt1237 <= 0)
                continue;
            anInt1237--;
            if(anInt1237 == 0)
                method121("You have been granted another life. Be more careful this time!", 3, 0);
            if(anInt1237 == 0)
                method121("You retain your skills. Your items land where you died", 3, 0);
        }

        for(int j = 0; j < anInt1003; j++)
        {
            Class31 class31_1 = aClass31Array991[j];
            int j3 = (class31_1.anInt304 + 1) % 10;
            if(class31_1.anInt303 != j3)
            {
                int i4 = -1;
                int k4 = class31_1.anInt303;
                int i5;
                if(k4 < j3)
                    i5 = j3 - k4;
                else
                    i5 = (10 + j3) - k4;
                int k5 = 4;
                if(i5 > 2)
                    k5 = (i5 - 1) * 4;
                if(class31_1.anIntArray305[k4] - class31_1.anInt298 > 384 || class31_1.anIntArray306[k4] - class31_1.anInt299 > 384 || class31_1.anIntArray305[k4] - class31_1.anInt298 < -384 || class31_1.anIntArray306[k4] - class31_1.anInt299 < -384 || i5 > 8)
                {
                    class31_1.anInt298 = class31_1.anIntArray305[k4];
                    class31_1.anInt299 = class31_1.anIntArray306[k4];
                } else
                {
                    if(class31_1.anInt298 < class31_1.anIntArray305[k4])
                    {
                        class31_1.anInt298 += k5;
                        class31_1.anInt300++;
                        i4 = 2;
                    } else
                    if(class31_1.anInt298 > class31_1.anIntArray305[k4])
                    {
                        class31_1.anInt298 -= k5;
                        class31_1.anInt300++;
                        i4 = 6;
                    }
                    if(class31_1.anInt298 - class31_1.anIntArray305[k4] < k5 && class31_1.anInt298 - class31_1.anIntArray305[k4] > -k5)
                        class31_1.anInt298 = class31_1.anIntArray305[k4];
                    if(class31_1.anInt299 < class31_1.anIntArray306[k4])
                    {
                        class31_1.anInt299 += k5;
                        class31_1.anInt300++;
                        if(i4 == -1)
                            i4 = 4;
                        else
                        if(i4 == 2)
                            i4 = 3;
                        else
                            i4 = 5;
                    } else
                    if(class31_1.anInt299 > class31_1.anIntArray306[k4])
                    {
                        class31_1.anInt299 -= k5;
                        class31_1.anInt300++;
                        if(i4 == -1)
                            i4 = 0;
                        else
                        if(i4 == 2)
                            i4 = 1;
                        else
                            i4 = 7;
                    }
                    if(class31_1.anInt299 - class31_1.anIntArray306[k4] < k5 && class31_1.anInt299 - class31_1.anIntArray306[k4] > -k5)
                        class31_1.anInt299 = class31_1.anIntArray306[k4];
                }
                if(i4 != -1)
                    class31_1.anInt301 = i4;
                if(class31_1.anInt298 == class31_1.anIntArray305[k4] && class31_1.anInt299 == class31_1.anIntArray306[k4])
                    class31_1.anInt303 = (k4 + 1) % 10;
            } else
            {
                class31_1.anInt301 = class31_1.anInt302;
                if(class31_1.anInt310 == 43)
                    class31_1.anInt300++;
            }
            if(class31_1.anInt309 > 0)
                class31_1.anInt309--;
            if(class31_1.anInt323 > 0)
                class31_1.anInt323--;
            if(class31_1.anInt313 > 0)
                class31_1.anInt313--;
        }

        if(anInt1011 != 2)
        {
            if(Class26.anInt192 > 0)
                anInt951++;
            if(Class26.anInt193 > 0)
                anInt951 = 0;
            Class26.anInt192 = 0;
            Class26.anInt193 = 0;
        }
        for(int k = 0; k < anInt976; k++)
        {
            Class31 class31_2 = aClass31Array1171[k];
            if(class31_2.anInt325 > 0)
                class31_2.anInt325--;
        }

        if(aBoolean1190)
        {
            if(anInt1147 - aClass31_1156.anInt298 < -500 || anInt1147 - aClass31_1156.anInt298 > 500 || anInt1148 - aClass31_1156.anInt299 < -500 || anInt1148 - aClass31_1156.anInt299 > 500)
            {
                anInt1147 = aClass31_1156.anInt298;
                anInt1148 = aClass31_1156.anInt299;
            }
        } else
        {
            if(anInt1147 - aClass31_1156.anInt298 < -500 || anInt1147 - aClass31_1156.anInt298 > 500 || anInt1148 - aClass31_1156.anInt299 < -500 || anInt1148 - aClass31_1156.anInt299 > 500)
            {
                anInt1147 = aClass31_1156.anInt298;
                anInt1148 = aClass31_1156.anInt299;
            }
            if(anInt1147 != aClass31_1156.anInt298)
                anInt1147 += (aClass31_1156.anInt298 - anInt1147) / (16 + (anInt1176 - 500) / 15);
            if(anInt1148 != aClass31_1156.anInt299)
                anInt1148 += (aClass31_1156.anInt299 - anInt1148) / (16 + (anInt1176 - 500) / 15);
            if(aBoolean960)
            {
                int l = anInt1016 * 32;
                int j2 = l - anInt1085;
                byte byte0 = 1;
                if(j2 != 0)
                {
                    anInt1017++;
                    if(j2 > 128)
                    {
                        byte0 = -1;
                        j2 = 256 - j2;
                    } else
                    if(j2 > 0)
                        byte0 = 1;
                    else
                    if(j2 < -128)
                    {
                        byte0 = 1;
                        j2 = 256 + j2;
                    } else
                    if(j2 < 0)
                    {
                        byte0 = -1;
                        j2 = -j2;
                    }
                    anInt1085 += ((anInt1017 * j2 + 255) / 256) * byte0;
                    anInt1085 &= 0xff;
                } else
                {
                    anInt1017 = 0;
                }
            }
        }
        if(anInt951 > 20)
            anInt951 = 0;
        if(aBoolean1289)
        {
            aBoolean1288 = true;
            if(super.aString39.length() > 0)
            {
                super.aClass33_Sub1_767.method558(70);
                super.aClass33_Sub1_767.method556(super.aString39);
                super.aClass33_Sub1_767.method541();
                super.aString38 = "";
                super.aString39 = "";
                aString1290 = "Please wait...";
            }
            if(super.anInt34 == 1 && super.anInt31 > 159 && super.anInt31 < 220 && super.anInt32 > 290 && super.anInt32 < 318)
            {
                super.aClass33_Sub1_767.method558(70);
                super.aClass33_Sub1_767.method556("");
                super.aClass33_Sub1_767.method541();
                super.aString38 = "";
                super.aString39 = "";
                aString1290 = "Please wait...";
            }
            return;
        }
        if(super.anInt32 > anInt1247 - 4)
        {
            if(super.anInt31 > anInt1257 + 13 && super.anInt31 < anInt1257 + 98 && super.anInt34 == 1)
                anInt1092 = 0;
            if(super.anInt31 > anInt1257 * 2 + 98 && super.anInt31 < anInt1257 * 2 + 182 && super.anInt34 == 1)
            {
                anInt1092 = 1;
                aClass30_1087.anIntArray258[anInt1088] = 0xf423f;
            }
            if(super.anInt31 > anInt1257 * 3 + 183 && super.anInt31 < anInt1257 * 3 + 268 && super.anInt34 == 1)
            {
                anInt1092 = 2;
                aClass30_1087.anIntArray258[anInt1090] = 0xf423f;
            }
            if(super.anInt31 > anInt1257 * 4 + 266 && super.anInt31 < anInt1257 * 4 + 352 && super.anInt34 == 1)
            {
                anInt1092 = 3;
                aClass30_1087.anIntArray258[anInt1091] = 0xf423f;
            }
            if(super.anInt31 > anInt1257 * 5 + 342 && super.anInt31 < anInt1257 * 5 + 432 && super.anInt34 == 1)
            {
                anInt1025 = 1;
                anInt1113 = 0;
                super.aString38 = "";
                super.aString39 = "";
            }
            super.anInt34 = 0;
            super.anInt33 = 0;
        }
        aClass30_1087.method472(super.anInt31, super.anInt32, super.anInt34, super.anInt33);
        if(anInt1092 > 0 && super.anInt31 >= 494 && super.anInt32 >= anInt1247 - 66)
            super.anInt34 = 0;
        if(aClass30_1087.method473(anInt1089))
        {
            String s = aString1275 = aClass30_1087.method503(anInt1089);
            aClass30_1087.method502(anInt1089, "");
            if(aBoolean1288)
            {
                aBoolean1288 = false;
                return;
            }
            if(s.startsWith("::"))
            {
                s = s.substring(2);
                if(!method51(s) && !aBoolean1289 && !aBoolean1288)
                    method38(s);
            } else
            if(!aBoolean1289 && !aBoolean1288)
            {
                Class1 _tmp = aClass1_1299;
                s = Class1.method225(s);
                byte abyte0[] = Class2.method228(s);
                method37(abyte0, abyte0.length);
                s = Class2.method229(abyte0, 0, abyte0.length);
                aClass31_1156.anInt309 = 150;
                aClass31_1156.aString308 = s;
                if(!aBoolean1293 || aClass31_1156.anInt292 == 1 || aClass31_1156.anInt292 == 2 || aClass31_1156.anInt292 == 3 || aClass31_1156.anInt292 == 6 || aClass31_1156.anInt292 == 5)
                    method121((new StringBuilder()).append(aClass31_1156.aString294).append(": ").append(s).toString(), 2, aClass31_1156.anInt292);
                else
                    method121((new StringBuilder()).append(aClass31_1156.aString294).append(": ").append(s).toString(), 2, 7);
            }
        }
        if(anInt1092 == 0)
        {
            for(int i1 = 0; i1 < 5; i1++)
                if(anIntArray1146[i1] > 0)
                    anIntArray1146[i1]--;

        }
        if(anInt1237 != 0)
            super.anInt34 = 0;
        if(aBoolean1236 || aBoolean1193)
        {
            if(super.anInt33 != 0)
                anInt1161++;
            else
                anInt1161 = 0;
            if(anInt1161 > 500)
                anInt1162 += 0x186a0;
            else
            if(anInt1161 > 350)
                anInt1162 += 10000;
            else
            if(anInt1161 > 250)
                anInt1162 += 1000;
            else
            if(anInt1161 > 150)
                anInt1162 += 100;
            else
            if(anInt1161 > 100)
                anInt1162 += 10;
            else
            if(anInt1161 > 50)
                anInt1162++;
            else
            if(anInt1161 > 20 && (anInt1161 & 5) == 0)
                anInt1162++;
        } else
        {
            anInt1161 = 0;
            anInt1162 = 0;
        }
        if(super.anInt34 == 1)
            anInt1175 = 1;
        else
        if(super.anInt34 == 2)
            anInt1175 = 2;
        aClass42_1199.method593(super.anInt31, super.anInt32);
        super.anInt34 = 0;
        if(aBoolean960)
        {
            if(anInt1017 == 0 || aBoolean1190)
            {
                if(super.aBoolean24)
                {
                    anInt1016 = anInt1016 + 1 & 7;
                    super.aBoolean24 = false;
                    if(!aBoolean1187)
                    {
                        if((anInt1016 & 1) == 0)
                            anInt1016 = anInt1016 + 1 & 7;
                        for(int j1 = 0; j1 < 8 && !method124(anInt1016); j1++)
                            anInt1016 = anInt1016 + 1 & 7;

                    }
                }
                if(super.aBoolean25)
                {
                    anInt1016 = anInt1016 + 7 & 7;
                    super.aBoolean25 = false;
                    if(!aBoolean1187)
                    {
                        if((anInt1016 & 1) == 0)
                            anInt1016 = anInt1016 + 7 & 7;
                        for(int k1 = 0; k1 < 8 && !method124(anInt1016); k1++)
                            anInt1016 = anInt1016 + 7 & 7;

                    }
                }
            }
        } else
        if(super.aBoolean24)
            anInt1085 = anInt1085 + 2 & 0xff;
        else
        if(super.aBoolean25)
            anInt1085 = anInt1085 - 2 & 0xff;
        if(aBoolean1187 && anInt1176 > 900)
            anInt1176 -= 4;
        else
        if(!aBoolean1187 && anInt1176 < 500)
            anInt1176 += 4;
        if(anInt1114 > 0)
            anInt1114--;
        else
        if(anInt1114 < 0)
            anInt1114++;
        aClass42_1199.method624(17);
        anInt1219++;
        if(anInt1219 > 5)
        {
            anInt1219 = 0;
            anInt1164 = (anInt1164 + 1) % 3;
            anInt1165 = (anInt1165 + 1) % 4;
            anInt1166 = (anInt1166 + 1) % 5;
        }
        for(int l1 = 0; l1 < anInt1242; l1++)
        {
            int k2 = anIntArray1150[l1];
            int k3 = anIntArray1151[l1];
            if(k2 >= 0 && k3 >= 0 && k2 < 96 && k3 < 96 && anIntArray1152[l1] == 74)
                aClass32Array1081[l1].method523(1, 0, 0);
        }

        for(int i2 = 0; i2 < anInt1169; i2++)
        {
            anIntArray1194[i2]++;
            if(anIntArray1194[i2] <= 50)
                continue;
            anInt1169--;
            for(int l2 = i2; l2 < anInt1169; l2++)
            {
                anIntArray1215[l2] = anIntArray1215[l2 + 1];
                anIntArray1053[l2] = anIntArray1053[l2 + 1];
                anIntArray1194[l2] = anIntArray1194[l2 + 1];
                anIntArray1068[l2] = anIntArray1068[l2 + 1];
            }

        }

    }

    public void method114()
    {
        try
        {
            method21(90, "Unpacking Sound Effects...");
            aByteArray1240 = method111("sounds");
            anInputStream_Sub1_1188 = new InputStream_Sub1();
        }
        catch(Throwable throwable)
        {
            System.out.println((new StringBuilder()).append("Unable to init sounds:").append(throwable).toString());
        }
    }

    public void method115()
    {
        byte byte0 = 7;
        byte byte1 = 15;
        char c = '\257';
        if(anInt1175 != 0)
        {
            int i = 0;
            do
            {
                if(i >= 5)
                    break;
                if(i > 0 && super.anInt31 > byte0 && super.anInt31 < byte0 + c && super.anInt32 > byte1 + i * 20 && super.anInt32 < byte1 + i * 20 + 20)
                {
                    anInt1061 = i - 1;
                    anInt1175 = 0;
                    super.aClass33_Sub1_767.method558(64);
                    super.aClass33_Sub1_767.method542(anInt1061);
                    super.aClass33_Sub1_767.method541();
                    break;
                }
                i++;
            } while(true);
        }
        for(int j = 0; j < 5; j++)
        {
            if(j == anInt1061 + 1)
                method76(byte0, byte1 + j * 20, c, 20, Class26.method434(255, 0, 0), 128);
            else
                method76(byte0, byte1 + j * 20, c, 20, Class26.method434(190, 190, 190), 128);
            method77(byte0, byte1 + j * 20, c, 0);
            method77(byte0, byte1 + j * 20 + 20, c, 0);
        }

        method79("Combat Style", byte0 + c / 2, byte1 + 16, 3, 0xffffff);
        method79("Controlled (+1 of each)", byte0 + c / 2, byte1 + 36, 3, 0);
        method79("Aggressive (+3 strength)", byte0 + c / 2, byte1 + 56, 3, 0);
        method79("Accurate   (+3 attack)", byte0 + c / 2, byte1 + 76, 3, 0);
        method79("Defensive  (+3 defense)", byte0 + c / 2, byte1 + 96, 3, 0);
    }

    public void method116()
    {
        int i = anInt1291 / 2 - 234;
        int j = anInt1292 - (anInt1292 / 2 + 131);
        aClass26_Sub1_1195.method428(i, j, 468, 16, 192);
        int k = 0x989898;
        method76(i, j + 16, 468, 246, k, 160);
        method79((new StringBuilder()).append("Please confirm your duel with @yel@").append(Class35.method569(aLong1253)).toString(), i + 234, j + 12, 1, 0xffffff);
        method79("Your stake:", i + 117, j + 30, 1, 0xffff00);
        for(int l = 0; l < anInt1141; l++)
        {
            String s = Class3.method236(anIntArray1142[l]).method292();
            if(Class3.method236(anIntArray1142[l]).method304())
                s = (new StringBuilder()).append(s).append(" x ").append(method92(anIntArray1143[l])).toString();
            method79(s, i + 117, j + 42 + l * 12, 1, 0xffffff);
        }

        if(anInt1141 == 0)
            method79("Nothing!", i + 117, j + 42, 1, 0xffffff);
        method79("Your opponent's stake:", i + 351, j + 30, 1, 0xffff00);
        for(int i1 = 0; i1 < anInt1069; i1++)
        {
            String s1 = Class3.method236(anIntArray1070[i1]).method292();
            if(Class3.method236(anIntArray1070[i1]).method304())
                s1 = (new StringBuilder()).append(s1).append(" x ").append(method92(anIntArray1071[i1])).toString();
            method79(s1, i + 351, j + 42 + i1 * 12, 1, 0xffffff);
        }

        if(anInt1069 == 0)
            method79("Nothing!", i + 351, j + 42, 1, 0xffffff);
        if(anInt1026 == 0)
            method79("You can retreat from this duel", i + 234, j + 180, 1, 65280);
        else
            method79("No retreat is possible!", i + 234, j + 180, 1, 0xff0000);
        if(anInt1027 == 0)
            method79("Magic may be used", i + 234, j + 192, 1, 65280);
        else
            method79("Magic cannot be used", i + 234, j + 192, 1, 0xff0000);
        if(anInt1028 == 0)
            method79("Prayer may be used", i + 234, j + 204, 1, 65280);
        else
            method79("Prayer cannot be used", i + 234, j + 204, 1, 0xff0000);
        if(anInt1029 == 0)
            method79("Weapons may be used", i + 234, j + 216, 1, 65280);
        else
            method79("Weapons cannot be used", i + 234, j + 216, 1, 0xff0000);
        method79("If you are sure click 'Accept' to begin the duel", i + 234, j + 230, 1, 0xffffff);
        if(!aBoolean1205)
        {
            aClass26_Sub1_1195.method438((i + 118) - 35, j + 238, 2025);
            aClass26_Sub1_1195.method438((i + 352) - 35, j + 238, 2026);
        } else
        {
            method79("Waiting for other player...", i + 234, j + 250, 1, 0xffff00);
        }
        if(anInt1175 == 1)
        {
            if(super.anInt31 < i || super.anInt32 < j || super.anInt31 > i + 468 || super.anInt32 > j + 262)
            {
                aBoolean1204 = false;
                super.aClass33_Sub1_767.method558(51);
                super.aClass33_Sub1_767.method541();
            }
            if(super.anInt31 >= (i + 118) - 35 && super.anInt31 <= i + 118 + 70 && super.anInt32 >= j + 238 && super.anInt32 <= j + 238 + 21)
            {
                aBoolean1205 = true;
                super.aClass33_Sub1_767.method558(50);
                super.aClass33_Sub1_767.method541();
            }
            if(super.anInt31 >= (i + 352) - 35 && super.anInt31 <= i + 353 + 70 && super.anInt32 >= j + 238 && super.anInt32 <= j + 238 + 21)
            {
                aBoolean1204 = false;
                super.aClass33_Sub1_767.method558(51);
                super.aClass33_Sub1_767.method541();
            }
            anInt1175 = 0;
        }
    }

    public void method117()
    {
        anInt1123 = anInt1056;
        for(int i = 0; i < anInt1056; i++)
        {
            anIntArray1177[i] = anIntArray1139[i];
            anIntArray1178[i] = anIntArray1140[i];
        }

        for(int j = 0; j < anInt979 && anInt1123 < anInt1010; j++)
        {
            int k = anIntArray980[j];
            boolean flag = false;
            int l = 0;
            do
            {
                if(l >= anInt1123)
                    break;
                if(anIntArray1177[l] == k)
                {
                    flag = true;
                    break;
                }
                l++;
            } while(true);
            if(!flag)
            {
                anIntArray1177[anInt1123] = k;
                anIntArray1178[anInt1123] = 0;
                anInt1123++;
            }
        }

    }

    public void method118()
    {
        aClass30_1216 = new Class30(aClass26_Sub1_1195, 100);
        int i = (anInt1291 - 215) / 2;
        int j = anInt1292 / 2 - 141;
        i += 116;
        j -= 10;
        byte byte0 = 54;
        j += 145;
        aClass30_1216.method491(i - byte0, j, 53, 41);
        aClass30_1216.method489(i - byte0, j - 8, "Head", 1, true);
        aClass30_1216.method489(i - byte0, j + 8, "Type", 1, true);
        aClass30_1216.method492(i - byte0 - 40, j, 2107);
        anInt1124 = aClass30_1216.method497(i - byte0 - 40, j, 20, 20);
        aClass30_1216.method492((i - byte0) + 40, j, 2106);
        anInt1125 = aClass30_1216.method497((i - byte0) + 40, j, 20, 20);
        aClass30_1216.method491(i + byte0, j, 53, 41);
        aClass30_1216.method489(i + byte0, j - 8, "Hair", 1, true);
        aClass30_1216.method489(i + byte0, j + 8, "Colour", 1, true);
        aClass30_1216.method492((i + byte0) - 40, j, 2107);
        anInt1126 = aClass30_1216.method497((i + byte0) - 40, j, 20, 20);
        aClass30_1216.method492(i + byte0 + 40, j, 2106);
        anInt1127 = aClass30_1216.method497(i + byte0 + 40, j, 20, 20);
        j += 50;
        aClass30_1216.method491(i - byte0, j, 53, 41);
        aClass30_1216.method489(i - byte0, j, "Gender", 1, true);
        aClass30_1216.method492(i - byte0 - 40, j, 2107);
        anInt1128 = aClass30_1216.method497(i - byte0 - 40, j, 20, 20);
        aClass30_1216.method492((i - byte0) + 40, j, 2106);
        anInt1129 = aClass30_1216.method497((i - byte0) + 40, j, 20, 20);
        aClass30_1216.method491(i + byte0, j, 53, 41);
        aClass30_1216.method489(i + byte0, j - 8, "Top", 1, true);
        aClass30_1216.method489(i + byte0, j + 8, "Colour", 1, true);
        aClass30_1216.method492((i + byte0) - 40, j, 2107);
        anInt1130 = aClass30_1216.method497((i + byte0) - 40, j, 20, 20);
        aClass30_1216.method492(i + byte0 + 40, j, 2106);
        anInt1131 = aClass30_1216.method497(i + byte0 + 40, j, 20, 20);
        j += 50;
        aClass30_1216.method491(i - byte0, j, 53, 41);
        aClass30_1216.method489(i - byte0, j - 8, "Skin", 1, true);
        aClass30_1216.method489(i - byte0, j + 8, "Colour", 1, true);
        aClass30_1216.method492(i - byte0 - 40, j, 2107);
        anInt1132 = aClass30_1216.method497(i - byte0 - 40, j, 20, 20);
        aClass30_1216.method492((i - byte0) + 40, j, 2106);
        anInt1133 = aClass30_1216.method497((i - byte0) + 40, j, 20, 20);
        aClass30_1216.method491(i + byte0, j, 53, 41);
        aClass30_1216.method489(i + byte0, j - 8, "Bottom", 1, true);
        aClass30_1216.method489(i + byte0, j + 8, "Colour", 1, true);
        aClass30_1216.method492((i + byte0) - 40, j, 2107);
        anInt1134 = aClass30_1216.method497((i + byte0) - 40, j, 20, 20);
        aClass30_1216.method492(i + byte0 + 40, j, 2106);
        anInt1135 = aClass30_1216.method497(i + byte0 + 40, j, 20, 20);
        j += 82;
        j -= 35;
        aClass30_1216.method490(i, j, 200, 30);
        aClass30_1216.method489(i, j, "Accept", 4, false);
        anInt1136 = aClass30_1216.method497(i, j, 200, 30);
    }

    public void method119()
    {
        if(super.aString39.length() > 0)
        {
            String s = super.aString39.trim();
            super.aString38 = "";
            super.aString39 = "";
            if(s.length() <= 0);
            anInt1025 = 0;
            return;
        }
        aClass26_Sub1_1195.method428(anInt1291 / 2 - 200, anInt1292 / 2 - 50, 400, 100, 0);
        aClass26_Sub1_1195.method429(anInt1291 / 2 - 200, anInt1292 / 2 - 50, 400, 100, 0xffffff);
        int i = anInt1292 / 2 - 30;
        method79("Now type the name of the offending player, and press enter", anInt1291 / 2, i, 1, 0xffff00);
        i += 18;
        method79((new StringBuilder()).append("Name: ").append(super.aString38).append("*").toString(), anInt1291 / 2, i, 4, 0xffffff);
        i = anInt1292 / 2 + 38;
        int j = 0xffffff;
        if(super.anInt31 > anInt1291 / 2 - 200 && super.anInt31 < anInt1291 / 2 + 200 && super.anInt32 > i - 13 && super.anInt32 < i + 2)
        {
            j = 0xffff00;
            if(anInt1175 == 1)
            {
                anInt1175 = 0;
                anInt1025 = 0;
            }
        }
        method79("Cancel", anInt1291 / 2, i, 1, j);
        if(anInt1175 == 1 && (super.anInt31 < anInt1291 / 2 - 200 || super.anInt31 > anInt1291 / 2 + 200 || super.anInt32 < anInt1292 / 2 - 50 || super.anInt32 > anInt1292 / 2 + 50))
        {
            anInt1175 = 0;
            anInt1025 = 0;
        }
    }

    public void method120(String s)
    {
        method121(s, 5, 0);
    }

    public void method121(String s, int i, int j)
    {
        String s1 = "";
        if(i == 2 || i == 4 || i == 6 || i == 7)
        {
            for(; s.length() > 5 && s.charAt(0) == '@' && s.charAt(4) == '@'; s = s.substring(5));
            if(s.length() > 5 && s.charAt(0) == '#' && s.charAt(4) == '#')
            {
                String s2 = s.substring(0, 5);
                s = (new StringBuilder()).append(s2).append(Class1.method225(s.substring(5))).toString();
            } else
            {
                s = Class1.method225(s);
            }
        }
        String s3 = "@yel@";
        switch(j)
        {
        case 1: // '\001'
            s = (new StringBuilder()).append("#adm#").append(s).toString();
            break;

        case 2: // '\002'
            s = (new StringBuilder()).append("#mod#").append(s).toString();
            s3 = "@whi@";
            break;

        case 3: // '\003'
            s = (new StringBuilder()).append("#dev#").append(s).toString();
            s3 = "@red@";
            break;

        case 6: // '\006'
            s = (new StringBuilder()).append("#pmd#").append(s).toString();
            s3 = "@gre@";
            break;

        case 5: // '\005'
            s = (new StringBuilder()).append("#cmd#").append(s).toString();
            s3 = "@blu@";
            break;

        case 7: // '\007'
            s3 = "@or2@";
            break;
        }
        switch(i)
        {
        case 6: // '\006'
            s = (new StringBuilder()).append("@cya@").append(Class1.method225(s)).toString();
            break;

        case 5: // '\005'
            s = (new StringBuilder()).append("@whi@").append(s).toString();
            break;

        case 7: // '\007'
            String s4 = "";
            int l = 0;
            int i1 = 0;
            do
            {
                if(i1 >= s.length())
                    break;
                if(s.charAt(i1) != ':')
                {
                    s4 = (new StringBuilder()).append(s4).append(s.charAt(i1)).toString();
                } else
                {
                    s4 = (new StringBuilder()).append(s4).append(s.charAt(i1)).toString();
                    break;
                }
                l++;
                i1++;
            } while(true);
            s4 = s4.replaceAll("_", " ");
            s = (new StringBuilder()).append("@yel@").append(s4).append("@whi@").append(s.substring(l + 1, s.length())).toString();
            break;

        case 2: // '\002'
            String s5 = "";
            int j1 = 0;
            int k1 = 0;
            do
            {
                if(k1 >= s.length())
                    break;
                if(s.charAt(k1) != ':')
                {
                    s5 = (new StringBuilder()).append(s5).append(s.charAt(k1)).toString();
                } else
                {
                    s5 = (new StringBuilder()).append(s5).append(s.charAt(k1)).toString();
                    break;
                }
                j1++;
                k1++;
            } while(true);
            s5 = s5.replaceAll("_", " ");
            s = (new StringBuilder()).append(s3).append(s5).append("@yel@").append(s.substring(j1 + 1, s.length())).toString();
            break;

        case 3: // '\003'
        case 4: // '\004'
        default:
            s = (new StringBuilder()).append("@whi@").append(s).toString();
            break;
        }
        if(i == 3)
            s = (new StringBuilder()).append("@whi@").append(s).toString();
        if(anInt1092 != 0)
        {
            if(i == 4 || i == 3)
                anInt1223 = 200;
            if(i == 2 && anInt1092 != 1)
                anInt1224 = 200;
            if((i == 5 || i == 7) && anInt1092 != 2)
                anInt1225 = 200;
            if(i == 6 && anInt1092 != 3)
                anInt1226 = 200;
            if(i == 3 && anInt1092 != 0)
                anInt1092 = 0;
            if(i == 6 && anInt1092 != 3 && anInt1092 != 0)
                anInt1092 = 0;
        }
        for(int k = 4; k > 0; k--)
        {
            aStringArray1234[k] = aStringArray1234[k - 1];
            anIntArray1146[k] = anIntArray1146[k - 1];
        }

        aStringArray1234[0] = s;
        anIntArray1146[0] = 300;
        if(i == 2)
            if(aClass30_1087.anIntArray258[anInt1088] == aClass30_1087.anIntArray259[anInt1088] - 4)
                aClass30_1087.method501(anInt1088, s, true);
            else
                aClass30_1087.method501(anInt1088, s, false);
        if(i == 5 || i == 7)
            if(aClass30_1087.anIntArray258[anInt1090] == aClass30_1087.anIntArray259[anInt1090] - 4)
                aClass30_1087.method501(anInt1090, s, true);
            else
                aClass30_1087.method501(anInt1090, s, false);
        if(i == 6)
        {
            if(aClass30_1087.anIntArray258[anInt1091] == aClass30_1087.anIntArray259[anInt1091] - 4)
            {
                aClass30_1087.method501(anInt1091, s, true);
                return;
            }
            aClass30_1087.method501(anInt1091, (new StringBuilder()).append("@whi@").append(s).toString(), false);
        }
    }

    public void method122(int i, String s)
    {
        int j = anIntArray1150[i];
        int k = anIntArray1151[i];
        int l = j - aClass31_1156.anInt298 / 128;
        int i1 = k - aClass31_1156.anInt299 / 128;
        byte byte0 = 7;
        if(j >= 0 && k >= 0 && j < 96 && k < 96 && l > -byte0 && l < byte0 && i1 > -byte0 && i1 < byte0)
        {
            aClass42_1199.method585(aClass32Array1081[i]);
            int j1 = Class3.method261(s);
            try
            {
                Class32 class32 = aClass32Array1062[j1].method537();
                aClass42_1199.method584(class32);
                class32.method519(true, 48, 48, -50, -10, -50);
                class32.method538(aClass32Array1081[i]);
                class32.anInt358 = i;
                aClass32Array1081[i] = class32;
            }
            catch(Exception exception) { }
        }
    }

    public void method40()
    {
        anInt1084 = 0;
        anInt1083 = 0;
        anInt1061 = 0;
        anInt1086 = 0;
        anInt994 = 0;
        anInt1015 = 1;
        method144();
        aClass26_Sub1_1195.method424();
        aClass26_Sub1_1195.method423(aGraphics1206, 0, 0);
        for(int i = 0; i < anInt1242; i++)
        {
            aClass42_1199.method585(aClass32Array1081[i]);
            aClass17_1170.method365(anIntArray1150[i], anIntArray1151[i], anIntArray1152[i], anIntArray1153[i]);
        }

        for(int j = 0; j < anInt1220; j++)
        {
            aClass42_1199.method585(aClass32Array986[j]);
            aClass17_1170.method381(anIntArray1207[j], anIntArray1208[j], anIntArray1221[j], anIntArray1222[j]);
        }

        String as[] = aStringArray1260;
        int l1 = as.length;
        for(int i2 = 0; i2 < l1; i2++)
        {
            String s = as[i2];
            s = s.replaceAll("@yel@", "@red@");
            s = s.replaceAll("@gre@", "@red@");
        }

        anInt1242 = 0;
        anInt1220 = 0;
        anInt1163 = 0;
        anInt976 = 0;
        for(int k = 0; k < aClass31Array999.length; k++)
            aClass31Array999[k] = null;

        for(int l = 0; l < aClass31Array1171.length; l++)
            aClass31Array1171[l] = null;

        anInt1003 = 0;
        for(int i1 = 0; i1 < aClass31Array1191.length; i1++)
            aClass31Array1191[i1] = null;

        for(int j1 = 0; j1 < aClass31Array991.length; j1++)
            aClass31Array991[j1] = null;

        for(int k1 = 0; k1 < aBooleanArray996.length; k1++)
            aBooleanArray996[k1] = false;

        anInt1175 = 0;
        super.anInt34 = 0;
        super.anInt33 = 0;
        aBoolean1200 = false;
        aBoolean985 = false;
        super.anInt772 = 0;
    }

    public void method123()
    {
        if(System.currentTimeMillis() - aLong1267 > 50L)
        {
            boolean flag = false;
            if(anInt1175 != 0 && anInt1162 == 0)
                anInt1162 = 1;
            if(anInt1162 > 0)
            {
                int j = super.anInt31 - (anInt1291 - (anInt1291 / 2 + 234));
                int l = super.anInt32 - (anInt1292 / 2 - 139);
                if(j >= 0 && l >= 0 && j < 468 && l < 262)
                {
                    if(j > 216 && l > 30 && j < 462 && l < 235)
                    {
                        int j1 = (j - 217) / 49 + ((l - 31) / 34) * 5;
                        if(j1 >= 0 && j1 < anInt979)
                        {
                            boolean flag1 = false;
                            int i4 = 0;
                            int k5 = anIntArray980[j1];
                            if(Class3.method236(k5).aBoolean807)
                            {
                                if(!flag)
                                    method121("@cya@You cannot trade quest items", 3, 0);
                                flag = true;
                            }
                            if(!flag)
                            {
label0:
                                for(int l6 = 0; l6 < anInt1243; l6++)
                                {
                                    if(anIntArray1244[l6] != k5)
                                        continue;
                                    if(Class3.method236(k5).method304())
                                    {
                                        int j7 = 0;
                                        do
                                        {
                                            if(j7 >= anInt1162)
                                                continue label0;
                                            if(anIntArray1245[l6] < anIntArray981[j1])
                                                anIntArray1245[l6]++;
                                            flag1 = true;
                                            j7++;
                                        } while(true);
                                    }
                                    i4++;
                                }

                            }
                            if(!flag && method58(k5) <= i4)
                                flag1 = true;
                            if(!flag && !flag1 && anInt1243 < 12)
                            {
                                anIntArray1244[anInt1243] = k5;
                                anIntArray1245[anInt1243] = 1;
                                anInt1243++;
                                flag1 = true;
                            }
                            if(!flag && flag1)
                            {
                                aLong1267 = System.currentTimeMillis();
                                super.aClass33_Sub1_767.method558(42);
                                super.aClass33_Sub1_767.method542(anInt1243);
                                for(int i7 = 0; i7 < anInt1243; i7++)
                                {
                                    super.aClass33_Sub1_767.method546(anIntArray1244[i7]);
                                    super.aClass33_Sub1_767.method544(anIntArray1245[i7]);
                                }

                                super.aClass33_Sub1_767.method541();
                                aBoolean997 = false;
                                aBoolean998 = false;
                            }
                        }
                    }
                    if(!flag && j > 8 && l > 30 && j < 205 && l < 133)
                    {
                        int k1 = (j - 9) / 49 + ((l - 31) / 34) * 4;
                        if(k1 >= 0 && k1 < anInt1243)
                        {
                            int i2 = anIntArray1244[k1];
                            int j4 = 0;
                            do
                            {
                                if(j4 >= anInt1162)
                                    break;
                                if(Class3.method236(i2).method304() && anIntArray1245[k1] > 1)
                                {
                                    anIntArray1245[k1]--;
                                } else
                                {
                                    anInt1243--;
                                    anInt1161 = 0;
                                    for(int l5 = k1; l5 < anInt1243; l5++)
                                    {
                                        anIntArray1244[l5] = anIntArray1244[l5 + 1];
                                        anIntArray1245[l5] = anIntArray1245[l5 + 1];
                                    }

                                    break;
                                }
                                j4++;
                            } while(true);
                            aLong1267 = System.currentTimeMillis();
                            super.aClass33_Sub1_767.method558(42);
                            super.aClass33_Sub1_767.method542(anInt1243);
                            for(int k4 = 0; k4 < anInt1243; k4++)
                            {
                                super.aClass33_Sub1_767.method546(anIntArray1244[k4]);
                                super.aClass33_Sub1_767.method544(anIntArray1245[k4]);
                            }

                            super.aClass33_Sub1_767.method541();
                            aBoolean997 = false;
                            aBoolean998 = false;
                        }
                    }
                    if(j >= 217 && l >= 238 && j <= 286 && l <= 259)
                    {
                        aLong1267 = System.currentTimeMillis();
                        aBoolean998 = true;
                        super.aClass33_Sub1_767.method558(39);
                        super.aClass33_Sub1_767.method541();
                    }
                    if(j >= 394 && l >= 238 && j < 463 && l < 259)
                    {
                        aBoolean1236 = false;
                        super.aClass33_Sub1_767.method558(41);
                        super.aClass33_Sub1_767.method541();
                    }
                } else
                if(anInt1175 != 0)
                {
                    aBoolean1236 = false;
                    super.aClass33_Sub1_767.method558(41);
                    super.aClass33_Sub1_767.method541();
                }
                anInt1175 = 0;
                anInt1162 = 0;
            }
        }
        if(!aBoolean1236)
            return;
        int i = anInt1291 / 2 - 234;
        int k = anInt1292 / 2 - 140;
        aClass26_Sub1_1195.method428(i, k, 468, 12, 192);
        int i1 = 0x989898;
        method76(i, k + 12, 468, 18, i1, 160);
        method76(i, k + 30, 8, 248, i1, 160);
        method76(i + 205, k + 30, 11, 248, i1, 160);
        method76(i + 462, k + 30, 6, 248, i1, 160);
        method76(i + 8, k + 133, 197, 22, i1, 160);
        method76(i + 8, k + 258, 197, 20, i1, 160);
        method76(i + 216, k + 235, 246, 43, i1, 160);
        int l1 = 0xd0d0d0;
        method76(i + 8, k + 30, 197, 103, l1, 160);
        method76(i + 8, k + 155, 197, 103, l1, 160);
        method76(i + 216, k + 30, 246, 205, l1, 160);
        for(int j2 = 0; j2 < 4; j2++)
            method77(i + 8, k + 30 + j2 * 34, 197, 0);

        for(int k2 = 0; k2 < 4; k2++)
            method77(i + 8, k + 155 + k2 * 34, 197, 0);

        for(int l2 = 0; l2 < 7; l2++)
            method77(i + 216, k + 30 + l2 * 34, 246, 0);

        for(int i3 = 0; i3 < 6; i3++)
        {
            if(i3 < 5)
                method78(i + 8 + i3 * 49, k + 30, 103, 0);
            if(i3 < 5)
                method78(i + 8 + i3 * 49, k + 155, 103, 0);
            method78(i + 216 + i3 * 49, k + 30, 205, 0);
        }

        method80((new StringBuilder()).append("Trading with: ").append(aString1254).toString(), i + 1, k + 10, 1, 0xffffff);
        method80("Your Offer", i + 9, k + 27, 4, 0xffffff);
        method80("Opponent's Offer", i + 9, k + 152, 4, 0xffffff);
        method80("Your Inventory", i + 216, k + 27, 4, 0xffffff);
        if(!aBoolean998)
            aClass26_Sub1_1195.method438(i + 217, k + 238, 2025);
        aClass26_Sub1_1195.method438(i + 394, k + 238, 2026);
        if(aBoolean997)
        {
            method79("Other player", i + 341, k + 246, 1, 0xffffff);
            method79("has accepted", i + 341, k + 256, 1, 0xffffff);
        }
        if(aBoolean998)
        {
            method79("Waiting for", i + 217 + 35, k + 246, 1, 0xffffff);
            method79("other player", i + 217 + 35, k + 256, 1, 0xffffff);
        }
        for(int j3 = 0; j3 < anInt979; j3++)
        {
            int l4 = 217 + i + (j3 % 5) * 49;
            int i6 = 31 + k + (j3 / 5) * 34;
            aClass26_Sub1_1195.method452(l4, i6, 48, 32, 2150 + Class3.method236(anIntArray980[j3]).method302(), Class3.method236(anIntArray980[j3]).method306(), 0, 0, false);
            if(Class3.method236(anIntArray980[j3]).method304())
                method80(method69(String.valueOf(anIntArray981[j3])), l4 + 1, i6 + 10, 1, 0xffff00);
        }

        for(int k3 = 0; k3 < anInt1243; k3++)
        {
            int i5 = 9 + i + (k3 % 4) * 49;
            int j6 = 31 + k + (k3 / 4) * 34;
            aClass26_Sub1_1195.method452(i5, j6, 48, 32, 2150 + Class3.method236(anIntArray1244[k3]).method302(), Class3.method236(anIntArray1244[k3]).method306(), 0, 0, false);
            if(Class3.method236(anIntArray1244[k3]).method304())
                method80(method69((new StringBuilder()).append("").append(String.valueOf(anIntArray1245[k3])).toString()), i5 + 1, j6 + 10, 1, 0xffff00);
            if(super.anInt31 > i5 && super.anInt31 < i5 + 48 && super.anInt32 > j6 && super.anInt32 < j6 + 32)
                method80((new StringBuilder()).append(Class3.method236(anIntArray1244[k3]).method292()).append(": @whi@").append(Class3.method236(anIntArray1244[k3]).method293()).toString(), i + 8, k + 273, 1, 0xffff00);
        }

        for(int l3 = 0; l3 < anInt1183; l3++)
        {
            int j5 = 9 + i + (l3 % 4) * 49;
            int k6 = 156 + k + (l3 / 4) * 34;
            aClass26_Sub1_1195.method452(j5, k6, 48, 32, 2150 + Class3.method236(anIntArray1184[l3]).method302(), Class3.method236(anIntArray1184[l3]).method306(), 0, 0, false);
            if(Class3.method236(anIntArray1184[l3]).method304())
                method80(method69((new StringBuilder()).append("").append(String.valueOf(anIntArray1185[l3])).toString()), j5 + 1, k6 + 10, 1, 0xffff00);
            if(super.anInt31 > j5 && super.anInt31 < j5 + 48 && super.anInt32 > k6 && super.anInt32 < k6 + 32)
                method80((new StringBuilder()).append(Class3.method236(anIntArray1184[l3]).method292()).append(": @whi@").append(Class3.method236(anIntArray1184[l3]).method293()).toString(), i + 8, k + 273, 1, 0xffff00);
        }

    }

    public boolean method124(int i)
    {
        int j = aClass31_1156.anInt298 / 128;
        int k = aClass31_1156.anInt299 / 128;
        for(int l = 2; l >= 1; l--)
        {
            if(i == 1 && ((aClass17_1170.anIntArrayArray121[j][k - l] & 0x80) == 128 || (aClass17_1170.anIntArrayArray121[j - l][k] & 0x80) == 128 || (aClass17_1170.anIntArrayArray121[j - l][k - l] & 0x80) == 128))
                return false;
            if(i == 3 && ((aClass17_1170.anIntArrayArray121[j][k + l] & 0x80) == 128 || (aClass17_1170.anIntArrayArray121[j - l][k] & 0x80) == 128 || (aClass17_1170.anIntArrayArray121[j - l][k + l] & 0x80) == 128))
                return false;
            if(i == 5 && ((aClass17_1170.anIntArrayArray121[j][k + l] & 0x80) == 128 || (aClass17_1170.anIntArrayArray121[j + l][k] & 0x80) == 128 || (aClass17_1170.anIntArrayArray121[j + l][k + l] & 0x80) == 128))
                return false;
            if(i == 7 && ((aClass17_1170.anIntArrayArray121[j][k - l] & 0x80) == 128 || (aClass17_1170.anIntArrayArray121[j + l][k] & 0x80) == 128 || (aClass17_1170.anIntArrayArray121[j + l][k - l] & 0x80) == 128))
                return false;
            if(i == 0 && (aClass17_1170.anIntArrayArray121[j][k - l] & 0x80) == 128)
                return false;
            if(i == 2 && (aClass17_1170.anIntArrayArray121[j - l][k] & 0x80) == 128)
                return false;
            if(i == 4 && (aClass17_1170.anIntArrayArray121[j][k + l] & 0x80) == 128)
                return false;
            if(i == 6 && (aClass17_1170.anIntArrayArray121[j + l][k] & 0x80) == 128)
                return false;
        }

        return true;
    }

    public Class31 method125(int i)
    {
        for(int j = 0; j < anInt977; j++)
            if(aClass31Array1058[j].anInt295 == i)
                return aClass31Array1058[j];

        return null;
    }

    public Class31 method126(int i)
    {
        for(int j = 0; j < anInt1004; j++)
            if(aClass31Array962[j].anInt295 == i)
                return aClass31Array962[j];

        return null;
    }

    public void method43(int i, int j, byte abyte0[])
    {
        try
        {
            if(i == 117)
            {
                aBoolean948 = false;
                aLong771 = System.currentTimeMillis() - aLong1269;
            } else
            if(i == 62)
                aClass38_942.method576(j, abyte0);
            else
            if(i == 61)
                aClass37_941.method574(j, abyte0);
            else
            if(i == 58)
                aClass21_943.method398(j, abyte0);
            else
            if(i == 57)
                aClass39_940.method578(j, abyte0);
            else
            if(i == 56)
                aClass25_939.method416(j, abyte0);
            else
            if(i == 55)
                aClass23_938.method406(j, abyte0);
            else
            if(i == 54)
                aClass19_937.method396(j, abyte0);
            else
            if(i == 222)
                aClass31_1156.anInt292 = Class35.method560(abyte0[1]);
            else
            if(i == 3)
                method94(Class35.method563(abyte0, 1));
            else
            if(i == 12)
                method91();
            else
            if(i == 110)
            {
                int k = 1;
                anInt1084 = Class35.method561(abyte0, k) * 32;
                k += 2;
                aByte1268 = (byte)Class35.method560(abyte0[k]);
                k++;
                aLong1272 = Class35.method563(abyte0, k);
                k += 8;
                new String(abyte0, k, j - k);
            } else
            if(i == 145)
                aClass29_936.method469(i, j, abyte0);
            else
            if(i == 109)
                aClass41_935.method582(i, j, abyte0);
            else
            if(i == 27)
                aClass40_934.method580(i, j, abyte0);
            else
            if(i == 49)
                method121(aClass4_1300.method262(Class35.method564(abyte0, 1)), 3, 0);
            else
            if(i == 114)
            {
                int l = 1;
                anInt979 = abyte0[l++] & 0xff;
                for(int l5 = 0; l5 < anInt979; l5++)
                {
                    int i11 = Class35.method561(abyte0, l);
                    l += 2;
                    anIntArray980[l5] = i11 & 0x7fff;
                    anIntArray982[l5] = i11 / 32768;
                    if(Class3.method236(i11 & 0x7fff).method304())
                    {
                        anIntArray981[l5] = Class35.method564(abyte0, l);
                        l += 4;
                    } else
                    {
                        anIntArray981[l5] = 1;
                    }
                }

            } else
            if(i == 129)
                anInt1061 = Class35.method560(abyte0[1]);
            else
            if(i == 95)
                aClass36_944.method572(i, j, abyte0);
            else
            if(i == 77)
                aClass27_932.method467(i, j, abyte0);
            else
            if(i == 190)
                aClass43_933.method633(abyte0);
            else
            if(i == 223)
            {
                aBoolean1013 = true;
                int i1 = Class35.method560(abyte0[1]);
                anInt1149 = i1;
                int i6 = 2;
                for(int j11 = 0; j11 < i1; j11++)
                {
                    int l12 = Class35.method560(abyte0[i6]);
                    i6++;
                    aStringArray961[j11] = new String(abyte0, i6, l12);
                    i6 += l12;
                }

            } else
            if(i == 224)
                method134(new String(abyte0, 1, j - 1));
            else
            if(i == 127)
                aBoolean1013 = false;
            else
            if(i == 131)
            {
                aBoolean1179 = true;
                aBoolean1285 = true;
                anInt1159 = Class35.method561(abyte0, 1);
                anInt1005 = Class35.method561(abyte0, 3);
                anInt1006 = Class35.method561(abyte0, 5);
                anInt1037 = Class35.method561(abyte0, 7);
                anInt1007 = Class35.method561(abyte0, 9);
                anInt1006 -= anInt1037 * anInt1007;
            } else
            if(i == 180)
            {
                int j1 = 1;
                for(int j6 = 0; j6 < 18; j6++)
                    anIntArray1034[j6] = Class35.method560(abyte0[j1++]);

                for(int k6 = 0; k6 < 18; k6++)
                    anIntArray1112[k6] = Class35.method560(abyte0[j1++]);

                for(int l6 = 0; l6 < 18; l6++)
                {
                    anIntArray1189[l6] = Class35.method564(abyte0, j1);
                    j1 += 4;
                }

                aLong1284 = 0L;
            } else
            if(i == 177)
            {
                int k1 = 1;
                for(int i7 = 0; i7 < 6; i7++)
                {
                    anIntArray992[i7] = Class35.method565(abyte0, k1);
                    k1 += 2;
                }

            } else
            if(i == 165)
                anInt1237 = 250;
            else
            if(i == 115)
            {
                String s = Class2.method230(Class35.method563(abyte0, 1));
                String s1 = Class2.method230(Class35.method563(abyte0, 9));
                byte byte2 = abyte0[17];
                System.out.println((new StringBuilder()).append("Killer: ").append(s).append(" Killed: ").append(s1).append(" Sprite: ").append(byte2).toString());
            } else
            if(i == 207)
                aBoolean1055 = true;
            else
            if(i == 4)
            {
                int l1 = Class35.method561(abyte0, 1);
                if(aClass31Array999[l1] != null)
                    aString1254 = aClass31Array999[l1].aString294;
                aBoolean1236 = true;
                aBoolean997 = false;
                aBoolean998 = false;
                anInt1243 = 0;
                anInt1183 = 0;
            } else
            if(i == 187)
            {
                aBoolean1236 = false;
                aBoolean1167 = false;
            } else
            if(i == 250)
            {
                anInt1183 = abyte0[1] & 0xff;
                int i2 = 2;
                for(int j7 = 0; j7 < anInt1183; j7++)
                {
                    anIntArray1184[j7] = Class35.method561(abyte0, i2);
                    i2 += 2;
                    anIntArray1185[j7] = Class35.method564(abyte0, i2);
                    i2 += 4;
                }

                aBoolean997 = false;
                aBoolean998 = false;
            } else
            if(i == 92)
                aBoolean997 = abyte0[1] == 1;
            else
            if(i == 253)
            {
                aBoolean1200 = true;
                int j2 = 1;
                int k7 = abyte0[j2++] & 0xff;
                byte byte3 = abyte0[j2++];
                anInt1217 = abyte0[j2++] & 0xff;
                anInt1218 = abyte0[j2++] & 0xff;
                for(int i13 = 0; i13 < 40; i13++)
                    anIntArray1120[i13] = -1;

                for(int j13 = 0; j13 < k7; j13++)
                {
                    anIntArray1120[j13] = Class35.method561(abyte0, j2);
                    j2 += 2;
                    anIntArray1121[j13] = Class35.method561(abyte0, j2);
                    j2 += 2;
                }

                if(byte3 == 1)
                {
                    int k13 = 39;
                    for(int j14 = 0; j14 < anInt979 && k13 >= k7; j14++)
                    {
                        boolean flag2 = false;
                        int l14 = 0;
                        do
                        {
                            if(l14 >= 40)
                                break;
                            if(anIntArray1120[l14] == anIntArray980[j14])
                            {
                                flag2 = true;
                                break;
                            }
                            l14++;
                        } while(true);
                        if(anIntArray980[j14] == 10)
                            flag2 = true;
                        if(!flag2)
                        {
                            anIntArray1120[k13] = anIntArray980[j14] & 0x7fff;
                            anIntArray1121[k13] = 0;
                            k13--;
                        }
                    }

                }
                if(anInt1232 >= 0 && anInt1232 < 40 && anIntArray1120[anInt1232] != anInt1233)
                {
                    anInt1232 = -1;
                    anInt1233 = -2;
                }
            } else
            if(i == 220)
                aBoolean1200 = false;
            else
            if(i == 18)
                aBoolean998 = abyte0[1] == 1;
            else
            if(i == 209)
            {
                for(int k2 = 0; k2 < j - 1; k2++)
                {
                    boolean flag1 = abyte0[k2 + 1] == 1;
                    if(!aBooleanArray996[k2] && flag1)
                        method127("prayeron", false);
                    if(aBooleanArray996[k2] && !flag1)
                        method127("prayeroff", false);
                    aBooleanArray996[k2] = flag1;
                }

            } else
            if(i == 93)
            {
                aBoolean985 = true;
                int l2 = 1;
                anInt1056 = abyte0[l2++] & 0xff;
                anInt1010 = abyte0[l2++] & 0xff;
                for(int l7 = 0; l7 < anInt1056; l7++)
                {
                    anIntArray1139[l7] = Class35.method561(abyte0, l2);
                    l2 += 2;
                    anIntArray1140[l7] = Class35.method562(abyte0, l2);
                    l2 += 4;
                }

                method117();
            } else
            if(i == 171)
                aBoolean985 = false;
            else
            if(i == 211)
            {
                int i3 = abyte0[1] & 0xff;
                int i8 = anIntArray1189[i3];
                anIntArray1189[i3] = Class35.method564(abyte0, 2);
                if(anIntArray1189[i3] > i8)
                    aLong1284 += anIntArray1189[i3] - i8;
            } else
            if(i == 229)
            {
                int j3 = Class35.method561(abyte0, 1);
                if(aClass31Array999[j3] != null)
                    aString974 = aClass31Array999[j3].aString294;
                aBoolean1193 = true;
                anInt952 = 0;
                anInt1050 = 0;
                aBoolean959 = false;
                aBoolean958 = false;
                aBoolean1064 = false;
                aBoolean1065 = false;
                aBoolean1066 = false;
                aBoolean1067 = false;
            } else
            if(i == 160)
            {
                aBoolean1193 = false;
                aBoolean1204 = false;
            } else
            if(i == 251)
            {
                aBoolean1167 = true;
                aBoolean1168 = false;
                aBoolean1236 = false;
                int k3 = 1;
                aLong1235 = Class35.method563(abyte0, k3);
                k3 += 8;
                anInt970 = abyte0[k3++] & 0xff;
                for(int j8 = 0; j8 < anInt970; j8++)
                {
                    anIntArray971[j8] = Class35.method561(abyte0, k3);
                    k3 += 2;
                    anIntArray972[j8] = Class35.method564(abyte0, k3);
                    k3 += 4;
                }

                anInt967 = abyte0[k3++] & 0xff;
                for(int k8 = 0; k8 < anInt967; k8++)
                {
                    anIntArray968[k8] = Class35.method561(abyte0, k3);
                    k3 += 2;
                    anIntArray969[k8] = Class35.method564(abyte0, k3);
                    k3 += 4;
                }

            } else
            if(i == 63)
            {
                anInt1050 = abyte0[1] & 0xff;
                int l3 = 2;
                for(int l8 = 0; l8 < anInt1050; l8++)
                {
                    anIntArray1051[l8] = Class35.method561(abyte0, l3);
                    l3 += 2;
                    anIntArray1052[l8] = Class35.method564(abyte0, l3);
                    l3 += 4;
                }

                aBoolean959 = false;
                aBoolean958 = false;
            } else
            if(i == 198)
            {
                aBoolean1064 = abyte0[1] == 1;
                aBoolean1065 = abyte0[2] == 1;
                aBoolean1066 = abyte0[3] == 1;
                aBoolean1067 = abyte0[4] == 1;
                aBoolean959 = false;
                aBoolean958 = false;
            } else
            if(i == 139)
            {
                int i4 = 1;
                int i9 = abyte0[i4++] & 0xff;
                int k11 = Class35.method561(abyte0, i4);
                i4 += 2;
                int l13 = Class35.method562(abyte0, i4);
                i4 += 4;
                if(l13 == 0)
                {
                    anInt1056--;
                    for(int k14 = i9; k14 < anInt1056; k14++)
                    {
                        anIntArray1139[k14] = anIntArray1139[k14 + 1];
                        anIntArray1140[k14] = anIntArray1140[k14 + 1];
                    }

                } else
                {
                    anIntArray1139[i9] = k11;
                    anIntArray1140[i9] = l13;
                    if(i9 >= anInt1056)
                        anInt1056 = i9 + 1;
                }
                method117();
            } else
            if(i == 228)
            {
                int j4 = 1;
                int j9 = 1;
                int l11 = abyte0[j4++] & 0xff;
                int i14 = Class35.method561(abyte0, j4);
                j4 += 2;
                if(Class3.method236(i14 & 0x7fff).method304())
                {
                    j9 = Class35.method564(abyte0, j4);
                    j4 += 4;
                }
                anIntArray980[l11] = i14 & 0x7fff;
                anIntArray982[l11] = i14 / 32768;
                anIntArray981[l11] = j9;
                if(l11 >= anInt979)
                    anInt979 = l11 + 1;
            } else
            if(i == 191)
            {
                int k4 = abyte0[1] & 0xff;
                anInt979--;
                for(int k9 = k4; k9 < anInt979; k9++)
                {
                    anIntArray980[k9] = anIntArray980[k9 + 1];
                    anIntArray981[k9] = anIntArray981[k9 + 1];
                    anIntArray982[k9] = anIntArray982[k9 + 1];
                }

            } else
            if(i == 208)
            {
                int l4 = 1;
                int l9 = abyte0[l4++] & 0xff;
                int i12 = anIntArray1189[l9];
                anIntArray1034[l9] = Class35.method560(abyte0[l4++]);
                anIntArray1112[l9] = Class35.method560(abyte0[l4++]);
                anIntArray1189[l9] = Class35.method564(abyte0, l4);
                l4 += 4;
                if(anIntArray1189[l9] > i12)
                    aLong1284 += anIntArray1189[l9] - i12;
            } else
            if(i == 65)
                aBoolean959 = abyte0[1] == 1;
            else
            if(i == 197)
                aBoolean958 = abyte0[1] == 1;
            else
            if(i == 147)
            {
                aBoolean1204 = true;
                aBoolean1205 = false;
                aBoolean1193 = false;
                int i5 = 1;
                aLong1253 = Class35.method563(abyte0, i5);
                i5 += 8;
                anInt1069 = abyte0[i5++] & 0xff;
                for(int i10 = 0; i10 < anInt1069; i10++)
                {
                    anIntArray1070[i10] = Class35.method561(abyte0, i5);
                    i5 += 2;
                    anIntArray1071[i10] = Class35.method564(abyte0, i5);
                    i5 += 4;
                }

                anInt1141 = abyte0[i5++] & 0xff;
                for(int j10 = 0; j10 < anInt1141; j10++)
                {
                    anIntArray1142[j10] = Class35.method561(abyte0, i5);
                    i5 += 2;
                    anIntArray1143[j10] = Class35.method564(abyte0, i5);
                    i5 += 4;
                }

                anInt1026 = abyte0[i5++] & 0xff;
                anInt1027 = abyte0[i5++] & 0xff;
                anInt1028 = abyte0[i5++] & 0xff;
                anInt1029 = abyte0[i5++] & 0xff;
            } else
            if(i == 11)
            {
                boolean flag = Class35.method560(abyte0[1]) == 1;
                String s2 = new String(abyte0, 2, j - 2);
                method127(s2, flag);
            } else
            if(i == 23)
            {
                if(anInt1169 < 50)
                {
                    int j5 = abyte0[1] & 0xff;
                    int k10 = abyte0[2] + anInt1157;
                    int j12 = abyte0[3] + anInt1158;
                    anIntArray1068[anInt1169] = j5;
                    anIntArray1194[anInt1169] = 0;
                    anIntArray1215[anInt1169] = k10;
                    anIntArray1053[anInt1169] = j12;
                    anInt1169++;
                }
            } else
            if(i == 248)
            {
                if(!aBoolean1031)
                {
                    anInt954 = Class35.method561(abyte0, 1);
                    anInt955 = Class35.method561(abyte0, 3);
                    aBoolean1293 = abyte0[5] == 1;
                    aString1032 = new String(abyte0, 6, j - 6);
                    aBoolean1093 = true;
                    aBoolean1031 = true;
                }
            } else
            if(i == 148)
            {
                aString973 = new String(abyte0, 1, j - 1);
                aBoolean1030 = true;
                aBoolean1172 = false;
            } else
            if(i == 64)
            {
                aString973 = new String(abyte0, 1, j - 1);
                aBoolean1030 = true;
                aBoolean1172 = true;
            } else
            if(i == 126)
                aLong1276 = Class35.method563(abyte0, 1);
            else
            if(i == 206)
            {
                super.aString38 = "";
                super.aString39 = "";
                try
                {
                    byte abyte1[] = new byte[Array.getLength(abyte0) - 1];
                    for(int l10 = 0; l10 < Array.getLength(abyte1); l10++)
                        abyte1[l10] = abyte0[l10 + 1];

                    BufferedImage bufferedimage = ImageIO.read(new ByteArrayInputStream(abyte1));
                    aBufferedImage1258 = bufferedimage;
                    aClass16_1259 = Class16.method361(aBufferedImage1258);
                }
                catch(Exception exception) { }
                aBoolean1289 = true;
                aString1290 = null;
            } else
            if(i == 39)
                aBoolean1289 = false;
            else
            if(i == 225)
                aString1290 = "Incorrect - Please wait...";
            else
            if(i == 200)
                anInt1277 = Class35.method561(abyte0, 1);
            else
            if(i == 201)
                anInt1278 = Class35.method561(abyte0, 1);
            else
            if(i == 181)
            {
                if(aBoolean1283)
                    method55(false);
            } else
            if(i == 172)
                anInt1083 = Class35.method561(abyte0, 1) * 32;
            else
            if(i == 174)
            {
                aByte1268 = (byte)Class35.method560(abyte0[1]);
                anInt1084 = Class35.method561(abyte0, 2) * 32;
            } else
            if(i == 152)
            {
                byte byte0 = (byte)Class35.method560(abyte0[1]);
                aBoolean960 = (byte0 & 1) != 0;
                aBoolean1063 = (byte0 & 2) == 0;
                aBoolean1210 = (byte0 & 4) == 0;
                aBoolean1282 = (byte0 & 8) == 0;
                aBoolean1283 = (byte0 & 0x10) != 0;
                aBoolean1270 = (byte0 & 0x20) != 0;
                if((byte0 & 0x40) != 0)
                    anInt953 = 0;
                else
                if((byte0 & 0x80) != 0)
                    anInt953 = 1;
                else
                    anInt953 = 2;
            } else
            if(i == 241)
            {
                int k5 = 1;
                byte byte1 = abyte0[k5++];
                for(int k12 = 0; k12 < byte1; k12++)
                {
                    byte byte4 = abyte0[k5++];
                    byte byte5 = abyte0[k5++];
                    if(byte5 == 0)
                        aStringArray1260[byte4] = aStringArray1260[byte4].replaceAll("@red@", "@yel@");
                    else
                        aStringArray1260[byte4] = aStringArray1260[byte4].replaceAll("@red@", "@gre@");
                }

            } else
            if(i == 242)
            {
                if(abyte0[2] == 0)
                    aStringArray1260[abyte0[1]] = aStringArray1260[abyte0[1]].replaceAll("@red@", "@yel@");
                else
                    aStringArray1260[abyte0[1]] = aStringArray1260[abyte0[1]].replaceAll("@yel@", "@gre@");
            } else
            if(i == 243)
                anInt945 = Class35.method561(abyte0, 1);
        }
        catch(RuntimeException runtimeexception)
        {
            runtimeexception.printStackTrace();
            if(anInt950 < 3)
            {
                super.aClass33_Sub1_767.method558(3);
                super.aClass33_Sub1_767.method556(runtimeexception.toString());
                super.aClass33_Sub1_767.method541();
                anInt950++;
            }
        }
    }

    public void method27()
    {
        anInt1084 = 0;
        anInt1083 = 0;
        aBoolean1289 = false;
        if(anInt1086 != 0)
        {
            method41();
            return;
        } else
        {
            super.method27();
            return;
        }
    }

    public void method127(String s, boolean flag)
    {
        if(!flag)
        {
            if(anInputStream_Sub1_1188 == null)
                return;
            if(aBoolean1210)
                return;
            anInputStream_Sub1_1188.method221(aByteArray1240, Class35.method570((new StringBuilder()).append(s).append(".pcm").toString(), aByteArray1240), Class35.method571((new StringBuilder()).append(s).append(".pcm").toString(), aByteArray1240));
        } else
        {
            (new Thread(new Class34(this, s))).start();
        }
    }

    public boolean method128(int i, int j, int k, int l, int i1, int j1, boolean flag, 
            boolean flag1)
    {
        int k1 = aClass17_1170.method363(i, j, k, l, i1, j1, anIntArray1041, anIntArray1042, flag);
        if(k1 == -1)
            if(flag1)
            {
                k1 = 1;
                anIntArray1041[0] = k;
                anIntArray1042[0] = l;
            } else
            {
                return false;
            }
        k1--;
        i = anIntArray1041[k1];
        j = anIntArray1042[k1];
        k1--;
        if(flag1)
            super.aClass33_Sub1_767.method558(7);
        else
            super.aClass33_Sub1_767.method558(6);
        super.aClass33_Sub1_767.method546(i + anInt1035);
        super.aClass33_Sub1_767.method546(j + anInt1036);
        if(flag1 && k1 == -1 && (i + anInt1035) % 5 == 0)
            k1 = 0;
        for(int l1 = k1; l1 >= 0 && l1 > k1 - 25; l1--)
        {
            super.aClass33_Sub1_767.method542(anIntArray1041[l1] - i);
            super.aClass33_Sub1_767.method542(anIntArray1042[l1] - j);
        }

        super.aClass33_Sub1_767.method541();
        anInt1114 = -24;
        anInt1115 = super.anInt31;
        anInt1116 = super.anInt32;
        return true;
    }

    public boolean method129(int i, int j, int k, int l, int i1, int j1, boolean flag, 
            boolean flag1)
    {
        int k1 = aClass17_1170.method363(i, j, k, l, i1, j1, anIntArray1041, anIntArray1042, flag);
        if(k1 == -1)
            return false;
        k1--;
        i = anIntArray1041[k1];
        j = anIntArray1042[k1];
        k1--;
        if(flag1)
            super.aClass33_Sub1_767.method558(7);
        else
            super.aClass33_Sub1_767.method558(6);
        super.aClass33_Sub1_767.method546(i + anInt1035);
        super.aClass33_Sub1_767.method546(j + anInt1036);
        if(flag1 && k1 == -1 && (i + anInt1035) % 5 == 0)
            k1 = 0;
        for(int l1 = k1; l1 >= 0 && l1 > k1 - 25; l1--)
        {
            super.aClass33_Sub1_767.method542(anIntArray1041[l1] - i);
            super.aClass33_Sub1_767.method542(anIntArray1042[l1] - j);
        }

        super.aClass33_Sub1_767.method541();
        anInt1114 = -24;
        anInt1115 = super.anInt31;
        anInt1116 = super.anInt32;
        return true;
    }

    public Image createImage(int i, int j)
    {
        if(Applet_Sub1.aFrame_Sub1_10 != null)
            return Applet_Sub1.aFrame_Sub1_10.createImage(i, j);
        else
            return super.createImage(i, j);
    }

    public void method130()
    {
        int i = anInt1291 / 2 - 234;
        int j = anInt1292 - (anInt1292 / 2 + 131);
        aClass26_Sub1_1195.method428(i, j, 468, 16, 192);
        int k = 0x989898;
        method76(i, j + 16, 468, 246, k, 160);
        method79((new StringBuilder()).append("Please confirm your trade with @yel@").append(Class35.method569(aLong1235)).toString(), i + 234, j + 12, 1, 0xffffff);
        method79("You are about to give:", i + 117, j + 30, 1, 0xffff00);
        for(int l = 0; l < anInt967; l++)
        {
            String s = Class3.method236(anIntArray968[l]).method292();
            if(Class3.method236(anIntArray968[l]).method304())
                s = (new StringBuilder()).append(s).append(" x ").append(method92(anIntArray969[l])).toString();
            method79(s, i + 117, j + 42 + l * 12, 1, 0xffffff);
        }

        if(anInt967 == 0)
            method79("Nothing!", i + 117, j + 42, 1, 0xffffff);
        method79("In return you will receive:", i + 351, j + 30, 1, 0xffff00);
        for(int i1 = 0; i1 < anInt970; i1++)
        {
            String s1 = Class3.method236(anIntArray971[i1]).method292();
            if(Class3.method236(anIntArray971[i1]).method304())
                s1 = (new StringBuilder()).append(s1).append(" x ").append(method92(anIntArray972[i1])).toString();
            method79(s1, i + 351, j + 42 + i1 * 12, 1, 0xffffff);
        }

        if(anInt970 == 0)
            method79("Nothing!", i + 351, j + 42, 1, 0xffffff);
        method79("Are you sure you want to do this?", i + 234, j + 200, 4, 65535);
        method79("There is NO WAY to reverse a trade if you change your mind.", i + 234, j + 215, 1, 0xffffff);
        method79("Remember that not all players are trustworthy", i + 234, j + 230, 1, 0xffffff);
        if(!aBoolean1168)
        {
            aClass26_Sub1_1195.method438((i + 118) - 35, j + 238, 2025);
            aClass26_Sub1_1195.method438((i + 352) - 35, j + 238, 2026);
        } else
        {
            method79("Waiting for other player...", i + 234, j + 250, 1, 0xffff00);
        }
        if(anInt1175 == 1)
        {
            if(super.anInt31 < i || super.anInt32 < j || super.anInt31 > i + 468 || super.anInt32 > j + 262)
            {
                aBoolean1167 = false;
                super.aClass33_Sub1_767.method558(41);
                super.aClass33_Sub1_767.method541();
            }
            if(super.anInt31 >= (i + 118) - 35 && super.anInt31 <= i + 118 + 70 && super.anInt32 >= j + 238 && super.anInt32 <= j + 238 + 21)
            {
                aBoolean1168 = true;
                super.aClass33_Sub1_767.method558(40);
                super.aClass33_Sub1_767.method541();
            }
            if(super.anInt31 >= (i + 352) - 35 && super.anInt31 <= i + 353 + 70 && super.anInt32 >= j + 238 && super.anInt32 <= j + 238 + 21)
            {
                aBoolean1167 = false;
                super.aClass33_Sub1_767.method558(41);
                super.aClass33_Sub1_767.method541();
            }
            anInt1175 = 0;
        }
    }

    public void method131(int i, int j, int k, int l, boolean flag)
    {
        if(method129(i, j, k, l, k, l, false, flag))
        {
            return;
        } else
        {
            method128(i, j, k, l, k, l, true, flag);
            return;
        }
    }

    public Class31 method132(int i, int j, int k, int l, int i1)
    {
        if(aClass31Array1191[i] == null)
        {
            aClass31Array1191[i] = new Class31();
            aClass31Array1191[i].anInt295 = i;
        }
        Class31 class31 = aClass31Array1191[i];
        boolean flag = false;
        int j1 = 0;
        do
        {
            if(j1 >= anInt1004)
                break;
            if(aClass31Array962[j1].anInt295 == i)
            {
                flag = true;
                break;
            }
            j1++;
        } while(true);
        if(flag)
        {
            class31.anInt310 = i1;
            class31.anInt302 = l;
            int k1 = class31.anInt304;
            if(j != class31.anIntArray305[k1] || k != class31.anIntArray306[k1])
            {
                class31.anInt304 = k1 = (k1 + 1) % 10;
                class31.anIntArray305[k1] = j;
                class31.anIntArray306[k1] = k;
            }
        } else
        {
            class31.anInt295 = i;
            class31.anInt303 = 0;
            class31.anInt304 = 0;
            class31.anIntArray305[0] = class31.anInt298 = j;
            class31.anIntArray306[0] = class31.anInt299 = k;
            class31.anInt310 = i1;
            class31.anInt302 = class31.anInt301 = l;
            class31.anInt300 = 0;
        }
        aClass31Array991[anInt1003++] = class31;
        return class31;
    }

    public void method133()
    {
        if(System.currentTimeMillis() - aLong1267 > 50L)
        {
            boolean flag = false;
            if(anInt1175 != 0 && anInt1162 == 0)
                anInt1162 = 1;
            if(anInt1162 > 0)
            {
                int j = super.anInt31 - (anInt1291 - (anInt1291 / 2 + 234));
                int l = super.anInt32 - (anInt1292 / 2 - 139);
                if(j >= 0 && l >= 0 && j < 468 && l < 262)
                {
                    if(j > 216 && l > 30 && j < 462 && l < 235)
                    {
                        int j1 = (j - 217) / 49 + ((l - 31) / 34) * 5;
                        if(j1 >= 0 && j1 < anInt979)
                        {
                            boolean flag2 = false;
                            int i4 = 0;
                            int k5 = anIntArray980[j1];
                            if(Class3.method236(k5).aBoolean807)
                            {
                                if(!flag)
                                    method121("@cya@You cannot trade quest items", 3, 0);
                                flag = true;
                            }
                            if(!flag)
                            {
label0:
                                for(int l6 = 0; l6 < anInt952; l6++)
                                {
                                    if(anIntArray956[l6] != k5)
                                        continue;
                                    if(Class3.method236(k5).method304())
                                    {
                                        int j7 = 0;
                                        do
                                        {
                                            if(j7 >= anInt1162)
                                                continue label0;
                                            if(anIntArray957[l6] < anIntArray981[j1])
                                                anIntArray957[l6]++;
                                            flag2 = true;
                                            j7++;
                                        } while(true);
                                    }
                                    i4++;
                                }

                            }
                            if(!flag && method58(k5) <= i4)
                                flag2 = true;
                            if(!flag && !flag2 && anInt952 < 8)
                            {
                                anIntArray956[anInt952] = k5;
                                anIntArray957[anInt952] = 1;
                                anInt952++;
                                flag2 = true;
                            }
                            if(!flag && flag2)
                            {
                                aLong1267 = System.currentTimeMillis();
                                super.aClass33_Sub1_767.method558(53);
                                super.aClass33_Sub1_767.method542(anInt952);
                                for(int i7 = 0; i7 < anInt952; i7++)
                                {
                                    super.aClass33_Sub1_767.method546(anIntArray956[i7]);
                                    super.aClass33_Sub1_767.method544(anIntArray957[i7]);
                                }

                                super.aClass33_Sub1_767.method541();
                                aBoolean959 = false;
                                aBoolean958 = false;
                            }
                        }
                    }
                    if(!flag && j > 8 && l > 30 && j < 205 && l < 129)
                    {
                        int k1 = (j - 9) / 49 + ((l - 31) / 34) * 4;
                        if(k1 >= 0 && k1 < anInt952)
                        {
                            int i2 = anIntArray956[k1];
                            int j4 = 0;
                            do
                            {
                                if(j4 >= anInt1162)
                                    break;
                                if(Class3.method236(i2).method304() && anIntArray957[k1] > 1)
                                {
                                    anIntArray957[k1]--;
                                } else
                                {
                                    anInt952--;
                                    anInt1161 = 0;
                                    for(int l5 = k1; l5 < anInt952; l5++)
                                    {
                                        anIntArray956[l5] = anIntArray956[l5 + 1];
                                        anIntArray957[l5] = anIntArray957[l5 + 1];
                                    }

                                    break;
                                }
                                j4++;
                            } while(true);
                            aLong1267 = System.currentTimeMillis();
                            super.aClass33_Sub1_767.method558(53);
                            super.aClass33_Sub1_767.method542(anInt952);
                            for(int k4 = 0; k4 < anInt952; k4++)
                            {
                                super.aClass33_Sub1_767.method546(anIntArray956[k4]);
                                super.aClass33_Sub1_767.method544(anIntArray957[k4]);
                            }

                            super.aClass33_Sub1_767.method541();
                            aBoolean959 = false;
                            aBoolean958 = false;
                        }
                    }
                    boolean flag1 = false;
                    if(j >= 93 && l >= 221 && j <= 104 && l <= 232)
                    {
                        aBoolean1064 = !aBoolean1064;
                        flag1 = true;
                    }
                    if(j >= 93 && l >= 240 && j <= 104 && l <= 251)
                    {
                        aBoolean1065 = !aBoolean1065;
                        flag1 = true;
                    }
                    if(j >= 191 && l >= 221 && j <= 202 && l <= 232)
                    {
                        aBoolean1066 = !aBoolean1066;
                        flag1 = true;
                    }
                    if(j >= 191 && l >= 240 && j <= 202 && l <= 251)
                    {
                        aBoolean1067 = !aBoolean1067;
                        flag1 = true;
                    }
                    if(flag1)
                    {
                        super.aClass33_Sub1_767.method558(52);
                        super.aClass33_Sub1_767.method542(aBoolean1064 ? 1 : 0);
                        super.aClass33_Sub1_767.method542(aBoolean1065 ? 1 : 0);
                        super.aClass33_Sub1_767.method542(aBoolean1066 ? 1 : 0);
                        super.aClass33_Sub1_767.method542(aBoolean1067 ? 1 : 0);
                        super.aClass33_Sub1_767.method541();
                        aBoolean959 = false;
                        aBoolean958 = false;
                    }
                    if(j >= 217 && l >= 238 && j <= 286 && l <= 259)
                    {
                        aLong1267 = System.currentTimeMillis();
                        aBoolean958 = true;
                        super.aClass33_Sub1_767.method558(49);
                        super.aClass33_Sub1_767.method541();
                    }
                    if(j >= 394 && l >= 238 && j < 463 && l < 259)
                    {
                        aBoolean1193 = false;
                        super.aClass33_Sub1_767.method558(51);
                        super.aClass33_Sub1_767.method541();
                    }
                } else
                if(anInt1175 != 0)
                {
                    aBoolean1193 = false;
                    super.aClass33_Sub1_767.method558(51);
                    super.aClass33_Sub1_767.method541();
                }
                anInt1175 = 0;
                anInt1162 = 0;
            }
        }
        if(!aBoolean1193)
            return;
        int i = anInt1291 / 2 - 234;
        int k = anInt1292 / 2 - 140;
        aClass26_Sub1_1195.method428(i, k, 468, 12, 0xc90b1d);
        int i1 = 0x989898;
        method76(i, k + 12, 468, 18, i1, 160);
        method76(i, k + 30, 8, 248, i1, 160);
        method76(i + 205, k + 30, 11, 248, i1, 160);
        method76(i + 462, k + 30, 6, 248, i1, 160);
        method76(i + 8, k + 99, 197, 24, i1, 160);
        method76(i + 8, k + 192, 197, 23, i1, 160);
        method76(i + 8, k + 258, 197, 20, i1, 160);
        method76(i + 216, k + 235, 246, 43, i1, 160);
        int l1 = 0xd0d0d0;
        method76(i + 8, k + 30, 197, 69, l1, 160);
        method76(i + 8, k + 123, 197, 69, l1, 160);
        method76(i + 8, k + 215, 197, 43, l1, 160);
        method76(i + 216, k + 30, 246, 205, l1, 160);
        for(int j2 = 0; j2 < 3; j2++)
            method77(i + 8, k + 30 + j2 * 34, 197, 0);

        for(int k2 = 0; k2 < 3; k2++)
            method77(i + 8, k + 123 + k2 * 34, 197, 0);

        for(int l2 = 0; l2 < 7; l2++)
            method77(i + 216, k + 30 + l2 * 34, 246, 0);

        for(int i3 = 0; i3 < 6; i3++)
        {
            if(i3 < 5)
                method78(i + 8 + i3 * 49, k + 30, 69, 0);
            if(i3 < 5)
                method78(i + 8 + i3 * 49, k + 123, 69, 0);
            method78(i + 216 + i3 * 49, k + 30, 205, 0);
        }

        method77(i + 8, k + 215, 197, 0);
        method77(i + 8, k + 257, 197, 0);
        method78(i + 8, k + 215, 43, 0);
        method78(i + 204, k + 215, 43, 0);
        method80((new StringBuilder()).append("Preparing to duel with: ").append(aString974).toString(), i + 1, k + 10, 1, 0xffffff);
        method80("Your Stake", i + 9, k + 27, 4, 0xffffff);
        method80("Opponent's Stake", i + 9, k + 120, 4, 0xffffff);
        method80("Duel Options", i + 9, k + 212, 4, 0xffffff);
        method80("Your Inventory", i + 216, k + 27, 4, 0xffffff);
        method80("No retreating", i + 8 + 1, k + 215 + 16, 3, 0xffff00);
        method80("No magic", i + 8 + 1, k + 215 + 35, 3, 0xffff00);
        method80("No prayer", i + 8 + 102, k + 215 + 16, 3, 0xffff00);
        method80("No weapons", i + 8 + 102, k + 215 + 35, 3, 0xffff00);
        aClass26_Sub1_1195.method429(i + 93, k + 215 + 6, 11, 11, 0xffff00);
        if(aBoolean1064)
            aClass26_Sub1_1195.method428(i + 95, k + 215 + 8, 7, 7, 0xffff00);
        aClass26_Sub1_1195.method429(i + 93, k + 215 + 25, 11, 11, 0xffff00);
        if(aBoolean1065)
            aClass26_Sub1_1195.method428(i + 95, k + 215 + 27, 7, 7, 0xffff00);
        aClass26_Sub1_1195.method429(i + 191, k + 215 + 6, 11, 11, 0xffff00);
        if(aBoolean1066)
            aClass26_Sub1_1195.method428(i + 193, k + 215 + 8, 7, 7, 0xffff00);
        aClass26_Sub1_1195.method429(i + 191, k + 215 + 25, 11, 11, 0xffff00);
        if(aBoolean1067)
            aClass26_Sub1_1195.method428(i + 193, k + 215 + 27, 7, 7, 0xffff00);
        if(!aBoolean958)
            aClass26_Sub1_1195.method438(i + 217, k + 238, 2025);
        aClass26_Sub1_1195.method438(i + 394, k + 238, 2026);
        if(aBoolean959)
        {
            method79("Other player", i + 341, k + 246, 1, 0xffffff);
            method79("has accepted", i + 341, k + 256, 1, 0xffffff);
        }
        if(aBoolean958)
        {
            method79("Waiting for", i + 217 + 35, k + 246, 1, 0xffffff);
            method79("other player", i + 217 + 35, k + 256, 1, 0xffffff);
        }
        for(int j3 = 0; j3 < anInt979; j3++)
        {
            int l4 = 217 + i + (j3 % 5) * 49;
            int i6 = 31 + k + (j3 / 5) * 34;
            aClass26_Sub1_1195.method452(l4, i6, 48, 32, 2150 + Class3.method236(anIntArray980[j3]).method302(), Class3.method236(anIntArray980[j3]).method306(), 0, 0, false);
            if(Class3.method236(anIntArray980[j3]).method304())
                method80(method69(String.valueOf(anIntArray981[j3])), l4 + 1, i6 + 10, 1, 0xffff00);
        }

        for(int k3 = 0; k3 < anInt952; k3++)
        {
            int i5 = 9 + i + (k3 % 4) * 49;
            int j6 = 31 + k + (k3 / 4) * 34;
            aClass26_Sub1_1195.method452(i5, j6, 48, 32, 2150 + Class3.method236(anIntArray956[k3]).method302(), Class3.method236(anIntArray956[k3]).method306(), 0, 0, false);
            if(Class3.method236(anIntArray956[k3]).method304())
                method80(method69((new StringBuilder()).append("").append(String.valueOf(anIntArray957[k3])).toString()), i5 + 1, j6 + 10, 1, 0xffff00);
            if(super.anInt31 > i5 && super.anInt31 < i5 + 48 && super.anInt32 > j6 && super.anInt32 < j6 + 32)
                method80((new StringBuilder()).append(Class3.method236(anIntArray956[k3]).method292()).append(": @whi@").append(Class3.method236(anIntArray956[k3]).method293()).toString(), i + 8, k + 273, 1, 0xffff00);
        }

        for(int l3 = 0; l3 < anInt1050; l3++)
        {
            int j5 = 9 + i + (l3 % 4) * 49;
            int k6 = 124 + k + (l3 / 4) * 34;
            aClass26_Sub1_1195.method452(j5, k6, 48, 32, 2150 + Class3.method236(anIntArray1051[l3]).method302(), Class3.method236(anIntArray1051[l3]).method306(), 0, 0, false);
            if(Class3.method236(anIntArray1051[l3]).method304())
                method80(String.valueOf(anIntArray1052[l3]), j5 + 1, k6 + 10, 1, 0xffff00);
            if(super.anInt31 > j5 && super.anInt31 < j5 + 48 && super.anInt32 > k6 && super.anInt32 < k6 + 32)
                method80((new StringBuilder()).append(Class3.method236(anIntArray1051[l3]).method292()).append(": @whi@").append(Class3.method236(anIntArray1051[l3]).method293()).toString(), i + 8, k + 273, 1, 0xffff00);
        }

    }

    public void method134(String s)
    {
        for(int i = 2; i > 0; i--)
        {
            aStringArray946[i] = aStringArray946[i - 1];
            anIntArray947[i] = anIntArray947[i - 1];
        }

        aStringArray946[0] = s;
        anIntArray947[0] = 300;
    }

    public void method135()
    {
        for(int i = 0; i < 3; i++)
            if(anIntArray947[i] > 0)
            {
                method79(aStringArray946[i], anInt1291 / 2, 16 + i * 12, 1, 0xffffff);
                anIntArray947[i]--;
            }

    }

    public void method136()
    {
        char c = '\u0190';
        char c1 = 'd';
        if(aBoolean1172)
        {
            c1 = '\u01C2';
            c1 = '\u012C';
        }
        aClass26_Sub1_1195.method428(anInt1291 / 2 - c / 2, anInt1292 / 2 - c1 / 2, c, c1, 0);
        aClass26_Sub1_1195.method429(anInt1291 / 2 - c / 2, anInt1292 / 2 - c1 / 2, c, c1, 0xffffff);
        aClass26_Sub1_1195.method459(aString973, anInt1291 / 2, (anInt1292 / 2 - c1 / 2) + 20, 1, 0xffffff, c - 40);
        int i = 0xffffff;
        if(super.anInt32 > (anInt1292 / 2 + c1 / 2) - 15 && super.anInt32 <= (anInt1292 / 2 + c1 / 2) - 4 && super.anInt31 > anInt1291 / 2 - 75 && super.anInt31 < anInt1291 / 2 + 75)
            i = 0xff0000;
        method79("Close Window", anInt1291 / 2, (anInt1292 / 2 + c1 / 2) - 7, 1, i);
        if(anInt1175 == 1)
        {
            if(i == 0xff0000)
                aBoolean1030 = false;
            if(super.anInt31 < anInt1291 / 2 - 200 || super.anInt31 > anInt1291 / 2 + 200 || super.anInt32 < anInt1292 / 2 - 150 || super.anInt32 > anInt1292 / 2 + 150)
                aBoolean1030 = false;
        }
        anInt1175 = 0;
    }

    public void method137()
    {
        aClass30_1082 = new Class30(aClass26_Sub1_1195, 50);
        int i = 40;
        aClass30_1082.method489(anInt1246 / 2, anInt1247 / 2 + i, "Welcome to RSCEmulation!", 4, true);
        aClass30_1082.method489(anInt1246 / 2, anInt1247 / 2 + i + 30, "http://www.RSCEmulation.net", 4, true);
        aClass30_1082.method490(anInt1246 / 2, anInt1247 / 2 + i + 60, 200, 35);
        aClass30_1082.method489(anInt1246 / 2, anInt1247 / 2 + i + 60, "Login", 5, false);
        anInt963 = aClass30_1082.method497(anInt1246 / 2, anInt1247 / 2 + i + 60, 200, 35);
        aClass30_1079 = new Class30(aClass26_Sub1_1195, 50);
        i = 50;
        anInt1102 = aClass30_1079.method489(anInt1246 / 2, (anInt1247 / 2 + i) - 10, "", 4, true);
        i += 28;
        aClass30_1079.method490(anInt1246 / 2 - 125, anInt1247 / 2 + i, 200, 40);
        aClass30_1079.method489(anInt1246 / 2 - 125, (anInt1247 / 2 + i) - 10, "Username:", 4, false);
        anInt1103 = aClass30_1079.method495(anInt1246 / 2 - 125, anInt1247 / 2 + i + 10, 200, 40, 4, 12, false, false);
        i += 47;
        aClass30_1079.method490(anInt1246 / 2 - 125, anInt1247 / 2 + i, 200, 40);
        aClass30_1079.method489(anInt1246 / 2 - 125, (anInt1247 / 2 + i) - 10, "Password:", 4, false);
        anInt1104 = aClass30_1079.method495(anInt1246 / 2 - 125, anInt1247 / 2 + i + 10, 200, 40, 4, 20, true, false);
        i -= 55;
        aClass30_1079.method490(anInt1246 / 2 + 120, anInt1247 / 2 + i, 120, 25);
        aClass30_1079.method489(anInt1246 / 2 + 120, anInt1247 / 2 + i, "Login", 4, false);
        anInt1105 = aClass30_1079.method497(anInt1246 / 2 + 120, anInt1247 / 2 + i, 120, 25);
        i += 30;
        aClass30_1079.method490(anInt1246 / 2 + 120, anInt1247 / 2 + i, 120, 25);
        aClass30_1079.method489(anInt1246 / 2 + 120, anInt1247 / 2 + i, "Cancel", 4, false);
        anInt1106 = aClass30_1079.method497(anInt1246 / 2 + 120, anInt1247 / 2 + i, 120, 25);
        i += 30;
        aClass30_1079.method506(anInt1103);
    }

    public void method138()
    {
        if(anInt1086 != 0)
            method68();
        else
        if(aBoolean1093)
            method74();
        else
        if(aBoolean1030)
            method136();
        else
        if(anInt1209 == 1)
            method85();
        else
        if(aBoolean985 && anInt949 == 0)
            method67();
        else
        if(aBoolean1200 && anInt949 == 0)
            method109();
        else
        if(aBoolean1167)
            method130();
        else
        if(aBoolean1236)
            method123();
        else
        if(aBoolean1204)
            method116();
        else
        if(aBoolean1193)
            method133();
        else
        if(anInt1025 == 1)
            method61();
        else
        if(anInt1025 == 2)
            method119();
        else
        if(anInt1059 != 0)
            method142();
        else
        if(aBoolean1302)
            method139();
        else
        if(aBoolean1305)
        {
            method140();
        } else
        {
            if(aBoolean1013)
                method96();
            if((aClass31_1156.anInt301 == 8 || aClass31_1156.anInt301 == 9 || anInt953 == 0) && anInt953 != 2)
                method115();
            method87();
            boolean flag = !aBoolean1013 && !aBoolean1211;
            if(flag)
                anInt1049 = 0;
            if(anInt1011 == 0 && flag)
                method100();
            if(anInt1011 == 1)
                method70(flag);
            if(anInt1011 == 2)
                method148(flag);
            if(anInt1011 == 3)
                method81(flag);
            if(anInt1011 == 4)
                method108(flag);
            if(anInt1011 == 5)
                method106(flag);
            if(anInt1011 == 6)
                method112(flag);
            if(!aBoolean1211 && !aBoolean1013)
                method105();
            if(aBoolean1211 && !aBoolean1013)
                method95();
        }
        anInt1175 = 0;
    }

    public void method139()
    {
        anInt1309 = 0;
        int i = anInt1292 / 2 - 55;
        for(int j = 0; j < 10; j++)
        {
            if(super.anInt31 > anInt1291 / 2 - 160 && super.anInt31 < anInt1291 / 2 + 160 && super.anInt32 >= i - 12 && super.anInt32 < i + 3 && (aClass31_1156.anInt292 == 5 && j + 1 < 7 || aClass31_1156.anInt292 == 6 && j + 1 < 10 || aClass31_1156.anInt292 == 1 || aClass31_1156.anInt292 == 2 || aClass31_1156.anInt292 == 3))
                anInt1309 = j + 1;
            i += 15;
        }

        if(anInt1175 != 0 && anInt1309 != 0)
        {
            anInt1175 = 0;
            super.aString38 = "";
            super.aString39 = "";
            switch(anInt1309)
            {
            case 1: // '\001'
                aString1307 = "Enter the reason for the action taken: ";
                aString1308 = "Reason: ";
                break;

            case 2: // '\002'
                aString1307 = "Enter the reason for the action taken: ";
                aString1308 = "Reason: ";
                break;

            case 3: // '\003'
                aString1307 = "Enter the time interval: ";
                aString1308 = "Minutes: ";
                break;

            case 4: // '\004'
                aString1307 = "Enter the reason for the action taken: ";
                aString1308 = "Reason: ";
                break;

            case 5: // '\005'
                aString1307 = "Enter the reason for the action taken: ";
                aString1308 = "Reason: ";
                break;

            case 6: // '\006'
                aString1307 = "Enter the time interval: ";
                aString1308 = "Minutes: ";
                break;

            case 7: // '\007'
                aString1307 = "Enter the reason for the action taken: ";
                aString1308 = "Reason: ";
                break;

            case 8: // '\b'
                aString1307 = "Enter the reason for the action taken: ";
                aString1308 = "Reason: ";
                break;

            case 9: // '\t'
                aString1307 = "Enter the time interval: ";
                aString1308 = "Minutes: ";
                break;

            case 10: // '\n'
                aString1307 = "Enter the reason for the action taken: ";
                aString1308 = "Reason: ";
                break;
            }
            aBoolean1302 = !aBoolean1302;
            aBoolean1305 = true;
            return;
        }
        i += 15;
        if(anInt1175 != 0)
        {
            anInt1175 = 0;
            if(method45(anInt1291 / 2 - 160, anInt1291 / 2 + 160, anInt1292 / 2 + 90, anInt1292 / 2 + 100))
            {
                aBoolean1302 = !aBoolean1302;
                return;
            }
            if(!method45(anInt1291 / 2 - 160, anInt1291 / 2 + 160, anInt1292 / 2 - 100, anInt1292 / 2 + 100))
            {
                aBoolean1302 = !aBoolean1302;
                return;
            }
        }
        aClass26_Sub1_1195.method428(anInt1291 / 2 - 160, anInt1292 / 2 - 100, 320, 205, 0);
        aClass26_Sub1_1195.method429(anInt1291 / 2 - 160, anInt1292 / 2 - 100, 320, 205, 0xffffff);
        i = -55;
        method79((new StringBuilder()).append("Staff Menu logged in as: ").append(aClass31_1156.aString294).toString(), anInt1291 / 2, anInt1292 / 2 - 85, 4, 0xffffff);
        method79("Warning - ALL staff transactions are logged", anInt1291 / 2, anInt1292 / 2 - 70, 3, 0xff0000);
        int k = 1;
        String as[] = Class4.aStringArray70;
        int l = as.length;
        for(int i1 = 0; i1 < l; i1++)
        {
            String s = as[i1];
            if(anInt1309 == k)
            {
                aClass26_Sub1_1195.method429(anInt1291 / 2 - 100, (anInt1292 / 2 + i) - 12, 200, 15, 0xffffff);
                method79((new StringBuilder()).append(s).append(aString1303).toString(), anInt1291 / 2, anInt1292 / 2 + i, 2, 0xff8000);
            } else
            {
                method79((new StringBuilder()).append(s).append(aString1303).toString(), anInt1291 / 2, anInt1292 / 2 + i, 2, 0xffffff);
            }
            k++;
            i += 15;
        }

        if(method45(anInt1291 / 2 - 160, anInt1291 / 2 + 160, (anInt1292 / 2 + i) - 12, anInt1292 / 2 + i + 3))
        {
            aClass26_Sub1_1195.method429(anInt1291 / 2 - 100, (anInt1292 / 2 + i) - 12, 200, 15, 0xffffff);
            method79("Close Window", anInt1291 / 2, anInt1292 / 2 + i, 2, 0xff8000);
        } else
        {
            method79("Close Window", anInt1291 / 2, anInt1292 / 2 + i, 2, 0xffffff);
        }
    }

    public void method140()
    {
        if(super.aString39.length() > 0)
        {
            String s = super.aString39.trim();
            super.aString38 = "";
            super.aString39 = "";
            if(s.length() > 0)
                if(aString1308.equals("Reason: "))
                {
                    aBoolean1305 = !aBoolean1305;
                    aString1306 = s;
                    System.out.println((new StringBuilder()).append("IDX: ").append(anInt1310).toString());
                    switch(anInt1309)
                    {
                    case 1: // '\001'
                        super.aClass33_Sub1_767.method558(77);
                        super.aClass33_Sub1_767.method542(0);
                        super.aClass33_Sub1_767.method546(anInt1310);
                        super.aClass33_Sub1_767.method556(aString1306);
                        super.aClass33_Sub1_767.method541();
                        break;

                    case 2: // '\002'
                        super.aClass33_Sub1_767.method558(77);
                        super.aClass33_Sub1_767.method542(1);
                        super.aClass33_Sub1_767.method546(anInt1310);
                        super.aClass33_Sub1_767.method556(aString1306);
                        super.aClass33_Sub1_767.method541();
                        break;

                    case 3: // '\003'
                        super.aClass33_Sub1_767.method558(77);
                        super.aClass33_Sub1_767.method542(2);
                        super.aClass33_Sub1_767.method546(anInt1310);
                        super.aClass33_Sub1_767.method544(anInt1304);
                        super.aClass33_Sub1_767.method556(aString1306);
                        super.aClass33_Sub1_767.method541();
                        break;

                    case 4: // '\004'
                        super.aClass33_Sub1_767.method558(77);
                        super.aClass33_Sub1_767.method542(3);
                        super.aClass33_Sub1_767.method546(anInt1310);
                        super.aClass33_Sub1_767.method556(aString1306);
                        super.aClass33_Sub1_767.method541();
                        break;

                    case 5: // '\005'
                        super.aClass33_Sub1_767.method558(77);
                        super.aClass33_Sub1_767.method542(4);
                        super.aClass33_Sub1_767.method546(anInt1310);
                        super.aClass33_Sub1_767.method556(aString1306);
                        super.aClass33_Sub1_767.method541();
                        break;

                    case 6: // '\006'
                        super.aClass33_Sub1_767.method558(77);
                        super.aClass33_Sub1_767.method542(5);
                        super.aClass33_Sub1_767.method546(anInt1310);
                        super.aClass33_Sub1_767.method544(anInt1304);
                        super.aClass33_Sub1_767.method556(aString1306);
                        super.aClass33_Sub1_767.method541();
                        break;

                    case 7: // '\007'
                        super.aClass33_Sub1_767.method558(77);
                        super.aClass33_Sub1_767.method542(6);
                        super.aClass33_Sub1_767.method546(anInt1310);
                        super.aClass33_Sub1_767.method556(aString1306);
                        super.aClass33_Sub1_767.method541();
                        break;

                    case 8: // '\b'
                        super.aClass33_Sub1_767.method558(77);
                        super.aClass33_Sub1_767.method542(7);
                        super.aClass33_Sub1_767.method546(anInt1310);
                        super.aClass33_Sub1_767.method556(aString1306);
                        super.aClass33_Sub1_767.method541();
                        break;

                    case 9: // '\t'
                        super.aClass33_Sub1_767.method558(77);
                        super.aClass33_Sub1_767.method542(8);
                        super.aClass33_Sub1_767.method546(anInt1310);
                        super.aClass33_Sub1_767.method544(anInt1304);
                        super.aClass33_Sub1_767.method556(aString1306);
                        super.aClass33_Sub1_767.method541();
                        break;

                    case 10: // '\n'
                        super.aClass33_Sub1_767.method558(77);
                        super.aClass33_Sub1_767.method542(9);
                        super.aClass33_Sub1_767.method546(anInt1310);
                        super.aClass33_Sub1_767.method556(aString1306);
                        super.aClass33_Sub1_767.method541();
                        break;
                    }
                    aString1303 = "";
                    anInt1304 = -1;
                    aString1306 = "";
                } else
                if(aString1308.equals("Minutes: "))
                {
                    try
                    {
                        anInt1304 = Integer.parseInt(s);
                        aString1307 = "";
                        aString1308 = "";
                        aString1307 = "Enter the reason for the action taken: ";
                        aString1308 = "Reason: ";
                        return;
                    }
                    catch(Exception exception)
                    {
                        method120("@red@Invalid time - please re-enter");
                    }
                    return;
                }
            aString1307 = "";
            aString1308 = "";
            return;
        }
        aClass26_Sub1_1195.method428(anInt1291 / 2 - 200, anInt1292 / 2 - 50, 400, 100, 0);
        aClass26_Sub1_1195.method429(anInt1291 / 2 - 200, anInt1292 / 2 - 50, 400, 100, 0xffffff);
        int i = anInt1292 / 2 - 30;
        method79(aString1307, anInt1291 / 2, i, 1, 0xffff00);
        i += 18;
        method79((new StringBuilder()).append(aString1308).append(super.aString38).append("*").toString(), anInt1291 / 2, i, 4, 0xffffff);
        i = anInt1292 / 2 + 38;
        int j = 0xffffff;
        if(super.anInt31 > anInt1291 / 2 - 200 && super.anInt31 < anInt1291 / 2 + 200 && super.anInt32 > i - 13 && super.anInt32 < i + 2)
        {
            j = 0xffff00;
            if(anInt1175 == 1)
            {
                anInt1175 = 0;
                aBoolean1305 = !aBoolean1305;
            }
        }
        method79("Cancel", anInt1291 / 2, i, 1, j);
        if(anInt1175 == 1 && (super.anInt31 < anInt1291 / 2 - 200 || super.anInt31 > anInt1291 / 2 + 200 || super.anInt32 < anInt1292 / 2 - 50 || super.anInt32 > anInt1292 / 2 + 50))
        {
            anInt1175 = 0;
            aBoolean1305 = !aBoolean1305;
        }
    }

    public int method141(int i, int j, int k, int l, boolean flag)
    {
        method128(i, j, k, l, k, l, false, flag);
        return 117;
    }

    public void method142()
    {
        if(anInt1175 != 0)
        {
            anInt1175 = 0;
            if(anInt1059 == 1 && (super.anInt31 < anInt1291 / 2 - 150 || super.anInt32 < anInt1292 / 2 - 35 || super.anInt31 > anInt1291 / 2 + 150 || super.anInt32 > anInt1292 / 2 + 35) || super.anInt31 > anInt1291 / 2 - 20 && super.anInt31 < anInt1291 / 2 + 20 && super.anInt32 > anInt1292 / 2 + 15 && super.anInt32 < anInt1292 / 2 + 35)
            {
                anInt1059 = 0;
                return;
            }
            if(anInt1059 == 2 && (super.anInt31 < anInt1291 / 2 - 250 || super.anInt32 < anInt1292 / 2 - 35 || super.anInt31 > anInt1291 / 2 + 250 || super.anInt32 > anInt1292 / 2 + 35) || super.anInt31 > anInt1291 / 2 - 20 && super.anInt31 < anInt1291 / 2 + 20 && super.anInt32 > anInt1292 / 2 + 15 && super.anInt32 < anInt1292 / 2 + 35)
            {
                anInt1059 = 0;
                return;
            }
            if(anInt1059 == 3 && (super.anInt31 < anInt1291 / 2 - 150 || super.anInt32 < anInt1292 / 2 - 35 || super.anInt31 > anInt1291 / 2 + 150 || super.anInt32 > anInt1292 / 2 + 35) || super.anInt31 > anInt1291 / 2 - 20 && super.anInt31 < anInt1291 / 2 + 20 && super.anInt32 > anInt1292 / 2 + 15 && super.anInt32 < anInt1292 / 2 + 35)
            {
                anInt1059 = 0;
                return;
            }
            if(super.anInt31 > anInt1291 / 2 - 20 && super.anInt31 < anInt1291 / 2 + 20 && super.anInt32 > anInt1292 / 2 - 10 && super.anInt32 < anInt1292 / 2 + 10)
            {
                anInt1059 = 0;
                return;
            }
        }
        int i = 145;
        if(anInt1059 == 1)
        {
            aClass26_Sub1_1195.method428(anInt1291 / 2 - 150, anInt1292 / 2 - 35, 300, 70, 0);
            aClass26_Sub1_1195.method429(anInt1291 / 2 - 150, anInt1292 / 2 - 35, 300, 70, 0xffffff);
            i += 20;
            method79("Add Friend", anInt1291 / 2, anInt1292 / 2 - 15, 4, 0xffffff);
            i += 20;
            method79((new StringBuilder()).append(super.aString38).append("*").toString(), anInt1291 / 2, anInt1292 / 2 + 5, 4, 0xffffff);
            if(super.aString39.length() > 0)
            {
                String s = super.aString39.trim();
                super.aString38 = "";
                super.aString39 = "";
                anInt1059 = 0;
                if(s.length() > 0 && Class35.method568(s) != aClass31_1156.aLong293)
                    method34(s);
            }
        }
        if(anInt1059 == 2)
        {
            aClass26_Sub1_1195.method428(anInt1291 / 2 - 250, anInt1292 / 2 - 35, 500, 70, 0);
            aClass26_Sub1_1195.method429(anInt1291 / 2 - 250, anInt1292 / 2 - 35, 500, 70, 0xffffff);
            i += 20;
            method79((new StringBuilder()).append("Enter message to send to ").append(Class35.method569(aLong1252)).toString(), anInt1291 / 2 - 15, anInt1292 / 2 - 17, 4, 0xffffff);
            i += 20;
            method79((new StringBuilder()).append(super.aString40).append("*").toString(), anInt1291 / 2, anInt1292 / 2 + 5, 4, 0xffffff);
            if(super.aString41.length() > 0)
            {
                String s1 = super.aString41;
                super.aString40 = "";
                super.aString41 = "";
                anInt1059 = 0;
                byte abyte0[] = Class2.method228(s1);
                method36(aLong1252, abyte0, abyte0.length);
                s1 = Class2.method229(abyte0, 0, abyte0.length);
                method44((new StringBuilder()).append("@pri@@cya@You tell ").append(Class35.method569(aLong1252)).append(": ").append(Class1.method225(s1)).toString());
            }
        }
        if(anInt1059 == 3)
        {
            aClass26_Sub1_1195.method428(anInt1291 / 2 - 150, anInt1292 / 2 - 35, 300, 70, 0);
            aClass26_Sub1_1195.method429(anInt1291 / 2 - 150, anInt1292 / 2 - 35, 300, 70, 0xffffff);
            i += 20;
            method79("Add To Ignore List", anInt1291 / 2, anInt1292 / 2 - 15, 4, 0xffffff);
            i += 20;
            method79((new StringBuilder()).append(super.aString38).append("*").toString(), anInt1291 / 2, anInt1292 / 2 + 5, 4, 0xffffff);
            if(super.aString39.length() > 0)
            {
                String s2 = super.aString39.trim();
                super.aString38 = "";
                super.aString39 = "";
                anInt1059 = 0;
                if(s2.length() > 0 && Class35.method568(s2) != aClass31_1156.aLong293)
                    method32(s2);
            }
        }
        int j = 0xffffff;
        if(super.anInt31 > anInt1291 / 2 - 20 && super.anInt31 < anInt1291 / 2 + 20 && super.anInt32 > anInt1292 / 2 + 15 && super.anInt32 < anInt1292 / 2 + 35)
            j = 0xffff00;
        method79("Cancel", anInt1291 / 2, anInt1292 / 2 + 25, 1, j);
    }

    public boolean method143(int i, int j)
    {
        if(i == 31 && (method145(197) || method145(615) || method145(682)))
            return true;
        if(i == 32 && (method145(102) || method145(616) || method145(683)))
            return true;
        if(i == 33 && (method145(101) || method145(617) || method145(684)))
            return true;
        if(i == 34 && (method145(103) || method145(618) || method145(685)))
            return true;
        else
            return method58(i) >= j;
    }

    public void method144()
    {
        super.aString40 = "";
        super.aString41 = "";
    }

    public boolean method145(int i)
    {
        for(int j = 0; j < anInt979; j++)
            if(anIntArray980[j] == i && anIntArray982[j] == 1)
                return true;

        return false;
    }

    public void method146(int i, int j, int k)
    {
        aClass26_Sub1_1195.method432(i, j, k);
        aClass26_Sub1_1195.method432(i - 1, j, k);
        aClass26_Sub1_1195.method432(i + 1, j, k);
        aClass26_Sub1_1195.method432(i, j - 1, k);
        aClass26_Sub1_1195.method432(i, j + 1, k);
    }

    public void method147()
    {
        for(int i = 0; i < anInt983; i++)
        {
            int l = aClass26_Sub1_1195.method464(1);
            int k1 = anIntArray987[i];
            int j2 = anIntArray988[i];
            int i3 = anIntArray989[i];
            int k3 = anIntArray990[i];
            for(boolean flag = true; flag;)
            {
                flag = false;
                int j4 = 0;
                while(j4 < i) 
                {
                    if(j2 + k3 > anIntArray988[j4] - l && j2 - l < anIntArray988[j4] + anIntArray990[j4] && k1 - i3 < anIntArray987[j4] + anIntArray989[j4] && k1 + i3 > anIntArray987[j4] - anIntArray989[j4] && anIntArray988[j4] - l - k3 < j2)
                    {
                        j2 = anIntArray988[j4] - l - k3;
                        flag = true;
                    }
                    j4++;
                }
            }

            anIntArray988[i] = j2;
            aClass26_Sub1_1195.method459(aStringArray984[i], k1, j2, 1, 0xffff00, 300);
        }

        for(int j = 0; j < anInt995; j++)
        {
            int i1 = anIntArray1137[j];
            int l1 = anIntArray1138[j];
            int k2 = anIntArray1001[j];
            int j3 = anIntArray1002[j];
            int l3 = (39 * k2) / 100;
            int i4 = (27 * k2) / 100;
            int k4 = l1 - i4;
            aClass26_Sub1_1195.method441(i1 - l3 / 2, k4, l3, i4, 2009, 85);
            int l4 = (36 * k2) / 100;
            int i5 = (24 * k2) / 100;
            aClass26_Sub1_1195.method452(i1 - l4 / 2, (k4 + i4 / 2) - i5 / 2, l4, i5, Class3.method236(j3).method302() + 2150, Class3.method236(j3).method306(), 0, 0, false);
        }

        for(int k = 0; k < anInt1014; k++)
        {
            int j1 = anIntArray1072[k];
            int i2 = anIntArray1073[k];
            int l2 = anIntArray1074[k];
            method76(j1 - 15, i2 - 3, l2, 5, 65280, 192);
            method76((j1 - 15) + l2, i2 - 3, 30 - l2, 5, 0xff0000, 192);
        }

    }

    public void method148(boolean flag)
    {
        int i = ((Class26) (aClass26_Sub1_1195)).anInt169 - 199;
        char c = '\234';
        char c1 = '\230';
        aClass26_Sub1_1195.method438(i - 49, 3, 2002);
        i += 40;
        aClass26_Sub1_1195.method428(i, 36, c, c1, 0);
        aClass26_Sub1_1195.method421(i, 36, i + c, 36 + c1);
        int j = 192 + anInt1256;
        int k = anInt1085 + anInt1255 & 0xff;
        int l = ((aClass31_1156.anInt298 - 6040) * 3 * j) / 2048;
        int i1 = ((aClass31_1156.anInt299 - 6040) * 3 * j) / 2048;
        int j1 = Class42.anIntArray463[1024 - k * 4 & 0x3ff];
        int k1 = Class42.anIntArray463[(1024 - k * 4 & 0x3ff) + 1024];
        int l1 = i1 * j1 + l * k1 >> 18;
        i1 = i1 * k1 - l * j1 >> 18;
        l = l1;
        aClass26_Sub1_1195.method448((i + c / 2) - l, 36 + c1 / 2 + i1, 1999, k + 64 & 0xff, j);
        for(int i2 = 0; i2 < anInt1242; i2++)
        {
            int j3 = (((anIntArray1150[i2] * 128 + 64) - aClass31_1156.anInt298) * 3 * j) / 2048;
            int l3 = (((anIntArray1151[i2] * 128 + 64) - aClass31_1156.anInt299) * 3 * j) / 2048;
            int l4 = l3 * j1 + j3 * k1 >> 18;
            l3 = l3 * k1 - j3 * j1 >> 18;
            j3 = l4;
            method146(i + c / 2 + j3, (36 + c1 / 2) - l3, 65535);
        }

        for(int j2 = 0; j2 < anInt1163; j2++)
        {
            int k3 = (((anIntArray1227[j2] * 128 + 64) - aClass31_1156.anInt298) * 3 * j) / 2048;
            int i4 = (((anIntArray1229[j2] * 128 + 64) - aClass31_1156.anInt299) * 3 * j) / 2048;
            int i5 = i4 * j1 + k3 * k1 >> 18;
            i4 = i4 * k1 - k3 * j1 >> 18;
            k3 = i5;
            method146(i + c / 2 + k3, (36 + c1 / 2) - i4, 0xff0000);
        }

        for(int k2 = 0; k2 < anInt1003; k2++)
        {
            Class31 class31 = aClass31Array991[k2];
            int j4 = ((class31.anInt298 - aClass31_1156.anInt298) * 3 * j) / 2048;
            int j5 = ((class31.anInt299 - aClass31_1156.anInt299) * 3 * j) / 2048;
            int i6 = j5 * j1 + j4 * k1 >> 18;
            j5 = j5 * k1 - j4 * j1 >> 18;
            j4 = i6;
            method146(i + c / 2 + j4, (36 + c1 / 2) - j5, 0xffff00);
        }

        for(int l2 = 0; l2 < anInt976; l2++)
        {
            Class31 class31_1 = aClass31Array1171[l2];
            if(class31_1.anInt314 <= 0)
                continue;
            int k4 = ((class31_1.anInt298 - aClass31_1156.anInt298) * 3 * j) / 2048;
            int k5 = ((class31_1.anInt299 - aClass31_1156.anInt299) * 3 * j) / 2048;
            int j6 = k5 * j1 + k4 * k1 >> 18;
            k5 = k5 * k1 - k4 * j1 >> 18;
            k4 = j6;
            int l6 = 0xffffff;
            int j7 = 0;
            do
            {
                if(j7 >= super.anInt772)
                    break;
                if(class31_1.aLong293 == super.aLongArray773[j7] && super.anIntArray774[j7] == 1)
                {
                    l6 = 65280;
                    break;
                }
                j7++;
            } while(true);
            method146(i + c / 2 + k4, (36 + c1 / 2) - k5, l6);
        }

        aClass26_Sub1_1195.method425(i + c / 2, 36 + c1 / 2, 2, 0xffffff, 255);
        aClass26_Sub1_1195.method448(i + 19, 55, 2024, anInt1085 + 128 & 0xff, 128);
        aClass26_Sub1_1195.method421(0, 0, anInt1246, anInt1247 + 12);
        if(!flag)
            return;
        i = super.anInt31 - (((Class26) (aClass26_Sub1_1195)).anInt169 - 199);
        int i3 = super.anInt32 - 36;
        if(i >= 40 && i3 >= 0 && i < 196 && i3 < 152)
        {
            char c2 = '\234';
            char c3 = '\230';
            int l5 = 192 + anInt1256;
            int k6 = anInt1085 + anInt1255 & 0xff;
            int i7 = ((Class26) (aClass26_Sub1_1195)).anInt169 - 199;
            i7 += 40;
            int k7 = ((super.anInt31 - (i7 + c2 / 2)) * 16384) / (3 * l5);
            int l7 = ((super.anInt32 - (36 + c3 / 2)) * 16384) / (3 * l5);
            int i8 = Class42.anIntArray463[1024 - k6 * 4 & 0x3ff];
            int j8 = Class42.anIntArray463[(1024 - k6 * 4 & 0x3ff) + 1024];
            int k8 = l7 * i8 + k7 * j8 >> 15;
            l7 = l7 * j8 - k7 * i8 >> 15;
            k7 = k8;
            k7 += aClass31_1156.anInt298;
            l7 = aClass31_1156.anInt299 - l7;
            if(anInt1175 == 1)
                method141(anInt1157, anInt1158, k7 / 128, l7 / 128, false);
            anInt1175 = 0;
        }
    }

    public boolean method149(int i, int j)
    {
        if(j != 50 && j != 177)
        {
            method120("Nothing interesting happens");
            return false;
        }
        int ai[] = anIntArray980;
        int k = ai.length;
        for(int l = 0; l < k; l++)
        {
            int i1 = ai[l];
            if(i1 == 168)
                if(((Integer)aHashMap1311.get(Integer.valueOf(i))).intValue() > anIntArray1034[13])
                {
                    method120((new StringBuilder()).append("You need a smithing level of ").append(aHashMap1311.get(Integer.valueOf(i))).append(" to smith ").append(Class3.method236(i).aString82).toString());
                    return false;
                } else
                {
                    return true;
                }
        }

        method120("You need a hammer to work the metal with");
        return false;
    }

    public boolean method150(int i, int j)
    {
        switch(i)
        {
        case 133: 
        case 137: 
        case 254: 
        case 255: 
        case 256: 
        case 324: 
        case 339: 
        case 349: 
        case 351: 
        case 354: 
        case 358: 
        case 361: 
        case 363: 
        case 366: 
        case 369: 
        case 372: 
        case 502: 
        case 503: 
        case 504: 
        case 545: 
        case 550: 
        case 552: 
        case 554: 
        case 1192: 
        default:
            break;

        case 29: // '\035'
            if(j != 52 && j != 173)
            {
                method120("Nothing interesting happens");
                return false;
            }
            break;

        case 18: // '\022'
            if(j != 154)
            {
                method120("Nothing interesting happens");
                return false;
            }
            break;

        case 237: 
            if(j != 462 && j != 463 && j != 482)
            {
                method120("Nothing interesting happens");
                return false;
            }
            break;

        case 522: 
            if(j != 282)
            {
                method120("Nothing interesting happens");
                return false;
            }
            break;

        case 341: 
            if(j != 2 && j != 466 && j != 814 && j != 48 && j != 26 && j != 84 && j != 1130)
            {
                method120("Nothing interesting happens");
                return false;
            }
            break;

        case 622: 
            if(j != 97 && j != 11 && j != 119 && j != 274 && j != 435 && j != 491)
            {
                method120("Nothing interesting happens");
                return false;
            }
            break;

        case 169: 
        case 170: 
        case 171: 
        case 173: 
        case 174: 
        case 408: 
            return method149(i, j);
        }
        return true;
    }

    public mudclient(int i, int j)
    {
        aClass27_932 = new Class27(this, null);
        aClass43_933 = new Class43(this, null);
        aClass40_934 = new Class40(this, null);
        aClass41_935 = new Class41(this, null);
        aClass29_936 = new Class29(this, null);
        aClass19_937 = new Class19(this, null);
        aClass23_938 = new Class23(this, null);
        aClass25_939 = new Class25(this, null);
        aClass39_940 = new Class39(this, null);
        aClass37_941 = new Class37(this, null);
        aClass38_942 = new Class38(this, null);
        aClass21_943 = new Class21(this, null);
        aClass36_944 = new Class36(this, null);
        anInt945 = 0;
        aLong1214 = System.currentTimeMillis();
        anInt1264 = 0;
        aLong1267 = System.currentTimeMillis();
        aLong1271 = 0L;
        aLong1272 = 0L;
        aString1275 = "";
        anInt1280 = 0;
        anInt1281 = 0;
        aBoolean1282 = true;
        aBoolean1283 = true;
        aLong1284 = 0L;
        aBoolean1285 = false;
        aBoolean1286 = false;
        aBoolean1287 = false;
        aString1290 = "";
        aLinkedList1295 = new LinkedList();
        aLong1296 = 0L;
        aRandom1298 = new Random();
        aBoolean1301 = false;
        aBoolean1302 = false;
        aString1303 = "";
        anInt1304 = -1;
        aBoolean1305 = false;
        aString1306 = "";
        aString1307 = "";
        aString1308 = "";
        anInt1309 = 0;
        anInt1310 = -1;
        aHashMap1311 = new HashMap_Sub1(this);
        aStringArray946 = new String[3];
        anIntArray947 = new int[3];
        anInt953 = 1;
        anInt30 = 10;
        try
        {
            aString1279 = InetAddress.getLocalHost().getHostAddress();
        }
        catch(Exception exception)
        {
            aString1279 = "unknown";
        }
        aLong1271 = System.currentTimeMillis();
        anIntArray956 = new int[8];
        anIntArray957 = new int[8];
        aBoolean960 = true;
        aStringArray961 = new String[10];
        aClass31Array962 = new Class31[2000];
        aString964 = "";
        aString965 = "";
        aStringArray966 = new String[250];
        aBoolean959 = false;
        aBoolean958 = false;
        anIntArray968 = new int[14];
        anIntArray969 = new int[14];
        anIntArray971 = new int[14];
        anIntArray972 = new int[14];
        aString973 = "";
        aString974 = "";
        anIntArray980 = new int[35];
        anIntArray981 = new int[35];
        anIntArray982 = new int[35];
        aStringArray984 = new String[500];
        aBoolean985 = false;
        aClass32Array986 = new Class32[500];
        anIntArray987 = new int[500];
        anIntArray988 = new int[500];
        anIntArray989 = new int[500];
        anIntArray990 = new int[500];
        aClass31Array991 = new Class31[2000];
        anIntArray992 = new int[6];
        aBooleanArray996 = new boolean[50];
        aBoolean997 = false;
        aBoolean998 = false;
        aClass31Array999 = new Class31[8000];
        anIntArray1001 = new int[50];
        anIntArray1002 = new int[50];
        anInt1008 = -1;
        aBoolean1009 = false;
        anInt1010 = 48;
        aBoolean1013 = false;
        anInt1016 = 1;
        anInt1024 = 2;
        aBoolean1030 = false;
        aBoolean1031 = false;
        anIntArray1034 = new int[18];
        anInt1037 = -1;
        anInt1038 = -1;
        anInt1039 = -1;
        anInt1040 = -1;
        anIntArray1041 = new int[8000];
        anIntArray1042 = new int[8000];
        anInt1043 = -1;
        aString1044 = "";
        anIntArray1051 = new int[8];
        anIntArray1052 = new int[8];
        anIntArray1053 = new int[50];
        anIntArray1054 = new int[250];
        aBoolean1055 = false;
        aClass31Array1058 = new Class31[500];
        aBoolean1060 = true;
        aClass32Array1062 = new Class32[1000];
        aBoolean1063 = false;
        aBoolean1064 = false;
        aBoolean1065 = false;
        aBoolean1066 = false;
        aBoolean1067 = false;
        anIntArray1068 = new int[50];
        anIntArray1070 = new int[8];
        anIntArray1071 = new int[8];
        anIntArray1072 = new int[500];
        anIntArray1073 = new int[500];
        anIntArray1074 = new int[500];
        aClass32Array1081 = new Class32[1500];
        anInt1085 = 128;
        aBoolean1093 = false;
        anInt1095 = 1;
        anInt1096 = 2;
        anInt1097 = 2;
        anInt1098 = 8;
        anInt1099 = 14;
        anInt1101 = 1;
        anInt1107 = -1;
        anInt1108 = -2;
        aStringArray1109 = new String[250];
        aBooleanArray1111 = new boolean[1500];
        anIntArray1112 = new int[18];
        anIntArray1117 = new int[250];
        anIntArray1118 = new int[250];
        anIntArray1119 = new int[250];
        anIntArray1120 = new int[256];
        anIntArray1121 = new int[256];
        anIntArray1137 = new int[50];
        anIntArray1138 = new int[50];
        anIntArray1139 = new int[256];
        anIntArray1140 = new int[256];
        anIntArray1142 = new int[8];
        anIntArray1143 = new int[8];
        anIntArray1144 = new int[500];
        anIntArray1146 = new int[5];
        anIntArray1150 = new int[1500];
        anIntArray1151 = new int[1500];
        anIntArray1152 = new int[1500];
        anIntArray1153 = new int[1500];
        anIntArray1154 = new int[250];
        anIntArray1155 = new int[250];
        aClass31_1156 = new Class31();
        anInt1159 = -1;
        anInt1160 = 30;
        aBoolean1167 = false;
        aBoolean1168 = false;
        aClass31Array1171 = new Class31[500];
        aBoolean1172 = false;
        anInt1176 = 550;
        anIntArray1177 = new int[256];
        anIntArray1178 = new int[256];
        aBoolean1179 = false;
        anInt1180 = -1;
        anInt1182 = 2;
        anIntArray1184 = new int[14];
        anIntArray1185 = new int[14];
        anIntArray1186 = new int[250];
        aBoolean1187 = false;
        anIntArray1189 = new int[18];
        aBoolean1190 = false;
        aClass31Array1191 = new Class31[40000];
        aBoolean1193 = false;
        anIntArray1194 = new int[50];
        aBoolean1197 = false;
        anIntArray1198 = new int[99];
        aBoolean1200 = false;
        anIntArray1202 = new int[8192];
        anIntArray1203 = new int[8192];
        aBoolean1204 = false;
        aBoolean1205 = false;
        anIntArray1207 = new int[500];
        anIntArray1208 = new int[500];
        aBoolean1210 = false;
        aBoolean1211 = false;
        anInt1213 = 40;
        anIntArray1215 = new int[50];
        anIntArray1221 = new int[500];
        anIntArray1222 = new int[500];
        anIntArray1227 = new int[8000];
        anIntArray1229 = new int[8000];
        anIntArray1230 = new int[8000];
        anIntArray1231 = new int[8000];
        anInt1232 = -1;
        anInt1233 = -2;
        aStringArray1234 = new String[5];
        aBoolean1236 = false;
        aBooleanArray1241 = new boolean[500];
        anIntArray1244 = new int[14];
        anIntArray1245 = new int[14];
        anInt1248 = 9;
        aString1254 = "";
        anInt1291 = i;
        anInt1292 = j;
        anInt1257 = (anInt1291 - 425) / 6;
        aBoolean1263 = true;
        aLong1269 = System.currentTimeMillis();
        aBoolean948 = false;
        anInt1246 = anInt1291;
        anInt1247 = anInt1292;
        aBoolean1270 = false;
        aClass1_1299 = new Class1();
        aClass4_1300 = new Class4();
        anInt786 = i;
        anInt787 = j;
        aBufferedImage1266 = new BufferedImage(i, j + 12, 1);
        try
        {
            try
            {
                InputStream inputstream = getClass().getClassLoader().getResourceAsStream("resources/logo");
                DataOutputStream dataoutputstream = new DataOutputStream(new BufferedOutputStream(new FileOutputStream("logo")));
                int k;
                while((k = inputstream.read()) != -1) 
                    dataoutputstream.writeByte(k);
                inputstream.close();
                dataoutputstream.close();
            }
            catch(IOException ioexception)
            {
                System.err.println((new StringBuilder()).append("An exception was encountered : please contact Zilent with the following:
Stack Trace:").append(ioexception.getStackTrace()).append("
End Stack Trace
Thankyou for your patience.").toString());
            }
            File file = new File("logo");
            BufferedImage bufferedimage = ImageIO.read(file);
            try
            {
                file.delete();
            }
            catch(Exception exception2)
            {
                System.out.println((new StringBuilder()).append("An exception was encountered : please contact Zilent with the following:
Stack Trace:").append(exception2.getStackTrace()).append("
End Stack Trace
Thankyou for your patience.").toString());
            }
            Graphics2D graphics2d = aBufferedImage1266.createGraphics();
            graphics2d.drawImage(bufferedimage, 0, 0, anInt1291, anInt1292 + 12, null);
            aClass16_1261 = Class16.method361(aBufferedImage1266);
        }
        catch(Exception exception1)
        {
            System.out.println((new StringBuilder()).append("An exception was encountered : please contact Zilent with the following:
 Stack Trace:").append(exception1.getStackTrace()).append("
End Stack Trace
Thankyou for your patience.").toString());
        }
    }

    public static int method151(mudclient mudclient1, int i)
    {
        return mudclient1.anInt1004 = i;
    }

    public static int method152(mudclient mudclient1)
    {
        return mudclient1.anInt1003;
    }

    public static int method153(mudclient mudclient1, int i)
    {
        return mudclient1.anInt1003 = i;
    }

    public static int method154(mudclient mudclient1)
    {
        return mudclient1.anInt1004;
    }

    public static Class31[] method155(mudclient mudclient1)
    {
        return mudclient1.aClass31Array962;
    }

    public static Class31[] method156(mudclient mudclient1)
    {
        return mudclient1.aClass31Array991;
    }

    public static Class31 method157(mudclient mudclient1, int i)
    {
        return mudclient1.method126(i);
    }

    public static int method158(mudclient mudclient1)
    {
        return mudclient1.anInt1003++;
    }

    public static Class31 method159(mudclient mudclient1, int i, int j, int k, int l, int i1)
    {
        return mudclient1.method132(i, j, k, l, i1);
    }

    public static Class31[] method160(mudclient mudclient1)
    {
        return mudclient1.aClass31Array1191;
    }

    public static Class31 method161(mudclient mudclient1)
    {
        return mudclient1.aClass31_1156;
    }

    public static void method162(mudclient mudclient1, String s, int i, int j)
    {
        mudclient1.method121(s, i, j);
    }

    public static int method163(mudclient mudclient1)
    {
        return mudclient1.anInt1242;
    }

    public static int[] method164(mudclient mudclient1)
    {
        return mudclient1.anIntArray1150;
    }

    public static int[] method165(mudclient mudclient1)
    {
        return mudclient1.anIntArray1151;
    }

    public static Class32[] method166(mudclient mudclient1)
    {
        return mudclient1.aClass32Array1081;
    }

    public static int[] method167(mudclient mudclient1)
    {
        return mudclient1.anIntArray1152;
    }

    public static int[] method168(mudclient mudclient1)
    {
        return mudclient1.anIntArray1153;
    }

    public static Class42 method169(mudclient mudclient1)
    {
        return mudclient1.aClass42_1199;
    }

    public static Class17 method170(mudclient mudclient1)
    {
        return mudclient1.aClass17_1170;
    }

    public static int method171(mudclient mudclient1, int i)
    {
        return mudclient1.anInt1242 = i;
    }

    public static Class32[] method172(mudclient mudclient1)
    {
        return mudclient1.aClass32Array1062;
    }

    public static int method173(mudclient mudclient1)
    {
        return mudclient1.anInt1242++;
    }

    public static int method174(mudclient mudclient1)
    {
        return mudclient1.anInt1163;
    }

    public static int[] method175(mudclient mudclient1)
    {
        return mudclient1.anIntArray1227;
    }

    public static int[] method176(mudclient mudclient1)
    {
        return mudclient1.anIntArray1229;
    }

    public static int[] method177(mudclient mudclient1)
    {
        return mudclient1.anIntArray1230;
    }

    public static int[] method178(mudclient mudclient1)
    {
        return mudclient1.anIntArray1231;
    }

    public static int method179(mudclient mudclient1, int i)
    {
        return mudclient1.anInt1163 = i;
    }

    public static int method180(mudclient mudclient1)
    {
        return mudclient1.anInt1163++;
    }

    public static boolean method181(mudclient mudclient1)
    {
        return mudclient1.aBoolean1285;
    }

    public static int method182(mudclient mudclient1, int i)
    {
        return mudclient1.anInt977 = i;
    }

    public static int method183(mudclient mudclient1)
    {
        return mudclient1.anInt976;
    }

    public static int method184(mudclient mudclient1)
    {
        return mudclient1.anInt977;
    }

    public static Class31[] method185(mudclient mudclient1)
    {
        return mudclient1.aClass31Array1058;
    }

    public static Class31[] method186(mudclient mudclient1)
    {
        return mudclient1.aClass31Array1171;
    }

    public static boolean method187(mudclient mudclient1, int i, int j)
    {
        return mudclient1.method107(i, j);
    }

    public static int method188(mudclient mudclient1)
    {
        return mudclient1.anInt1035;
    }

    public static int method189(mudclient mudclient1)
    {
        return mudclient1.anInt1036;
    }

    public static int method190(mudclient mudclient1, int i)
    {
        return mudclient1.anInt976 = i;
    }

    public static Class31 method191(mudclient mudclient1, Class31 class31)
    {
        return mudclient1.aClass31_1156 = class31;
    }

    public static Class31 method192(mudclient mudclient1, int i, int j, int k, int l)
    {
        return mudclient1.method73(i, j, k, l);
    }

    public static Class31 method193(mudclient mudclient1, int i)
    {
        return mudclient1.method125(i);
    }

    public static int method194(mudclient mudclient1)
    {
        return mudclient1.anInt976++;
    }

    public static int[] method195(mudclient mudclient1)
    {
        return mudclient1.anIntArray1144;
    }

    public static Class33_Sub1 method196(mudclient mudclient1)
    {
        return ((Applet_Sub1_Sub1) (mudclient1)).aClass33_Sub1_767;
    }

    public static Class33_Sub1 method197(mudclient mudclient1)
    {
        return ((Applet_Sub1_Sub1) (mudclient1)).aClass33_Sub1_767;
    }

    public static Class31[] method198(mudclient mudclient1)
    {
        return mudclient1.aClass31Array999;
    }

    public static Class33_Sub1 method199(mudclient mudclient1)
    {
        return ((Applet_Sub1_Sub1) (mudclient1)).aClass33_Sub1_767;
    }

    public static Class33_Sub1 method200(mudclient mudclient1)
    {
        return ((Applet_Sub1_Sub1) (mudclient1)).aClass33_Sub1_767;
    }

    public static Class33_Sub1 method201(mudclient mudclient1)
    {
        return ((Applet_Sub1_Sub1) (mudclient1)).aClass33_Sub1_767;
    }

    public static Class33_Sub1 method202(mudclient mudclient1)
    {
        return ((Applet_Sub1_Sub1) (mudclient1)).aClass33_Sub1_767;
    }

    public static Class33_Sub1 method203(mudclient mudclient1)
    {
        return ((Applet_Sub1_Sub1) (mudclient1)).aClass33_Sub1_767;
    }

    public static Class33_Sub1 method204(mudclient mudclient1)
    {
        return ((Applet_Sub1_Sub1) (mudclient1)).aClass33_Sub1_767;
    }

    public static Class33_Sub1 method205(mudclient mudclient1)
    {
        return ((Applet_Sub1_Sub1) (mudclient1)).aClass33_Sub1_767;
    }

    public static Class33_Sub1 method206(mudclient mudclient1)
    {
        return ((Applet_Sub1_Sub1) (mudclient1)).aClass33_Sub1_767;
    }

    public static Class1 method207(mudclient mudclient1)
    {
        return mudclient1.aClass1_1299;
    }

    public static int[] method208(mudclient mudclient1)
    {
        return mudclient1.anIntArray1034;
    }

    public static int[] method209(mudclient mudclient1)
    {
        return mudclient1.anIntArray1112;
    }

    public static boolean method210(mudclient mudclient1, boolean flag)
    {
        return mudclient1.aBoolean1093 = flag;
    }

    public static int method211(mudclient mudclient1)
    {
        return mudclient1.anInt1213;
    }

    public static int method212(mudclient mudclient1)
    {
        return mudclient1.anInt1220;
    }

    public static int[] method213(mudclient mudclient1)
    {
        return mudclient1.anIntArray1207;
    }

    public static int[] method214(mudclient mudclient1)
    {
        return mudclient1.anIntArray1208;
    }

    public static Class32[] method215(mudclient mudclient1)
    {
        return mudclient1.aClass32Array986;
    }

    public static int[] method216(mudclient mudclient1)
    {
        return mudclient1.anIntArray1221;
    }

    public static int[] method217(mudclient mudclient1)
    {
        return mudclient1.anIntArray1222;
    }

    public static int method218(mudclient mudclient1, int i)
    {
        return mudclient1.anInt1220 = i;
    }

    public static Class32 method219(mudclient mudclient1, int i, int j, int k, int l, int i1)
    {
        return mudclient1.method90(i, j, k, l, i1);
    }

    public static int method220(mudclient mudclient1)
    {
        return mudclient1.anInt1220++;
    }

    public static long serialVersionUID = 1L;
    public Class27 aClass27_932;
    public Class43 aClass43_933;
    public Class40 aClass40_934;
    public Class41 aClass41_935;
    public Class29 aClass29_936;
    public Class19 aClass19_937;
    public Class23 aClass23_938;
    public Class25 aClass25_939;
    public Class39 aClass39_940;
    public Class37 aClass37_941;
    public Class38 aClass38_942;
    public Class21 aClass21_943;
    public Class36 aClass36_944;
    public int anInt945;
    public String aStringArray946[];
    public int anIntArray947[];
    public boolean aBoolean948;
    public int anInt949;
    public int anInt950;
    public int anInt951;
    public int anInt952;
    public int anInt953;
    public int anInt954;
    public int anInt955;
    public int anIntArray956[];
    public int anIntArray957[];
    public boolean aBoolean958;
    public boolean aBoolean959;
    public boolean aBoolean960;
    public String aStringArray961[];
    public Class31 aClass31Array962[];
    public int anInt963;
    public String aString964;
    public String aString965;
    public String aStringArray966[];
    public int anInt967;
    public int anIntArray968[];
    public int anIntArray969[];
    public int anInt970;
    public int anIntArray971[];
    public int anIntArray972[];
    public String aString973;
    public String aString974;
    public int anInt975;
    public int anInt976;
    public int anInt977;
    public int anInt978;
    public int anInt979;
    public int anIntArray980[];
    public int anIntArray981[];
    public int anIntArray982[];
    public int anInt983;
    public String aStringArray984[];
    public boolean aBoolean985;
    public Class32 aClass32Array986[];
    public int anIntArray987[];
    public int anIntArray988[];
    public int anIntArray989[];
    public int anIntArray990[];
    public Class31 aClass31Array991[];
    public int anIntArray992[];
    public int anIntArray993[] = {
        0xff0000, 0xff8000, 0xffe000, 0xa0e000, 57344, 32768, 41088, 45311, 33023, 12528, 
        0xe000e0, 0x303030, 0x604000, 0x805000, 0xffffff
    };
    public int anInt994;
    public int anInt995;
    public boolean aBooleanArray996[];
    public boolean aBoolean997;
    public boolean aBoolean998;
    public Class31 aClass31Array999[];
    public int anIntArray1000[] = {
        0, 1, 2, 1, 0, 0, 0, 0
    };
    public int anIntArray1001[];
    public int anIntArray1002[];
    public int anInt1003;
    public int anInt1004;
    public int anInt1005;
    public int anInt1006;
    public int anInt1007;
    public int anInt1008;
    public boolean aBoolean1009;
    public int anInt1010;
    public int anInt1011;
    public int anIntArray1012[] = {
        0, 1, 2, 1
    };
    public boolean aBoolean1013;
    public int anInt1014;
    public int anInt1015;
    public int anInt1016;
    public int anInt1017;
    public Class30 aClass30_1018;
    public int anInt1019;
    public Class30 aClass30_1020;
    public int anInt1021;
    public int anInt1022;
    public int anInt1023;
    public int anInt1024;
    public int anInt1025;
    public int anInt1026;
    public int anInt1027;
    public int anInt1028;
    public int anInt1029;
    public boolean aBoolean1030;
    public boolean aBoolean1031;
    public String aString1032;
    public int anInt1033;
    public int anIntArray1034[];
    public int anInt1035;
    public int anInt1036;
    public int anInt1037;
    public int anInt1038;
    public int anInt1039;
    public int anInt1040;
    public int anIntArray1041[];
    public int anIntArray1042[];
    public int anInt1043;
    public String aString1044;
    public int anInt1045;
    public int anInt1046;
    public int anInt1047;
    public int anInt1048;
    public int anInt1049;
    public int anInt1050;
    public int anIntArray1051[];
    public int anIntArray1052[];
    public int anIntArray1053[];
    public int anIntArray1054[];
    public boolean aBoolean1055;
    public int anInt1056;
    public int anIntArray1057[] = {
        0, 0, 0, 0, 0, 1, 2, 1
    };
    public Class31 aClass31Array1058[];
    public int anInt1059;
    public boolean aBoolean1060;
    public int anInt1061;
    public Class32 aClass32Array1062[];
    public boolean aBoolean1063;
    public boolean aBoolean1064;
    public boolean aBoolean1065;
    public boolean aBoolean1066;
    public boolean aBoolean1067;
    public int anIntArray1068[];
    public int anInt1069;
    public int anIntArray1070[];
    public int anIntArray1071[];
    public int anIntArray1072[];
    public int anIntArray1073[];
    public int anIntArray1074[];
    public int anInt1075;
    public int anInt1076;
    public int anInt1077;
    public int anInt1078;
    public Class30 aClass30_1079;
    public int anIntArray1080[] = {
        0xffc030, 0xffa040, 0x805030, 0x604020, 0x303030, 0xff6020, 0xff4000, 0xffffff, 65280, 65535
    };
    public Class32 aClass32Array1081[];
    public Class30 aClass30_1082;
    public int anInt1083;
    public int anInt1084;
    public int anInt1085;
    public int anInt1086;
    public Class30 aClass30_1087;
    public int anInt1088;
    public int anInt1089;
    public int anInt1090;
    public int anInt1091;
    public int anInt1092;
    public boolean aBoolean1093;
    public int anInt1094;
    public int anInt1095;
    public int anInt1096;
    public int anInt1097;
    public int anInt1098;
    public int anInt1099;
    public int anInt1100;
    public int anInt1101;
    public int anInt1102;
    public int anInt1103;
    public int anInt1104;
    public int anInt1105;
    public int anInt1106;
    public int anInt1107;
    public int anInt1108;
    public String aStringArray1109[];
    public int anInt1110;
    public boolean aBooleanArray1111[];
    public int anIntArray1112[];
    public int anInt1113;
    public int anInt1114;
    public int anInt1115;
    public int anInt1116;
    public int anIntArray1117[];
    public int anIntArray1118[];
    public int anIntArray1119[];
    public int anIntArray1120[];
    public int anIntArray1121[];
    public int anIntArrayArray1122[][] = {
        {
            11, 2, 9, 7, 1, 6, 10, 0, 5, 8, 
            3, 4
        }, {
            11, 2, 9, 7, 1, 6, 10, 0, 5, 8, 
            3, 4
        }, {
            11, 3, 2, 9, 7, 1, 6, 10, 0, 5, 
            8, 4
        }, {
            3, 4, 2, 9, 7, 1, 6, 10, 8, 11, 
            0, 5
        }, {
            3, 4, 2, 9, 7, 1, 6, 10, 8, 11, 
            0, 5
        }, {
            4, 3, 2, 9, 7, 1, 6, 10, 8, 11, 
            0, 5
        }, {
            11, 4, 2, 9, 7, 1, 6, 10, 0, 5, 
            8, 3
        }, {
            11, 2, 9, 7, 1, 6, 10, 0, 5, 8, 
            4, 3
        }
    };
    public int anInt1123;
    public int anInt1124;
    public int anInt1125;
    public int anInt1126;
    public int anInt1127;
    public int anInt1128;
    public int anInt1129;
    public int anInt1130;
    public int anInt1131;
    public int anInt1132;
    public int anInt1133;
    public int anInt1134;
    public int anInt1135;
    public int anInt1136;
    public int anIntArray1137[];
    public int anIntArray1138[];
    public int anIntArray1139[];
    public int anIntArray1140[];
    public int anInt1141;
    public int anIntArray1142[];
    public int anIntArray1143[];
    public int anIntArray1144[];
    public Class30 aClass30_1145;
    public int anIntArray1146[];
    public int anInt1147;
    public int anInt1148;
    public int anInt1149;
    public int anIntArray1150[];
    public int anIntArray1151[];
    public int anIntArray1152[];
    public int anIntArray1153[];
    public int anIntArray1154[];
    public int anIntArray1155[];
    public Class31 aClass31_1156;
    public int anInt1157;
    public int anInt1158;
    public int anInt1159;
    public int anInt1160;
    public int anInt1161;
    public int anInt1162;
    public int anInt1163;
    public int anInt1164;
    public int anInt1165;
    public int anInt1166;
    public boolean aBoolean1167;
    public boolean aBoolean1168;
    public int anInt1169;
    public Class17 aClass17_1170;
    public Class31 aClass31Array1171[];
    public boolean aBoolean1172;
    public String aStringArray1173[] = {
        "Armour", "WeaponAim", "WeaponPower", "Magic", "Prayer", "Range"
    };
    public int anInt1174;
    public int anInt1175;
    public int anInt1176;
    public int anIntArray1177[];
    public int anIntArray1178[];
    public boolean aBoolean1179;
    public int anInt1180;
    public int anInt1181;
    public int anInt1182;
    public int anInt1183;
    public int anIntArray1184[];
    public int anIntArray1185[];
    public int anIntArray1186[];
    public boolean aBoolean1187;
    public InputStream_Sub1 anInputStream_Sub1_1188;
    public int anIntArray1189[];
    public boolean aBoolean1190;
    public Class31 aClass31Array1191[];
    public String aStringArray1192[] = {
        "Attack", "Defense", "Strength", "Hits", "Ranged", "Prayer", "Magic", "Cooking", "Woodcut", "Fletching", 
        "Fishing", "Firemaking", "Crafting", "Smithing", "Mining", "Herblaw", "Agility", "Thieving"
    };
    public boolean aBoolean1193;
    public int anIntArray1194[];
    public Class26_Sub1 aClass26_Sub1_1195;
    public String aStringArray1196[] = {
        "Attack", "Defense", "Strength", "Hits", "Ranged", "Prayer", "Magic", "Cooking", "Woodcutting", "Fletching", 
        "Fishing", "Firemaking", "Crafting", "Smithing", "Mining", "Herblaw", "Agility", "Thieving"
    };
    public boolean aBoolean1197;
    public int anIntArray1198[];
    public Class42 aClass42_1199;
    public boolean aBoolean1200;
    public int anInt1201;
    public int anIntArray1202[];
    public int anIntArray1203[];
    public boolean aBoolean1204;
    public boolean aBoolean1205;
    public Graphics aGraphics1206;
    public int anIntArray1207[];
    public int anIntArray1208[];
    public int anInt1209;
    public boolean aBoolean1210;
    public boolean aBoolean1211;
    public int anInt1212;
    public int anInt1213;
    public long aLong1214;
    public int anIntArray1215[];
    public Class30 aClass30_1216;
    public int anInt1217;
    public int anInt1218;
    public int anInt1219;
    public int anInt1220;
    public int anIntArray1221[];
    public int anIntArray1222[];
    public int anInt1223;
    public int anInt1224;
    public int anInt1225;
    public int anInt1226;
    public int anIntArray1227[];
    public int anInt1228;
    public int anIntArray1229[];
    public int anIntArray1230[];
    public int anIntArray1231[];
    public int anInt1232;
    public int anInt1233;
    public String aStringArray1234[];
    public long aLong1235;
    public boolean aBoolean1236;
    public int anInt1237;
    public byte aByteArray1238[] = {
        51, 50, 56, 49
    };
    public int anIntArray1239[] = {
        0xecded0, 0xccb366, 0xb38c40, 0x997326, 0x906020
    };
    public byte aByteArray1240[];
    public boolean aBooleanArray1241[];
    public int anInt1242;
    public int anInt1243;
    public int anIntArray1244[];
    public int anIntArray1245[];
    public static int anInt1246;
    public static int anInt1247;
    public int anInt1248;
    public Class30 aClass30_1249;
    public int anInt1250;
    public int anInt1251;
    public long aLong1252;
    public long aLong1253;
    public String aString1254;
    public int anInt1255;
    public int anInt1256;
    public static int anInt1257;
    public BufferedImage aBufferedImage1258;
    public Class16 aClass16_1259;
    public String aStringArray1260[] = {
        "@whi@Quest-list (green=completed)", "@red@Black knight's fortress", "@red@Cook's assistant", "@red@Demon slayer", "@red@Doric's quest", "@red@The restless ghost", "@red@Goblin diplomacy", "@red@Ernest the chicken", "@red@Imp catcher", "@red@Pirate's treasure", 
        "@red@Prince Ali rescue", "@red@Romeo & Juliet", "@red@Sheep shearer", "@bla@Shield of Arrav", "@bla@The knight's sword", "@red@Vampire slayer", "@red@Witch's potion", "@bla@Dragon slayer", "@bla@Witch's house (members)", "@bla@Lost city (members)", 
        "@bla@Hero's quest (members)", "@bla@Druidic ritual (members)", "@bla@Merlin's crystal (members)", "@bla@Scorpion catcher (members)", "@bla@Family crest (members)", "@bla@Tribal totem (members)", "@bla@Fishing contest (members)", "@bla@Monk's friend (members)", "@bla@Temple of Ivok (members)", "@bla@Clock tower (members)", 
        "@bla@The Holy Grail (members)", "@bla@Fight Arena (members)", "@bla@Tree Gnome Village (members)", "@bla@The Hazeel Cult (members)", "@bla@Sheep Herder (members)", "@bla@Plague City (members)", "@bla@Sea Slug (members)", "@bla@Waterfall quest (members)", "@bla@Biohazard (members)", "@bla@Jungle potion (members)", 
        "@bla@Grand tree (members)", "@bla@Shilo village (members)", "@bla@Underground pass (members)", "@bla@Observatory quest (members)", "@bla@Tourist trap (members)", "@bla@Watchtower (members)", "@bla@Dwarf Cannon (members)", "@bla@Murder Mystery (members)", "@bla@Digsite (members)", "@bla@Gertrude's Cat (members)", 
        "@bla@Legend's Quest (members)"
    };
    public static Class16 aClass16_1261;
    public long aLong1262;
    public boolean aBoolean1263;
    public int anInt1264;
    public int anInt1265;
    public static BufferedImage aBufferedImage1266;
    public long aLong1267;
    public byte aByte1268;
    public long aLong1269;
    public boolean aBoolean1270;
    public long aLong1271;
    public long aLong1272;
    public static String aStringArray1273[] = {
        "Varrock", "Edgeville", "Barbarian Village", "Draynor", "Lumbridge", "Al Kharid", "Falador", "Port Sarim", "Taverly", "Entrana", 
        "Catherby", "Seers Village", "Gnome Stronghold", "Ardougne", "Yanille", "Brimhaven", "Karamja", "Shilo Village"
    };
    public static int anIntArrayArray1274[][] = {
        {
            50, 180, 444, 565
        }, {
            180, 245, 427, 472
        }, {
            180, 245, 472, 535
        }, {
            180, 245, 535, 715
        }, {
            104, 180, 633, 710
        }, {
            47, 94, 578, 733
        }, {
            245, 338, 510, 608
        }, {
            245, 355, 608, 693
        }, {
            338, 384, 430, 576
        }, {
            395, 441, 525, 573
        }, {
            399, 477, 476, 513
        }, {
            477, 592, 432, 485
        }, {
            673, 751, 432, 537
        }, {
            500, 708, 537, 640
        }, {
            528, 671, 712, 785
        }, {
            435, 522, 640, 710
        }, {
            333, 435, 679, 710
        }, {
            384, 431, 815, 860
        }
    };
    public String aString1275;
    public long aLong1276;
    public int anInt1277;
    public int anInt1278;
    public String aString1279;
    public int anInt1280;
    public int anInt1281;
    public boolean aBoolean1282;
    public boolean aBoolean1283;
    public long aLong1284;
    public boolean aBoolean1285;
    public boolean aBoolean1286;
    public boolean aBoolean1287;
    public boolean aBoolean1288;
    public boolean aBoolean1289;
    public String aString1290;
    public static int anInt1291;
    public static int anInt1292;
    public static boolean aBoolean1293 = false;
    public static String aString1294 = "RSCEmulation";
    public LinkedList aLinkedList1295;
    public long aLong1296;
    public static String aString1297 = System.getProperty("user.dir");
    public Random aRandom1298;
    public Class1 aClass1_1299;
    public Class4 aClass4_1300;
    public boolean aBoolean1301;
    public boolean aBoolean1302;
    public String aString1303;
    public int anInt1304;
    public boolean aBoolean1305;
    public String aString1306;
    public String aString1307;
    public String aString1308;
    public int anInt1309;
    public int anInt1310;
    public HashMap aHashMap1311;

}
