Thread: Few Client Problems.

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 Few Client Problems. 
    bleedz
    Guest
    I've looked everywhere and I can't find anything about the following subjects: (These are things I need to change for my client.) Remove the file and account tab on the menubar. Also I need to make it so you can click the button to view what your wearing. Any help about the following topics would be greatly appreciated, thanks.



     

  2. #2  
    Registered Member
    Cody.'s Avatar
    Join Date
    Sep 2008
    Age
    29
    Posts
    535
    Thanks given
    0
    Thanks received
    0
    Rep Power
    291
    Go into Gui.java ull find it in there thats all im telling
     

  3. #3  
    bleedz
    Guest
    Quote Originally Posted by Fear Realm View Post
    Go into Gui.java ull find it in there thats all im telling
    Wow I know that much, if your going to help. Actually help, otherwise I don't need your useless 'post counters'.
     

  4. #4  
    Registered Member
    Firefight's Avatar
    Join Date
    Aug 2007
    Posts
    1,506
    Thanks given
    6
    Thanks received
    31
    Rep Power
    160
    Are you retarded? Search 'file' and 'account' in gui!!!!!1
    Back for now...
     

  5. #5  
    bleedz
    Guest
    I've already done that, and deleted them. Although I'm not exactly your 'basic coder' so I compiled and I get some bs error.

    ---------- Post added at 03:02 AM ---------- Previous post was at 02:49 AM ----------

    Heres my entire gui.java, can someone help me with what to delete? By copying in your post in code forum, what to erase out of the following? Also sorry for double post.
    Code:
    import javax.swing.*;
    import java.awt.*;
    import java.lang.String;
    import java.awt.event.*;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.InputStreamReader;
    import java.io.IOException;
    import java.net.InetAddress;
    import java.net.URL;
    import java.util.ArrayList;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.Hashtable;
    import javax.swing.*;
    import javax.swing.filechooser.FileFilter;
    import javax.swing.plaf.metal.MetalLookAndFeel;
    import sign.signlink;
    import javax.sound.midi.*;
    import java.util.List;
    import javax.imageio.ImageIO;
    import java.awt.image.BufferedImage;
    
    public class Gui extends client
    implements ActionListener, ItemListener, WindowListener
    {
       	private static FileOutputStream logFileOut;
        	private static boolean isApplet = false;
        	private MP3Player player;
    	public int midiCount;
       	public Sequencer sequencer;
    
    
    
    
    
    	public static void main(String args[])
    	{
    		new Gui(args);
    
    	}
    
    	private Gui(String args[]) 
    	{
    		super();
    			try {
    
    			System.out.println("connecting to update server");
    			Serverip = "";
    			sign.signlink.startpriv(InetAddress.getByName(Serverip));
     			initUI();
    		} 
    		catch(Exception ex)
    		{
    			ex.printStackTrace();
    		}
    	}
    
    
    		public int test() {
    	//return(JFrame.DO_NOTHING_ON_CLOSE);
    	return(JFrame.EXIT_ON_CLOSE);
    	}
    
    	public void initUI()
    	{
    		try
    		{
    		
               			UIManager.setLookAndFeel("org.jvnet.substance.skin.SubstanceMagmaLookAndFeel");
                			JFrame.setDefaultLookAndFeelDecorated(true);
             			JDialog.setDefaultLookAndFeelDecorated(true);
                			JPopupMenu.setDefaultLightWeightPopupEnabled(false);
    			JFrame.setDefaultLookAndFeelDecorated(true);
    			JFrame.setDefaultLookAndFeelDecorated(true);
    			JPopupMenu.setDefaultLightWeightPopupEnabled(false);
    
    			sign.signlink.mainapp = this; // Dangerous reference?
    
    			frame = new JFrame(frameTitle);
    			frame.setLayout(new BorderLayout());
    
    			frame.setResizable(false);
    			frame.setDefaultCloseOperation(test());
    
    			JPanel gamePanel = new JPanel();
    			gamePanel.setLayout(new BorderLayout());
    
    			gamePanel.add(this);
    			gamePanel.setPreferredSize(new Dimension(765, 503));
    
    			JMenuBar menuBar = new JMenuBar();
    
    			JMenu fileMenu = new JMenu("File");
    			JMenu SitesMenu = new JMenu("Sites");
    			JMenu musicmenu = new JMenu("Music");
    			JMenu accountmenu = new JMenu("Account");
    			JMenu botsmenu = new JMenu("Bots");
    			JButton shotMenu = new JButton("Screenshot");
    			
    			shotMenu.setActionCommand("Screenshot");
    			shotMenu.addActionListener(this);
    
    
    
    			String[] ClientButtons = new String[]
    				{
    					"Update"
    				};
    
    			String[] musicButtons = new String[]
    				{
    					"Play", "Stop", "Next", "Previous"
    				};
    
    			String[] otherButtons = new String[]
    				{
    					"Add your own Music","Find your screenshots","about","version","chat colours"
    				};
    			String[] accountButtons = new String[]
    				{
    					"Save account", "Name colour","Chat colour","Chat effects","Reset"
    				};
    			String[] botsButtons = new String[]
    				{
    					"Auto talker","off"
    				};
    			String[] SitesButtons = new String[]
    				{
    					"Jokersparadise-home"
    				};
    			String[] mainButtons = new String[]
    				{
    					 "Server ip","Client detail","Item IDs", "NPC IDs", "Object IDs", "-", "Quit"
    				};
    			for (String name : mainButtons)
    			{
    				JMenuItem menuItem = new JMenuItem(name);
    				if (name.equalsIgnoreCase("-"))
    					fileMenu.addSeparator();
    				else
    				{
    					menuItem.addActionListener(this);
    					fileMenu.add(menuItem);
    				}
    			}
    		
    
    
    
    			for (String name : musicButtons)
    						{
    							JMenuItem menuItem = new JMenuItem(name);
    							if (name.equalsIgnoreCase("-"))
    								musicmenu.addSeparator();
    							else
    							{
    								menuItem.addActionListener(this);
    								musicmenu.add(menuItem);
    							}
    			}
    			for (String name : accountButtons)
    						{
    							JMenuItem menuItem = new JMenuItem(name);
    							if (name.equalsIgnoreCase("-"))
    								accountmenu.addSeparator();
    							else
    							{
    								menuItem.addActionListener(this);
    								accountmenu.add(menuItem);
    							}
    			}
    for (String name : botsButtons)
    						{
    							JMenuItem menuItem = new JMenuItem(name);
    							if (name.equalsIgnoreCase("-"))
    								botsmenu.addSeparator();
    							else
    							{
    								menuItem.addActionListener(this);
    								botsmenu.add(menuItem);
    							}
    			}
    for (String name : SitesButtons)
    						{
    							JMenuItem menuItem = new JMenuItem(name);
    							if (name.equalsIgnoreCase("-"))
    								SitesMenu.addSeparator();
    							else
    							{
    								menuItem.addActionListener(this);
    								SitesMenu.add(menuItem);
    							}
    			
    	}
    			
    			menuBar.add(fileMenu);
    			menuBar.add(SitesMenu);
    			menuBar.add(musicmenu);
    			menuBar.add(accountmenu);
    			menuBar.add(botsmenu);
    			menuBar.add(shotMenu);
    			
    
    
    
    			frame.getContentPane().add(menuBar, BorderLayout.NORTH);
    			frame.getContentPane().add(gamePanel, BorderLayout.CENTER);
    			frame.pack();
    			frame.setVisible(true);
    			init();
    			midiPlayer("Play");
    		}
    		catch (Exception e)
    		{
    			e.printStackTrace();
    		}
    	}
    	 public JDialog createFileChooserDialog(JFileChooser jfilechooser, String s, Container container)
    	    {
    	        JDialog jdialog = new JDialog(frame, s, true);
    	        jdialog.setDefaultCloseOperation(2);
    	        jdialog.add(jfilechooser);
    	        jdialog.pack();
    	        jdialog.setLocationRelativeTo(container);
    	        return jdialog;
        }
        public void itemStateChanged(ItemEvent itemevent)
    	    {
    	        String s = itemevent.paramString();
    	        s = s.substring(s.indexOf("item=") + 5);
    	        int i = itemevent.getStateChange();
    	        if(s != null)
    	        {
    	            
    	        }
        }
    public static synchronized void log(Object object)
        {
            System.out.println(object.toString());
        }
        public static void chkDir(String fileName)
    	    {
    	        try
    	        {
    	            File f = new File(fileName);
    	            if(!f.exists())
    	                f.mkdir();
    	        }
    	        catch(Exception e)
    	        {
    	            log((new StringBuilder()).append("Error making file: ").append(e).toString());
    	        }
        }
         public void midiPlayer(String command)
    	    {
    	        String dir = "./User/music/";
    chkDir(dir);
    if(player != null && player.isRunning())
    	        {
    	            player.close();
    	        }
    	        if(sequencer != null && sequencer.isRunning())
    	        {
    	            sequencer.stop();
    	            sequencer.close();
    	        }
    	        if(command.equals("Next"))
    	        {
    	            midiCount++;
    	        } else
    	        if(command.equals("Previous"))
    	        {
    	            midiCount--;
    	        }
    	        if(!command.equals("Stop"))
    	        {
    	            File index = new File(dir);
    	            String fileList[] = index.list();
    	            if(fileList.length > 0)
    	            {
    	                if(midiCount > fileList.length - 1)
    	                {
    	                    midiCount = 0;
    	                }
    	                if(midiCount < 0)
    	                {
    	                    midiCount = fileList.length - 1;
    	                }
    	                if(fileList[midiCount].endsWith(".mp3"))
    	                {
    	                    log((new StringBuilder()).append("Playing ").append(fileList[midiCount]).toString());
    	                    player = new MP3Player((new StringBuilder()).append(dir).append(fileList[midiCount]).toString(), true);
    	                } else
    	                if(fileList[midiCount].endsWith(".mid"))
    	                {
    	                    log((new StringBuilder()).append("Playing ").append(fileList[midiCount]).toString());
    	                    try
    	                    {
    	                        File midiFile = new File((new StringBuilder()).append(dir).append(fileList[midiCount]).toString());
    	                        sequencer = MidiSystem.getSequencer();
    	                        sequencer.setSequence(MidiSystem.getSequence(midiFile));
    	                        sequencer.setLoopCount(-1);
    	                        sequencer.open();
    	                        sequencer.start();
    	                    }
    	                    catch(MidiUnavailableException mue)
    	                    {
    	                        log("Midi device unavailable!");
    	                    }
    	                    catch(InvalidMidiDataException imde)
    	                    {
    	                        log("Invalid Midi data!");
    	                    }
    	                    catch(IOException ioe)
    	                    {
    	                        log("I/O Error!");
    	                    }
    	                }
    	            } else
    	            {
    	                log("no midi or mp3 files in folder");
    	            }
    	        }
        }
    
    public void takeScreenshot(boolean flag)
        {
            BufferedImage bufferedimage;
            try
            {
                Robot robot = new Robot();
                Point point = getLocationOnScreen();
                Rectangle rectangle = new Rectangle(point.x, point.y, getWidth(), getHeight());
                bufferedimage = robot.createScreenCapture(rectangle);
            }
            catch(Throwable throwable)
            {
                 JOptionPane.showMessageDialog(frame, "An error occured while trying to create a screenshot!", "Screenshot Error", 0);
                return;
            }
            String s = null;
            try
            {
                s = getNearestScreenshotFilename();
            }
            catch(IOException ioexception)
            {
                if(flag)
                {
                     JOptionPane.showMessageDialog(frame, "A screenshot directory does not exist, and could not be created!", "No Screenshot Directory", 0);
                    return;
                }
            }
            if(s == null && flag)
            {
                 JOptionPane.showMessageDialog(frame, "There are too many screenshots in the screenshot directory!\n"+"Delete some screen\n" +"shots and try again." , "Screenshot Directory Full", 0);
                return;
            }
            if(!flag)
            {
                final JFileChooser fileChooser = new JFileChooser();
                final JDialog fileDialog = createFileChooserDialog(fileChooser, "Save Screenshot", this);
                final BufferedImage si = bufferedimage;
                JFileChooser _tmp = fileChooser;
                fileChooser.setFileSelectionMode(0);
                fileChooser.addChoosableFileFilter(new imageFileFilter());
                fileChooser.setCurrentDirectory(new File("./User/screenshots/"));
                fileChooser.setSelectedFile(new File(s));
                JFileChooser _tmp1 = fileChooser;
                fileChooser.setDialogType(1);
                fileChooser.addActionListener(new ActionListener() {
    
                    public void actionPerformed(ActionEvent actionevent)
                    {
                        String s1 = actionevent.getActionCommand();
                        if(s1.equals("ApproveSelection"))
                        {
                            File file = fileChooser.getSelectedFile();
                            if(file != null && file.isFile())
                            {
                                int i = JOptionPane.showConfirmDialog(frame, (new StringBuilder()).append(file.getAbsolutePath()).append(" already exists.\n"+"Do you want to replace it?").toString(), "Save Screenshot", 2);
                                if(i != 0)
                                {
                                    return;
                                }
                            }
                            try
                            {
                                ImageIO.write(si, "png", file);
                            }
                            catch(IOException ioexception2)
                            {
                                 JOptionPane.showMessageDialog(frame, "An error occured while trying to save the screenshot!\n"+"Please make sure you have\n"+" write access to the screenshot directory." , "Screenshot Error", 0);
                            }
                            fileDialog.dispose();
                        } else
                        if(s1.equals("CancelSelection"))
                        {
                            fileDialog.dispose();
                        }
                    }
    
    
                {
    
                }
                });
                fileDialog.setVisible(true);
            } else
            {
                try
                {
                    ImageIO.write(bufferedimage, "png", new File((new StringBuilder()).append("./User/screenshots/").append(s).toString()));
    
    		System.out.println("You took a screenshot!");
                }
                catch(IOException ioexception1)
                {
                     JOptionPane.showMessageDialog(frame, "An error occured while trying to save the screenshot!\n"+"Please make sure you have\n"+" write access to the screenshot directory." , "Screenshot Error", 0);
                }
            }
        }
    
    public static String getNearestScreenshotFilename()
            throws IOException
        {
            File file = new File("./User/screenshots");
            int i = 0;
            do
            {
                String s = " .png";
                if(i < 10)
                {
                    s = s.replaceFirst(" ", (new StringBuilder()).append("000").append(i).toString());
                } else
                if(i < 100)
                {
                    s = s.replaceFirst(" ", (new StringBuilder()).append("00").append(i).toString());
                } else
                if(i < 1000)
                {
                    s = s.replaceFirst(" ", (new StringBuilder()).append("0").append(i).toString());
                } else
                if(i < 10000)
                {
                    s = s.replaceFirst(" ", (new StringBuilder()).append(" ").append(i).toString());
                }
                if((new File(file, s)).isFile())
                {
                    i++;
                } else
                {
                    return s;
                }
            } while(i < 10000);
            return null;
        }
    
    
    class imageFileFilter extends FileFilter
    {
    
        imageFileFilter()
        {
        }
    
        public boolean accept(File file)
        {
            String s = file.getName();
            return file.isDirectory() || s.toLowerCase().endsWith(".png") && s.indexOf("$") == -1;
        }
    
        public String getDescription()
        {
            return "PNG (*.png)";
        }
    }
    
    	public URL getCodeBase() 
    	{
    		try 
    		{
    System.out.println("connected to update server");
                            sign.signlink.startpriv(InetAddress.getByName(Serverip));
    			return new URL("http://www.xlinescape.net84.net/Updateserver/updater.hex");
    
    			
    		} 
    		catch (Exception e) 
    		{
    			return super.getCodeBase();
    		}
    	}
    
    
    	public URL getDocumentBase()
    	{
    		return getCodeBase();
    	}
    
    	public void loadError(String s)
    	{
    		System.out.println("loadError: " + s);
    	}
    	public String getParameter(String key)
    	{
    		if (key.equals("nodeid"))
    			return "10";
    		else if (key.equals("portoff"))
    			return "0";
    		else if (key.equals("lowmem"))
    			return "1";
    		else if (key.equals("free"))
    			return "0";
    		else
    			return "";
    	}
    
        public void displayWorldSelect() {
    		try
    		{
                    String s1 = JOptionPane.showInputDialog(this, (new StringBuilder()).append("Current server: "+ server), "Enter Server", 3);
                   if(s1 == null)
    			               {
    			                   log("Canceled");
    			               } else
    			               if(s1.equalsIgnoreCase(""))
    			               {
    			                   log("Sorry, have to have some input");
    			               } else
    			               {
    			                   log((new StringBuilder()).append("Set world to: ").append(s1).toString());
    			                   server = s1;
    			               }
    			           }
    			           catch(Exception e)
    			           {
    			               log((new StringBuilder()).append("You must enter a numeric value!: ").append(e).toString());
    
    			}
    		}
    	public void actionPerformed(ActionEvent evt)
    	{
    		String cmd = evt.getActionCommand();
    		if (cmd != null)
    		{
    			if (cmd.equalsIgnoreCase("Quit"))
            {
                int i1;
                if((i1 = JOptionPane.showConfirmDialog(this, "Are you sure you want to close the Client?")) == 0)
                    System.exit(0);
                return;
            }
    if(cmd.equalsIgnoreCase("Next"))
    	        {
    	            midiPlayer("Next");
    }
    	        if(cmd.equalsIgnoreCase("Previous"))
    	        {
    	            midiPlayer("Previous");
    	        }
                if(cmd.equalsIgnoreCase("Play"))
                {
                    midiPlayer("Play");
                }
                if(cmd.equalsIgnoreCase("Stop"))
                {
                    midiPlayer("Stop");
                }
    if (cmd.equalsIgnoreCase("Jokersparadise-home"))
    {
    launchURL("http://jokersparadise.tk/");
    log("Loading website Jokersparadise");
    }
    
    
    if (cmd.equalsIgnoreCase("Save account"))
    {
    UserLoader.saveuser();
    System.out.println("Saving file");
    }
    
    
    if (cmd.equalsIgnoreCase("off"))
    {
    autochat(0, "");
    }
    
    
    
    if (cmd.equalsIgnoreCase("auto talker"))
    {
    
    settalk = JOptionPane.showInputDialog(null, "Enter Your text", "Enter what you want say", 1);
    if(settalk != null && settalk != ""){
    
    loop = JOptionPane.showInputDialog(null, "Enter a Number", "How many times you want loop", 1);
    if(loop != null && loop != ""){
    
    String h = loop; 
    int theloop= Integer.parseInt(h);
    
    
    autochat(theloop, settalk);
    autochat = true;
    
    }}}
    
    if (cmd.equalsIgnoreCase("Reset"))
    {
    Setcolour(1,0x000000,"Name colour reset", "@cr1@");
    Setcolour(2,0x0000FF,"chat colour reset", "@cr2@");
    setchat(0);
    seteffect(0);
    
    }
    
    
    
    
    if (cmd.equalsIgnoreCase("Name colour"))
    {
    
    setname = JOptionPane.showInputDialog(null, "Choose name colour ", "Enter a colour", 1);
    if(setname != null && setname != ""){
    
    
    
    if(setname.startsWith("red")){
    Setcolour(1,0xff0000,"Colour set to red", "@cr3@");
    setname = null;
    }else
    
    if(setname.startsWith("green")){
    Setcolour(1,0x99FF00,"Colour set to green", "@cr3@");
    setname = null;
    }else
    
    if(setname.startsWith("yellow")){
    Setcolour(1,0xFFFF00,"Colour set to yellow", "@cr3@");
    setname = null;
    }else
    
    if(setname.startsWith("black")){
    Setcolour(1,0x000000,"Colour set to black", "@cr3@");
    setname = null;
    }else
    
    if(setname.startsWith("blue")){
    Setcolour(1,0x0000FF,"Colour set to blue", "@cr3@");
    setname = null;
    }else
    
    if(setname.startsWith("white")){
    Setcolour(1,0xFFFFFF,"Colour set to white", "@cr3@");
    setname = null;
    }else
    
    if(setname.startsWith("pink")){
    Setcolour(1,0xFF00FF,"Colour set to pink", "@cr3@");
    setname = null;
    }
    
            
                
            }}
    
    
    
    
    if (cmd.equalsIgnoreCase("chat colour"))
    {
    
    setchat = JOptionPane.showInputDialog(null, "Choose a chat colour ", "Enter a colour", 1);
    if(setchat != null && setchat != ""){
    
    
    if(setchat.startsWith("red")){
    Setcolour(2,0xff0000,"Colour set to red", "@cr3@");
    setchat = null;
    }else
    
    if(setchat.startsWith("green")){
    Setcolour(2,0x99FF00,"Colour set to green", "@cr3@");
    setchat = null;
    }else
    
    if(setchat.startsWith("yellow")){
    Setcolour(2,0xFFFF00,"Colour set to yellow", "@cr3@");
    setchat = null;
    }else
    
    if(setchat.startsWith("black")){
    Setcolour(2,0x000000,"Colour set to black", "@cr3@");
    setchat= null;
    }else
    
    if(setchat.startsWith("blue")){
    Setcolour(2,0x0000FF,"Colour set to blue", "@cr3@");
    setchat = null;
    }else
    
    if(setchat.startsWith("white")){
    Setcolour(2,0xFFFFFF,"Colour set to white", "@cr3@");
    setchat = null;
    }else
    
    if(setchat.startsWith("pink")){
    Setcolour(2,0xFF00FF,"Colour set to pink", "@cr3@");
    setchat = null;
    }
    
            
                
            }}
    
    
    if (cmd.equalsIgnoreCase("Chat effects"))
    {
    setchateffects = JOptionPane.showInputDialog(null, "Choose chat effect ", "Enter your effect", 1);
    if(setchateffects != null && setchateffects != ""){
    
    if(setchateffects.startsWith("yellow")){
    setchat(0);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("red")){
    setchat(1);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("green")){
    setchat(2);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("cyan")){
    setchat(3);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("purple")){
    setchat(4);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("white")){
    setchat(5);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("flash1")){
    setchat(6);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("flash2")){
    setchat(7);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("flash3")){
    setchat(8);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("glow1")){
    setchat(9);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("glow2")){
    setchat(10);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("glow3")){
    setchat(11);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("wave1")){
    seteffect(1);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("wave2")){
    seteffect(2);
    setchateffects = null;
    }
    else
    if(setchateffects.startsWith("shake")){
    seteffect(3);
    setchateffects = null;
    }
    else
    if(setchateffects.startsWith("scroll")){
    seteffect(4);
    setchateffects = null;
    }
    else
    if(setchateffects.startsWith("slide")){
    seteffect(5);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("reset")){
    setchat(0);
    seteffect(0);
    setchateffects = null;
    }
    
    
    }
    }
    
    if (cmd.equalsIgnoreCase("Update"))
    {
    /*
    launchURL("./update.bat");
    log("Running Updater");
    JOptionPane.showMessageDialog (null, "About to run the updater!");
    */
    JOptionPane.showMessageDialog(null, "This client selfs updates no need to run this.");
    }
    if (cmd.equalsIgnoreCase("about"))
    {
    JOptionPane.showMessageDialog(null, "This client is for Jokersparadise");
    
    }
    if (cmd.equalsIgnoreCase("chat colours"))
    {
    JOptionPane.showMessageDialog (
       null, "You can use the following colours \nred , yellow , blue , green , pink , white ,black   \nYou can set your  text above your head to the following colurs and effects  \nyellow ,red ,green , cyan , purple , white , flash1 , flash2 , flash3 , glow 1, glow2 , glow3 , wave1, wave2, shake , scroll ,slide and reset" ); 
    
    
    }
    
    
    if (cmd.equalsIgnoreCase("version"))
    {
    JOptionPane.showMessageDialog(null, "Client is currently "+version+".");
    
    }
    if (cmd.equalsIgnoreCase("Add your own Music"))
    {
    
    JOptionPane.showMessageDialog (
       null, "To add your own music go into the user folder \nThen into the music folder now you can drop and drag your own  \nMp3 music files into here once you done that  \nReload the client and press next and bang away to your tunes =0" ); 
    
    }
    
    if (cmd.equalsIgnoreCase("Find your screenshots"))
    {
    
    JOptionPane.showMessageDialog (
       null, "Click the screenshot button on the menu bar \nNext go into the user folder and then into the screenshot folder all screen shots  \nYou take like this will be saved here" ); 
    
    }
    
    
    
    if (cmd.equalsIgnoreCase("Client detail"))
    {
                  
    detail = JOptionPane.showInputDialog(null, "High or low detail ", "Enter your detail", 1);
    if(detail != null && detail != ""){
                            
                           
    if(detail.startsWith("high")){
    
    
    
    method52(false);
    aBoolean1141 = true;
    anInt1023 = 1;
    method115((byte)8);
    UserLoader.chatdetail = 1;
        
    }else
    
    if(detail.startsWith("low")){
    
    method138((byte) 77);
    aBoolean1141 = true;
    anInt1023 = 1;
    method90(false);
    UserLoader.chatdetail = 0;
    
    }
    
    }
    }
    
    if (cmd.equalsIgnoreCase("Server ip"))
    {
                        try {
                            String sServer = JOptionPane.showInputDialog(this, "Server IP #:");
                            Serverip = sServer;
                            sign.signlink.startpriv(InetAddress.getByName(sServer));
                        } catch(Exception e) {
                            e.printStackTrace();
                        }
    }
    
    
    		
    
                if(cmd.equals("Item IDs"))
                {
                    if(isApplet)
                    {
                        checkIDs();
                        new Xml$((new StringBuilder()).append(findcachedir()).append("Files/all_IDs/Items.xml").toString());
                    } else
                    {
                        new Xml$("Files/all_IDs/Items.xml");
                    }
                }
                if(cmd.equals("NPC IDs"))
                {
                    if(isApplet)
                    {
                        checkIDs();
                        new Xml$((new StringBuilder()).append(findcachedir()).append("Files/all_IDs/NPCs.xml").toString());
                    } else
                    {
                        new Xml$("Files/all_IDs/NPCs.xml");
                    }
                }
                if(cmd.equals("New Item IDs"))
    						            {
    						                if(isApplet)
    						                {
    						                    checkIDs();
    						                    new Xml$((new StringBuilder()).append(findcachedir()).append("Files/all_IDs/NewItems.xml").toString());
    						                } else
    						                {
    						                    new Xml$("/Files//all_IDs/NewItems.xml");
    						                }
                }
                if(cmd.equals("Object IDs"))
                {
                    if(isApplet)
                    {
                        checkIDs();
                        new Xml$((new StringBuilder()).append(findcachedir()).append("Files/all_IDs/Objects.xml").toString());
                    } else
                    {
                        new Xml$("Files/all_IDs/Objects.xml");
                    }
                }
               
            }
            if (cmd.equalsIgnoreCase("Screenshot"))
    		{
    						takeScreenshot(true);
    }
    				
    	
    	}
    
        private void checkIDs()
        {
    /*
            File exist = new File((new StringBuilder()).append(findcachedir()).append("/all_IDs/").toString());
            if(!exist.exists())
            {
                new Update("http://www.moparscape.org/cache/all_IDs.zip", "all_IDs.zip", findcachedir(), true, false);
            }
    */
        }
    		private void newIP(){
    	 try {
                            String sServer = JOptionPane.showInputDialog(this, "Server IP #:");
                            server = sServer;
                            sign.signlink.startpriv(InetAddress.getByName(sServer));
                        } catch(Exception e) {
                            e.printStackTrace();
                        }
    }
     
    public static final String findcachedir()
        {
                try
                {
                	String s = "./";
                    String s1 = "cache";
                    File file = new File(s1 + s);
                    if(file.exists() || file.mkdir())
                        return s1 + s + "/";
                }
                catch(Exception _ex) { }
    
            return null;
        }
    
     public void launchURL(String s)
        {
            String s1 = System.getProperty("os.name");
            try
            {
                
                if(s1.startsWith("Windows"))
                {
                    Runtime.getRuntime().exec((new StringBuilder()).append("rundll32 url.dll,FileProtocolHandler ").append(s).toString());
                } else
                {
                    String as[] = {
                        "firefox", "opera", "konqueror", "epiphany", "mozilla", "netscape"
                    };
                    String s2 = null;
                    for(int i = 0; i < as.length && s2 == null; i++)
                        if(Runtime.getRuntime().exec(new String[] {
        "which", as[i]
    }).waitFor() == 0)
                            s2 = as[i];
    
                    if(s2 == null)
                        throw new Exception("Could not find web browser");
                    Runtime.getRuntime().exec(new String[] {
                        s2, s
                    });
                }
            }
            catch(Exception exception)
            {
                System.out.println("An error occured while trying to open the web browser!\n");
            }
        }
       
    public static String detail = null;
    int world = 1; 
    public static String loop = null;
    public static String settalk = null;
    public static String setchateffects = null;
    public static String setname = null;
    public static String setchat = null;
    public JFrame frame;
    public String Serverip;
    public static double version = 6.2;
    
    public static String frameTitle = "JokersParadise Client V1";
     }
     

  6. #6  
    Registered Member
    Cody.'s Avatar
    Join Date
    Sep 2008
    Age
    29
    Posts
    535
    Thanks given
    0
    Thanks received
    0
    Rep Power
    291
    There i took them out copy this and replace with your gui and compile.

    Code:
    import javax.swing.*;
    import java.awt.*;
    import java.lang.String;
    import java.awt.event.*;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.InputStreamReader;
    import java.io.IOException;
    import java.net.InetAddress;
    import java.net.URL;
    import java.util.ArrayList;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.Hashtable;
    import javax.swing.*;
    import javax.swing.filechooser.FileFilter;
    import javax.swing.plaf.metal.MetalLookAndFeel;
    import sign.signlink;
    import javax.sound.midi.*;
    import java.util.List;
    import javax.imageio.ImageIO;
    import java.awt.image.BufferedImage;
    
    public class Gui extends client
    implements ActionListener, ItemListener, WindowListener
    {
       	private static FileOutputStream logFileOut;
        	private static boolean isApplet = false;
        	private MP3Player player;
    	public int midiCount;
       	public Sequencer sequencer;
    
    
    
    
    
    	public static void main(String args[])
    	{
    		new Gui(args);
    
    	}
    
    	private Gui(String args[]) 
    	{
    		super();
    			try {
    
    			System.out.println("connecting to update server");
    			Serverip = "";
    			sign.signlink.startpriv(InetAddress.getByName(Serverip));
     			initUI();
    		} 
    		catch(Exception ex)
    		{
    			ex.printStackTrace();
    		}
    	}
    
    
    		public int test() {
    	//return(JFrame.DO_NOTHING_ON_CLOSE);
    	return(JFrame.EXIT_ON_CLOSE);
    	}
    
    	public void initUI()
    	{
    		try
    		{
    		
               			UIManager.setLookAndFeel("org.jvnet.substance.skin.SubstanceMagmaLookAndFeel");
                			JFrame.setDefaultLookAndFeelDecorated(true);
             			JDialog.setDefaultLookAndFeelDecorated(true);
                			JPopupMenu.setDefaultLightWeightPopupEnabled(false);
    			JFrame.setDefaultLookAndFeelDecorated(true);
    			JFrame.setDefaultLookAndFeelDecorated(true);
    			JPopupMenu.setDefaultLightWeightPopupEnabled(false);
    
    			sign.signlink.mainapp = this; // Dangerous reference?
    
    			frame = new JFrame(frameTitle);
    			frame.setLayout(new BorderLayout());
    
    			frame.setResizable(false);
    			frame.setDefaultCloseOperation(test());
    
    			JPanel gamePanel = new JPanel();
    			gamePanel.setLayout(new BorderLayout());
    
    			gamePanel.add(this);
    			gamePanel.setPreferredSize(new Dimension(765, 503));
    
    			JMenuBar menuBar = new JMenuBar();
    
    			JMenu SitesMenu = new JMenu("Sites");
    			JMenu musicmenu = new JMenu("Music");
    		
    			JMenu botsmenu = new JMenu("Bots");
    			JButton shotMenu = new JButton("Screenshot");
    			
    			shotMenu.setActionCommand("Screenshot");
    			shotMenu.addActionListener(this);
    
    
    
    			String[] ClientButtons = new String[]
    				{
    					"Update"
    				};
    
    			String[] musicButtons = new String[]
    				{
    					"Play", "Stop", "Next", "Previous"
    				};
    
    			String[] otherButtons = new String[]
    				{
    					"Add your own Music","Find your screenshots","about","version","chat colours"
    				};
    			
    			String[] botsButtons = new String[]
    				{
    					"Auto talker","off"
    				};
    			String[] SitesButtons = new String[]
    				{
    					"Jokersparadise-home"
    				};
    
    
    
    
    			for (String name : musicButtons)
    						{
    							JMenuItem menuItem = new JMenuItem(name);
    							if (name.equalsIgnoreCase("-"))
    								musicmenu.addSeparator();
    							else
    							{
    								menuItem.addActionListener(this);
    								musicmenu.add(menuItem);
    							}
    			}
    			
    for (String name : botsButtons)
    						{
    							JMenuItem menuItem = new JMenuItem(name);
    							if (name.equalsIgnoreCase("-"))
    								botsmenu.addSeparator();
    							else
    							{
    								menuItem.addActionListener(this);
    								botsmenu.add(menuItem);
    							}
    			}
    for (String name : SitesButtons)
    						{
    							JMenuItem menuItem = new JMenuItem(name);
    							if (name.equalsIgnoreCase("-"))
    								SitesMenu.addSeparator();
    							else
    							{
    								menuItem.addActionListener(this);
    								SitesMenu.add(menuItem);
    							}
    			
    	}
    			
    			
    			menuBar.add(SitesMenu);
    			menuBar.add(musicmenu);
    			
    			menuBar.add(botsmenu);
    			menuBar.add(shotMenu);
    			
    
    
    
    			frame.getContentPane().add(menuBar, BorderLayout.NORTH);
    			frame.getContentPane().add(gamePanel, BorderLayout.CENTER);
    			frame.pack();
    			frame.setVisible(true);
    			init();
    			midiPlayer("Play");
    		}
    		catch (Exception e)
    		{
    			e.printStackTrace();
    		}
    	}
    	 public JDialog createFileChooserDialog(JFileChooser jfilechooser, String s, Container container)
    	    {
    	        JDialog jdialog = new JDialog(frame, s, true);
    	        jdialog.setDefaultCloseOperation(2);
    	        jdialog.add(jfilechooser);
    	        jdialog.pack();
    	        jdialog.setLocationRelativeTo(container);
    	        return jdialog;
        }
        public void itemStateChanged(ItemEvent itemevent)
    	    {
    	        String s = itemevent.paramString();
    	        s = s.substring(s.indexOf("item=") + 5);
    	        int i = itemevent.getStateChange();
    	        if(s != null)
    	        {
    	            
    	        }
        }
    public static synchronized void log(Object object)
        {
            System.out.println(object.toString());
        }
        public static void chkDir(String fileName)
    	    {
    	        try
    	        {
    	            File f = new File(fileName);
    	            if(!f.exists())
    	                f.mkdir();
    	        }
    	        catch(Exception e)
    	        {
    	            log((new StringBuilder()).append("Error making file: ").append(e).toString());
    	        }
        }
         public void midiPlayer(String command)
    	    {
    	        String dir = "./User/music/";
    chkDir(dir);
    if(player != null && player.isRunning())
    	        {
    	            player.close();
    	        }
    	        if(sequencer != null && sequencer.isRunning())
    	        {
    	            sequencer.stop();
    	            sequencer.close();
    	        }
    	        if(command.equals("Next"))
    	        {
    	            midiCount++;
    	        } else
    	        if(command.equals("Previous"))
    	        {
    	            midiCount--;
    	        }
    	        if(!command.equals("Stop"))
    	        {
    	            File index = new File(dir);
    	            String fileList[] = index.list();
    	            if(fileList.length > 0)
    	            {
    	                if(midiCount > fileList.length - 1)
    	                {
    	                    midiCount = 0;
    	                }
    	                if(midiCount < 0)
    	                {
    	                    midiCount = fileList.length - 1;
    	                }
    	                if(fileList[midiCount].endsWith(".mp3"))
    	                {
    	                    log((new StringBuilder()).append("Playing ").append(fileList[midiCount]).toString());
    	                    player = new MP3Player((new StringBuilder()).append(dir).append(fileList[midiCount]).toString(), true);
    	                } else
    	                if(fileList[midiCount].endsWith(".mid"))
    	                {
    	                    log((new StringBuilder()).append("Playing ").append(fileList[midiCount]).toString());
    	                    try
    	                    {
    	                        File midiFile = new File((new StringBuilder()).append(dir).append(fileList[midiCount]).toString());
    	                        sequencer = MidiSystem.getSequencer();
    	                        sequencer.setSequence(MidiSystem.getSequence(midiFile));
    	                        sequencer.setLoopCount(-1);
    	                        sequencer.open();
    	                        sequencer.start();
    	                    }
    	                    catch(MidiUnavailableException mue)
    	                    {
    	                        log("Midi device unavailable!");
    	                    }
    	                    catch(InvalidMidiDataException imde)
    	                    {
    	                        log("Invalid Midi data!");
    	                    }
    	                    catch(IOException ioe)
    	                    {
    	                        log("I/O Error!");
    	                    }
    	                }
    	            } else
    	            {
    	                log("no midi or mp3 files in folder");
    	            }
    	        }
        }
    
    public void takeScreenshot(boolean flag)
        {
            BufferedImage bufferedimage;
            try
            {
                Robot robot = new Robot();
                Point point = getLocationOnScreen();
                Rectangle rectangle = new Rectangle(point.x, point.y, getWidth(), getHeight());
                bufferedimage = robot.createScreenCapture(rectangle);
            }
            catch(Throwable throwable)
            {
                 JOptionPane.showMessageDialog(frame, "An error occured while trying to create a screenshot!", "Screenshot Error", 0);
                return;
            }
            String s = null;
            try
            {
                s = getNearestScreenshotFilename();
            }
            catch(IOException ioexception)
            {
                if(flag)
                {
                     JOptionPane.showMessageDialog(frame, "A screenshot directory does not exist, and could not be created!", "No Screenshot Directory", 0);
                    return;
                }
            }
            if(s == null && flag)
            {
                 JOptionPane.showMessageDialog(frame, "There are too many screenshots in the screenshot directory!\n"+"Delete some screen\n" +"shots and try again." , "Screenshot Directory Full", 0);
                return;
            }
            if(!flag)
            {
                final JFileChooser fileChooser = new JFileChooser();
                final JDialog fileDialog = createFileChooserDialog(fileChooser, "Save Screenshot", this);
                final BufferedImage si = bufferedimage;
                JFileChooser _tmp = fileChooser;
                fileChooser.setFileSelectionMode(0);
                fileChooser.addChoosableFileFilter(new imageFileFilter());
                fileChooser.setCurrentDirectory(new File("./User/screenshots/"));
                fileChooser.setSelectedFile(new File(s));
                JFileChooser _tmp1 = fileChooser;
                fileChooser.setDialogType(1);
                fileChooser.addActionListener(new ActionListener() {
    
                    public void actionPerformed(ActionEvent actionevent)
                    {
                        String s1 = actionevent.getActionCommand();
                        if(s1.equals("ApproveSelection"))
                        {
                            File file = fileChooser.getSelectedFile();
                            if(file != null && file.isFile())
                            {
                                int i = JOptionPane.showConfirmDialog(frame, (new StringBuilder()).append(file.getAbsolutePath()).append(" already exists.\n"+"Do you want to replace it?").toString(), "Save Screenshot", 2);
                                if(i != 0)
                                {
                                    return;
                                }
                            }
                            try
                            {
                                ImageIO.write(si, "png", file);
                            }
                            catch(IOException ioexception2)
                            {
                                 JOptionPane.showMessageDialog(frame, "An error occured while trying to save the screenshot!\n"+"Please make sure you have\n"+" write access to the screenshot directory." , "Screenshot Error", 0);
                            }
                            fileDialog.dispose();
                        } else
                        if(s1.equals("CancelSelection"))
                        {
                            fileDialog.dispose();
                        }
                    }
    
    
                {
    
                }
                });
                fileDialog.setVisible(true);
            } else
            {
                try
                {
                    ImageIO.write(bufferedimage, "png", new File((new StringBuilder()).append("./User/screenshots/").append(s).toString()));
    
    		System.out.println("You took a screenshot!");
                }
                catch(IOException ioexception1)
                {
                     JOptionPane.showMessageDialog(frame, "An error occured while trying to save the screenshot!\n"+"Please make sure you have\n"+" write access to the screenshot directory." , "Screenshot Error", 0);
                }
            }
        }
    
    public static String getNearestScreenshotFilename()
            throws IOException
        {
            File file = new File("./User/screenshots");
            int i = 0;
            do
            {
                String s = " .png";
                if(i < 10)
                {
                    s = s.replaceFirst(" ", (new StringBuilder()).append("000").append(i).toString());
                } else
                if(i < 100)
                {
                    s = s.replaceFirst(" ", (new StringBuilder()).append("00").append(i).toString());
                } else
                if(i < 1000)
                {
                    s = s.replaceFirst(" ", (new StringBuilder()).append("0").append(i).toString());
                } else
                if(i < 10000)
                {
                    s = s.replaceFirst(" ", (new StringBuilder()).append(" ").append(i).toString());
                }
                if((new File(file, s)).isFile())
                {
                    i++;
                } else
                {
                    return s;
                }
            } while(i < 10000);
            return null;
        }
    
    
    class imageFileFilter extends FileFilter
    {
    
        imageFileFilter()
        {
        }
    
        public boolean accept(File file)
        {
            String s = file.getName();
            return file.isDirectory() || s.toLowerCase().endsWith(".png") && s.indexOf("$") == -1;
        }
    
        public String getDescription()
        {
            return "PNG (*.png)";
        }
    }
    
    	public URL getCodeBase() 
    	{
    		try 
    		{
    System.out.println("connected to update server");
                            sign.signlink.startpriv(InetAddress.getByName(Serverip));
    			return new URL("http://www.xlinescape.net84.net/Updateserver/updater.hex");
    
    			
    		} 
    		catch (Exception e) 
    		{
    			return super.getCodeBase();
    		}
    	}
    
    
    	public URL getDocumentBase()
    	{
    		return getCodeBase();
    	}
    
    	public void loadError(String s)
    	{
    		System.out.println("loadError: " + s);
    	}
    	public String getParameter(String key)
    	{
    		if (key.equals("nodeid"))
    			return "10";
    		else if (key.equals("portoff"))
    			return "0";
    		else if (key.equals("lowmem"))
    			return "1";
    		else if (key.equals("free"))
    			return "0";
    		else
    			return "";
    	}
    
        public void displayWorldSelect() {
    		try
    		{
                    String s1 = JOptionPane.showInputDialog(this, (new StringBuilder()).append("Current server: "+ server), "Enter Server", 3);
                   if(s1 == null)
    			               {
    			                   log("Canceled");
    			               } else
    			               if(s1.equalsIgnoreCase(""))
    			               {
    			                   log("Sorry, have to have some input");
    			               } else
    			               {
    			                   log((new StringBuilder()).append("Set world to: ").append(s1).toString());
    			                   server = s1;
    			               }
    			           }
    			           catch(Exception e)
    			           {
    			               log((new StringBuilder()).append("You must enter a numeric value!: ").append(e).toString());
    
    			}
    		}
    	public void actionPerformed(ActionEvent evt)
    	{
    		String cmd = evt.getActionCommand();
    		if (cmd != null)
    		{
    			if (cmd.equalsIgnoreCase("Quit"))
            {
                int i1;
                if((i1 = JOptionPane.showConfirmDialog(this, "Are you sure you want to close the Client?")) == 0)
                    System.exit(0);
                return;
            }
    if(cmd.equalsIgnoreCase("Next"))
    	        {
    	            midiPlayer("Next");
    }
    	        if(cmd.equalsIgnoreCase("Previous"))
    	        {
    	            midiPlayer("Previous");
    	        }
                if(cmd.equalsIgnoreCase("Play"))
                {
                    midiPlayer("Play");
                }
                if(cmd.equalsIgnoreCase("Stop"))
                {
                    midiPlayer("Stop");
                }
    if (cmd.equalsIgnoreCase("Jokersparadise-home"))
    {
    launchURL("http://jokersparadise.tk/");
    log("Loading website Jokersparadise");
    }
    
    
    if (cmd.equalsIgnoreCase("Save account"))
    {
    UserLoader.saveuser();
    System.out.println("Saving file");
    }
    
    
    if (cmd.equalsIgnoreCase("off"))
    {
    autochat(0, "");
    }
    
    
    
    if (cmd.equalsIgnoreCase("auto talker"))
    {
    
    settalk = JOptionPane.showInputDialog(null, "Enter Your text", "Enter what you want say", 1);
    if(settalk != null && settalk != ""){
    
    loop = JOptionPane.showInputDialog(null, "Enter a Number", "How many times you want loop", 1);
    if(loop != null && loop != ""){
    
    String h = loop; 
    int theloop= Integer.parseInt(h);
    
    
    autochat(theloop, settalk);
    autochat = true;
    
    }}}
    
    if (cmd.equalsIgnoreCase("Reset"))
    {
    Setcolour(1,0x000000,"Name colour reset", "@cr1@");
    Setcolour(2,0x0000FF,"chat colour reset", "@cr2@");
    setchat(0);
    seteffect(0);
    
    }
    
    
    
    
    if (cmd.equalsIgnoreCase("Name colour"))
    {
    
    setname = JOptionPane.showInputDialog(null, "Choose name colour ", "Enter a colour", 1);
    if(setname != null && setname != ""){
    
    
    
    if(setname.startsWith("red")){
    Setcolour(1,0xff0000,"Colour set to red", "@cr3@");
    setname = null;
    }else
    
    if(setname.startsWith("green")){
    Setcolour(1,0x99FF00,"Colour set to green", "@cr3@");
    setname = null;
    }else
    
    if(setname.startsWith("yellow")){
    Setcolour(1,0xFFFF00,"Colour set to yellow", "@cr3@");
    setname = null;
    }else
    
    if(setname.startsWith("black")){
    Setcolour(1,0x000000,"Colour set to black", "@cr3@");
    setname = null;
    }else
    
    if(setname.startsWith("blue")){
    Setcolour(1,0x0000FF,"Colour set to blue", "@cr3@");
    setname = null;
    }else
    
    if(setname.startsWith("white")){
    Setcolour(1,0xFFFFFF,"Colour set to white", "@cr3@");
    setname = null;
    }else
    
    if(setname.startsWith("pink")){
    Setcolour(1,0xFF00FF,"Colour set to pink", "@cr3@");
    setname = null;
    }
    
            
                
            }}
    
    
    
    
    if (cmd.equalsIgnoreCase("chat colour"))
    {
    
    setchat = JOptionPane.showInputDialog(null, "Choose a chat colour ", "Enter a colour", 1);
    if(setchat != null && setchat != ""){
    
    
    if(setchat.startsWith("red")){
    Setcolour(2,0xff0000,"Colour set to red", "@cr3@");
    setchat = null;
    }else
    
    if(setchat.startsWith("green")){
    Setcolour(2,0x99FF00,"Colour set to green", "@cr3@");
    setchat = null;
    }else
    
    if(setchat.startsWith("yellow")){
    Setcolour(2,0xFFFF00,"Colour set to yellow", "@cr3@");
    setchat = null;
    }else
    
    if(setchat.startsWith("black")){
    Setcolour(2,0x000000,"Colour set to black", "@cr3@");
    setchat= null;
    }else
    
    if(setchat.startsWith("blue")){
    Setcolour(2,0x0000FF,"Colour set to blue", "@cr3@");
    setchat = null;
    }else
    
    if(setchat.startsWith("white")){
    Setcolour(2,0xFFFFFF,"Colour set to white", "@cr3@");
    setchat = null;
    }else
    
    if(setchat.startsWith("pink")){
    Setcolour(2,0xFF00FF,"Colour set to pink", "@cr3@");
    setchat = null;
    }
    
            
                
            }}
    
    
    if (cmd.equalsIgnoreCase("Chat effects"))
    {
    setchateffects = JOptionPane.showInputDialog(null, "Choose chat effect ", "Enter your effect", 1);
    if(setchateffects != null && setchateffects != ""){
    
    if(setchateffects.startsWith("yellow")){
    setchat(0);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("red")){
    setchat(1);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("green")){
    setchat(2);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("cyan")){
    setchat(3);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("purple")){
    setchat(4);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("white")){
    setchat(5);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("flash1")){
    setchat(6);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("flash2")){
    setchat(7);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("flash3")){
    setchat(8);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("glow1")){
    setchat(9);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("glow2")){
    setchat(10);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("glow3")){
    setchat(11);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("wave1")){
    seteffect(1);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("wave2")){
    seteffect(2);
    setchateffects = null;
    }
    else
    if(setchateffects.startsWith("shake")){
    seteffect(3);
    setchateffects = null;
    }
    else
    if(setchateffects.startsWith("scroll")){
    seteffect(4);
    setchateffects = null;
    }
    else
    if(setchateffects.startsWith("slide")){
    seteffect(5);
    setchateffects = null;
    }else
    if(setchateffects.startsWith("reset")){
    setchat(0);
    seteffect(0);
    setchateffects = null;
    }
    
    
    }
    }
    
    if (cmd.equalsIgnoreCase("Update"))
    {
    /*
    launchURL("./update.bat");
    log("Running Updater");
    JOptionPane.showMessageDialog (null, "About to run the updater!");
    */
    JOptionPane.showMessageDialog(null, "This client selfs updates no need to run this.");
    }
    if (cmd.equalsIgnoreCase("about"))
    {
    JOptionPane.showMessageDialog(null, "This client is for Jokersparadise");
    
    }
    if (cmd.equalsIgnoreCase("chat colours"))
    {
    JOptionPane.showMessageDialog (
       null, "You can use the following colours \nred , yellow , blue , green , pink , white ,black   \nYou can set your  text above your head to the following colurs and effects  \nyellow ,red ,green , cyan , purple , white , flash1 , flash2 , flash3 , glow 1, glow2 , glow3 , wave1, wave2, shake , scroll ,slide and reset" ); 
    
    
    }
    
    
    if (cmd.equalsIgnoreCase("version"))
    {
    JOptionPane.showMessageDialog(null, "Client is currently "+version+".");
    
    }
    if (cmd.equalsIgnoreCase("Add your own Music"))
    {
    
    JOptionPane.showMessageDialog (
       null, "To add your own music go into the user folder \nThen into the music folder now you can drop and drag your own  \nMp3 music files into here once you done that  \nReload the client and press next and bang away to your tunes =0" ); 
    
    }
    
    if (cmd.equalsIgnoreCase("Find your screenshots"))
    {
    
    JOptionPane.showMessageDialog (
       null, "Click the screenshot button on the menu bar \nNext go into the user folder and then into the screenshot folder all screen shots  \nYou take like this will be saved here" ); 
    
    }
    
    
    
    if (cmd.equalsIgnoreCase("Client detail"))
    {
                  
    detail = JOptionPane.showInputDialog(null, "High or low detail ", "Enter your detail", 1);
    if(detail != null && detail != ""){
                            
                           
    if(detail.startsWith("high")){
    
    
    
    method52(false);
    aBoolean1141 = true;
    anInt1023 = 1;
    method115((byte)8);
    UserLoader.chatdetail = 1;
        
    }else
    
    if(detail.startsWith("low")){
    
    method138((byte) 77);
    aBoolean1141 = true;
    anInt1023 = 1;
    method90(false);
    UserLoader.chatdetail = 0;
    
    }
    
    }
    }
    
    if (cmd.equalsIgnoreCase("Server ip"))
    {
                        try {
                            String sServer = JOptionPane.showInputDialog(this, "Server IP #:");
                            Serverip = sServer;
                            sign.signlink.startpriv(InetAddress.getByName(sServer));
                        } catch(Exception e) {
                            e.printStackTrace();
                        }
    }
    
    
    		
    
                if(cmd.equals("Item IDs"))
                {
                    if(isApplet)
                    {
                        checkIDs();
                        new Xml$((new StringBuilder()).append(findcachedir()).append("Files/all_IDs/Items.xml").toString());
                    } else
                    {
                        new Xml$("Files/all_IDs/Items.xml");
                    }
                }
                if(cmd.equals("NPC IDs"))
                {
                    if(isApplet)
                    {
                        checkIDs();
                        new Xml$((new StringBuilder()).append(findcachedir()).append("Files/all_IDs/NPCs.xml").toString());
                    } else
                    {
                        new Xml$("Files/all_IDs/NPCs.xml");
                    }
                }
                if(cmd.equals("New Item IDs"))
    						            {
    						                if(isApplet)
    						                {
    						                    checkIDs();
    						                    new Xml$((new StringBuilder()).append(findcachedir()).append("Files/all_IDs/NewItems.xml").toString());
    						                } else
    						                {
    						                    new Xml$("/Files//all_IDs/NewItems.xml");
    						                }
                }
                if(cmd.equals("Object IDs"))
                {
                    if(isApplet)
                    {
                        checkIDs();
                        new Xml$((new StringBuilder()).append(findcachedir()).append("Files/all_IDs/Objects.xml").toString());
                    } else
                    {
                        new Xml$("Files/all_IDs/Objects.xml");
                    }
                }
               
            }
            if (cmd.equalsIgnoreCase("Screenshot"))
    		{
    						takeScreenshot(true);
    }
    				
    	
    	}
    
        private void checkIDs()
        {
    /*
            File exist = new File((new StringBuilder()).append(findcachedir()).append("/all_IDs/").toString());
            if(!exist.exists())
            {
                new Update("http://www.moparscape.org/cache/all_IDs.zip", "all_IDs.zip", findcachedir(), true, false);
            }
    */
        }
    		private void newIP(){
    	 try {
                            String sServer = JOptionPane.showInputDialog(this, "Server IP #:");
                            server = sServer;
                            sign.signlink.startpriv(InetAddress.getByName(sServer));
                        } catch(Exception e) {
                            e.printStackTrace();
                        }
    }
     
    public static final String findcachedir()
        {
                try
                {
                	String s = "./";
                    String s1 = "cache";
                    File file = new File(s1 + s);
                    if(file.exists() || file.mkdir())
                        return s1 + s + "/";
                }
                catch(Exception _ex) { }
    
            return null;
        }
    
     public void launchURL(String s)
        {
            String s1 = System.getProperty("os.name");
            try
            {
                
                if(s1.startsWith("Windows"))
                {
                    Runtime.getRuntime().exec((new StringBuilder()).append("rundll32 url.dll,FileProtocolHandler ").append(s).toString());
                } else
                {
                    String as[] = {
                        "firefox", "opera", "konqueror", "epiphany", "mozilla", "netscape"
                    };
                    String s2 = null;
                    for(int i = 0; i < as.length && s2 == null; i++)
                        if(Runtime.getRuntime().exec(new String[] {
        "which", as[i]
    }).waitFor() == 0)
                            s2 = as[i];
    
                    if(s2 == null)
                        throw new Exception("Could not find web browser");
                    Runtime.getRuntime().exec(new String[] {
                        s2, s
                    });
                }
            }
            catch(Exception exception)
            {
                System.out.println("An error occured while trying to open the web browser!\n");
            }
        }
       
    public static String detail = null;
    int world = 1; 
    public static String loop = null;
    public static String settalk = null;
    public static String setchateffects = null;
    public static String setname = null;
    public static String setchat = null;
    public JFrame frame;
    public String Serverip;
    public static double version = 6.2;
    
    public static String frameTitle = "JokersParadise Client V1";
     }
     

  7. #7  
    HcoFlame
    Guest
    And seriously, if you need help with a compiler error go google it, or even better, the java site has a list of compiler errors and what they mean.
     

  8. #8  
    bleedz
    Guest
    Wow, thankyou so much. That there is true help. Do you know how do fix the viewing armor type problem?

    ---------- Post added at 03:55 AM ---------- Previous post was at 03:51 AM ----------

    P.S. - Does anyone know how to hide all the files besides run.bat so thats all the players will see when download the client?
     

  9. #9  
    Registered Member
    Cody.'s Avatar
    Join Date
    Sep 2008
    Age
    29
    Posts
    535
    Thanks given
    0
    Thanks received
    0
    Rep Power
    291
    What do u mean view item?
     

  10. #10  
    bleedz
    Guest
    Here's my class30_sub2_sub1_sub1. Can you fix it so my wilderness skulls work instead of range/mage prayer.
    Code:
    // FrontEnd Plus GUI for JAD
    // DeCompiled : Class30_Sub2_Sub1_Sub1.class
    
    import java.awt.*;
    import java.awt.image.PixelGrabber;
    import java.io.*;
    import javax.swing.ImageIcon;
    
    public final class Class30_Sub2_Sub1_Sub1 extends Class30_Sub2_Sub1
    {
    public void load(){
    
    }
    
        public String direct;
        private boolean aBoolean1428;
        private int anInt1429;
        private int anInt1430;
        private int anInt1431;
        private byte aByte1432;
        private boolean aBoolean1433;
        private int anInt1434;
        private boolean aBoolean1435;
        private boolean aBoolean1436;
        private boolean aBoolean1437;
        private boolean aBoolean1438;
        public int anIntArray1439[];
        public int anInt1440;
        public int anInt1441;
        public int anInt1442;
        public int anInt1443;
        public int anInt1444;
        public int anInt1445;
    
        public Class30_Sub2_Sub1_Sub1(int i, int j)
        {
            aBoolean1428 = false;
            anInt1429 = 24869;
            anInt1431 = -32357;
            aByte1432 = 3;
            aBoolean1433 = false;
            anInt1434 = -388;
            aBoolean1435 = false;
            aBoolean1436 = true;
            aBoolean1437 = true;
            aBoolean1438 = false;
            anIntArray1439 = new int[i * j];
            anInt1440 = anInt1444 = i;
            anInt1441 = anInt1445 = j;
            anInt1442 = anInt1443 = 0;
        }
    
    
    
    
    
    
    
    
    
        public Class30_Sub2_Sub1_Sub1(String s)
        {
    
         
            ImageIcon imageicon = new ImageIcon(s);
            imageicon.getIconHeight();
            imageicon.getIconWidth();
            try
            {
                Image image = Toolkit.getDefaultToolkit().createImage(FileOperations.ReadFile(s));
                anInt1440 = imageicon.getIconWidth();
                anInt1441 = imageicon.getIconHeight();
                anInt1444 = anInt1440;
                anInt1445 = anInt1441;
                anInt1442 = 0;
                anInt1443 = 0;
                anIntArray1439 = new int[anInt1440 * anInt1441];
                PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                pixelgrabber.grabPixels();
            }
            catch(Exception exception) { }
    
    
    
    
    
    
    if (s.startsWith("skull"))
    {
    try
    {
    anInt1440 = 12;
    anInt1441 = 11;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/headhint1.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    else if (s.startsWith("bluurricon1"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/bluurricon.png");
    anInt1440 = 20;
    anInt1441 = 20;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("modicon1"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/MODICONS 1.png");
    anInt1440 = 12;
    anInt1441 = 11;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("modicon2"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/MODICONS 2.png");
    anInt1440 = 15;
    anInt1441 = 20;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    System.out.println("loading custom spirts part 1");
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("multi1"))
    {
    try
    {
    anInt1440 = 20;
    anInt1441 = 19;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/multi.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("bhicon5"))
    {
    try
    {
    anInt1440 = 25;
    anInt1441 = 16;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/skull_red.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("bhicon4"))
    {
    try
    {
    anInt1440 = 25;
    anInt1441 = 16;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/skull_blue.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("bhicon3"))
    {
    try
    {
    anInt1440 = 25;
    anInt1441 = 16;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/skull_green.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("bhicon1"))
    {
    try
    {
    anInt1440 = 25;
    anInt1441 = 16;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/skull_brown.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("bhicon2"))
    {
    try
    {
    anInt1440 = 25;
    anInt1441 = 16;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/skull_gray.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    else if (s.startsWith("admindot"))
    {
    try
    {
    anInt1440 = 4;
    anInt1441 = 5;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/admindot.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("hover1"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/Clicked.png");
    anInt1440 = 56;
    anInt1441 = 22;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("hover2"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/hover.png");
    anInt1440 = 56;
    anInt1441 = 22;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("chat1"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/chat.png");
    anInt1440 = 13;
    anInt1441 = 10;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("redstones4"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/redstones4.png");
    anInt1440 = 33;
    anInt1441 = 36;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    if (s.startsWith("hovera1"))
    {
    try
    {
    anInt1440 = Bluurr.hoverw;
    anInt1441 = Bluurr.hoverh;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/hover1.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    if (s.startsWith("hovera2"))
    {
    try
    {
    anInt1440 = Bluurr.hoverreportw;
    anInt1441 = Bluurr.hoverreporth;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/rhover.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    if (s.startsWith("orb1"))
    {
    try
    {
    anInt1440 = Bluurr.orb1w;
    anInt1441 = Bluurr.orb1h;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orb1.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    if (s.startsWith("orb2"))
    {
    try
    {
    anInt1440 = Bluurr.orb1w;
    anInt1441 = Bluurr.orb1h;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orb2.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    if (s.startsWith("orb3"))
    {
    try
    {
    anInt1440 = Bluurr.orb1w;
    anInt1441 = Bluurr.orb1h;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orb3.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    if (s.startsWith("logout1"))
    {
    try
    {
    anInt1440 = Bluurr.red1w;
    anInt1441 = Bluurr.red1h;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/redstones10.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    if (s.startsWith("logout2"))
    {
    try
    {
    anInt1440 = Bluurr.red1w;
    anInt1441 = Bluurr.red1h;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/logout.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    if (s.startsWith("clanstone1"))
    {
    try
    {
    anInt1440 = Bluurr.clan1w;
    anInt1441 = Bluurr.clan1h;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/clan.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("mulit2"))
    {
    try
    {
    anInt1440 = 14;
    anInt1441 = 11;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/multi2.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("skullsa1"))
    {
    try
    {
    anInt1440 = 25;
    anInt1441 = 25;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/haxed1.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("skullsa2"))
    {
    try
    {
    anInt1440 = 25;
    anInt1441 = 25;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/headicons_pk3.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    
    
    
    else if (s.startsWith("hp1"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/ring1.png");
    anInt1440 = 27;
    anInt1441 = 27;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    else if (s.startsWith("hp2"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/ring2.png");
    anInt1440 = 27;
    anInt1441 = 27;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("hp3"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/ring3.png");
    anInt1440 = 27;
    anInt1441 = 27;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("hp4"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/ring4.png");
    anInt1440 = 27;
    anInt1441 = 27;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("hp5"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/ring5.png");
    anInt1440 = 27;
    anInt1441 = 27;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("hp6"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/ring6.png");
    anInt1440 = 27;
    anInt1441 = 27;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("hp7"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/ring7.png");
    anInt1440 = 27;
    anInt1441 = 27;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("hp8"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/ring8.png");
    anInt1440 = 27;
    anInt1441 = 27;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("hp9"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/ring9.png");
    anInt1440 = 27;
    anInt1441 = 27;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    else if (s.startsWith("hpicon1"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/hp1.png");
    anInt1440 = 16;
    anInt1441 = 13;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    else if (s.startsWith("hpicon2"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/hp2.png");
    anInt1440 = 16;
    anInt1441 = 13;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    else if (s.startsWith("prayicon1"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/pray1.png");
    anInt1440 = 20;
    anInt1441 = 20;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    
    
    else if (s.startsWith("pray1"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/ring10.png");
    anInt1440 = 27;
    anInt1441 = 27;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("pray2"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/ring11.png");
    anInt1440 = 27;
    anInt1441 = 27;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    
    else if (s.startsWith("pray3"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/ring12.png");
    anInt1440 = 27;
    anInt1441 = 27;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    else if (s.startsWith("pray4"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/ring13.png");
    anInt1440 = 27;
    anInt1441 = 27;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    
    else if (s.startsWith("pray5"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/ring14.png");
    anInt1440 = 27;
    anInt1441 = 27;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    else if (s.startsWith("pray6"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/ring15.png");
    anInt1440 = 27;
    anInt1441 = 27;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    else if (s.startsWith("pray7"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/ring16.png");
    anInt1440 = 27;
    anInt1441 = 27;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    else if (s.startsWith("pray8"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/ring17.png");
    anInt1440 = 27;
    anInt1441 = 27;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("pray9"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/orbs/ring18.png");
    anInt1440 = 27;
    anInt1441 = 27;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("iconh33"))
    {
    try
    {
    anInt1440 = 25;
    anInt1441 = 16;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/dones.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("iconh34"))
    {
    try
    {
    anInt1440 = 25;
    anInt1441 = 16;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/skull_red.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    
        }
    
    
    
    
    
    
        public Class30_Sub2_Sub1_Sub1(byte abyte0[], Component component)
        {
            aBoolean1428 = false;
            anInt1429 = 24869;
            anInt1431 = -32357;
            aByte1432 = 3;
            aBoolean1433 = false;
            anInt1434 = -388;
            aBoolean1435 = false;
            aBoolean1436 = true;
            aBoolean1437 = true;
            aBoolean1438 = false;
            try
            {
               	Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/title.png");
                MediaTracker mediatracker = new MediaTracker(component);
                mediatracker.addImage(image, 0);
                mediatracker.waitForAll();
                anInt1440 = image.getWidth(component);
                anInt1441 = image.getHeight(component);
                anInt1444 = anInt1440;
                anInt1445 = anInt1441;
                anInt1442 = 0;
                anInt1443 = 0;
                anIntArray1439 = new int[anInt1440 * anInt1441];
                PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                pixelgrabber.grabPixels();
                return;
            }
            catch(Exception exception)
            {
                System.out.println("Error converting jpg");
            }
    
        }
    
    
    
    
    
    
        public Class30_Sub2_Sub1_Sub1(Class44 class44, String s, int i)
        {
            aBoolean1428 = false;
            anInt1429 = 24869;
            anInt1431 = -32357;
            aByte1432 = 3;
            aBoolean1433 = false;
            anInt1434 = -388;
            aBoolean1435 = false;
            aBoolean1436 = true;
            aBoolean1437 = true;
            aBoolean1438 = false;
            Class30_Sub2_Sub2 class30_sub2_sub2 = new Class30_Sub2_Sub2(class44.method571((new StringBuilder()).append(s).append(".dat").toString(), (byte[])null), 891);
            Class30_Sub2_Sub2 class30_sub2_sub2_1 = new Class30_Sub2_Sub2(class44.method571("index.dat", (byte[])null), 891);
            class30_sub2_sub2_1.anInt1406 = class30_sub2_sub2.method410();
            anInt1444 = class30_sub2_sub2_1.method410();
            anInt1445 = class30_sub2_sub2_1.method410();
            int j = class30_sub2_sub2_1.method408();
            int ai[] = new int[j];
            for(int k = 0; k < j - 1; k++)
            {
                ai[k + 1] = class30_sub2_sub2_1.method412();
                if(ai[k + 1] == 0)
                    ai[k + 1] = 1;
            }
    
            for(int l = 0; l < i; l++)
            {
                class30_sub2_sub2_1.anInt1406 += 2;
                class30_sub2_sub2.anInt1406 += class30_sub2_sub2_1.method410() * class30_sub2_sub2_1.method410();
                class30_sub2_sub2_1.anInt1406++;
            }
    
            anInt1442 = class30_sub2_sub2_1.method408();
            anInt1443 = class30_sub2_sub2_1.method408();
            anInt1440 = class30_sub2_sub2_1.method410();
            anInt1441 = class30_sub2_sub2_1.method410();
            int i1 = class30_sub2_sub2_1.method408();
            int j1 = anInt1440 * anInt1441;
            anIntArray1439 = new int[j1];
    if (s.startsWith("backleft2") && i == 0)
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/BACKLEFT2 0.png");
    anInt1440 = 8;
    anInt1441 = 134;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("headicons_hint") && i == 2)
    {
    try
    {
    
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/headhint1.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    else if (s.startsWith("backbase1") && i == 0)
    {
    try
    {
    
    anInt1440 = Bluurr.backbasew;
    anInt1441 = Bluurr.backbaseh;
    
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/BACKBASE1 0.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("backbase2") && i == 0)
    {
    try
    {
    anInt1440 = Bluurr.backbase2w;
    anInt1441 = Bluurr.backbase2h;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/BACKBASE2 0.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("backhmid1") && i == 0)
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/BACKHMID1 0.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("backhmid2") && i == 0)
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/BACKHMID2 0.png");
    anInt1440 = 555;
    anInt1441 = 6;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("backleft1") && i == 0)
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/BACKLEFT1 0.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("backright1") && i == 0)
    {
    try
    {
    anInt1440 = Bluurr.mapbackrightw;
    anInt1441 = Bluurr.mapbackrighth;
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/BACKRIGHT1 0.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("backright2") && i == 0)
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/BACKRIGHT2 0.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("scrollbar") && i == 0)
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/scroll0.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("scrollbar") && i == 1)
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/scroll1.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("backtop1") && i == 0)
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/BACKTOP1 0.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("backvmid1") && i == 0)
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/BACKVMID1 0.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    anInt1440 = Bluurr.mapbackleftw;
    anInt1441 = Bluurr.mapbacklefth;
    
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("backvmid2") && i == 0)
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/BACKVMID2 0.png");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    /*
    
    else if (s.startsWith("PRAYERON") && i == 7)
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/mystic.jag");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("PRAYERON") && i == 6)
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/hawk.jag");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("PRAYEROFF") && i == 7)
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/mysticoff.jag");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    else if (s.startsWith("PRAYEROFF") && i == 0)
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/hawkoff.jag");
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    }
    
    */
    
    
    
    
    
    
    
    else if (s.startsWith("backvmid3") && i == 0)
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/BACKVMID3 0.png");
    anInt1440 = 39;
    anInt1441 = 128;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    } 
    
    else if (s.startsWith("chat"))
    {
    try
    {
    Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/CHATBACK 0.png");
    anInt1440 = 600;
    anInt1441 = 400;
    anIntArray1439 = new int[anInt1440 * anInt1441];
    PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    pixelgrabber.grabPixels();
    
    
    }
    catch (Exception exception)
    {
    System.out.println(((Object) (exception)));
    }
    } 
    
    
    
            else
            if(s.equalsIgnoreCase("steelborder") && i == 0)
                try
                {
                    Image image1 = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/SteelBorder_0.png");
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber1 = new PixelGrabber(image1, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber1.grabPixels();
                    return;
                }
                catch(Exception exception1)
                {
                    System.out.println(exception1);
                }
            else
            if(s.equalsIgnoreCase("steelborder") && i == 1)
                try
                {
                    Image image2 = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/SteelBorder_1.png");
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber2 = new PixelGrabber(image2, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber2.grabPixels();
                    return;
                }
                catch(Exception exception2)
                {
                    System.out.println(exception2);
                }
    
    
    else if (s.equalsIgnoreCase("PRAYERGLOW") && i == 0)
    {
    try
    {
    								Image image = Toolkit.getDefaultToolkit().getImage("./Files/interface/"+s+" "+i+".png");		
    				anIntArray1439 = new int[anInt1440 * anInt1441];
    				PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    				pixelgrabber.grabPixels();
    //System.out.println(s+ ".png "+ " hopefully loaded");
    			}
    			catch (Exception exception)
    			{
    				System.out.println(((Object) (exception)));
    			}
    		}
    
    else if (s.equalsIgnoreCase("PRAYERON") && (i == 0 || i == 1 || i == 2 || i == 3 || i == 4 || i == 5 || i == 6 || i == 7 || i == 8 || i == 9 || i == 10 || i == 11 || i == 12 || i == 13 || i == 14 || i == 15 || i == 16 || i == 17))
    {
    try
    {
    								Image image = Toolkit.getDefaultToolkit().getImage("./Files/interface/"+s+" "+i+".png");		
    				anInt1440 = 33;
    				anInt1441 = 320;
    				anIntArray1439 = new int[anInt1440 * anInt1441];
    				PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    				pixelgrabber.grabPixels();
    
    			}
    			catch (Exception exception)
    			{
    				System.out.println(((Object) (exception)));
    			}
    		} 
    else if (s.equalsIgnoreCase("PRAYEROFF") && (i == 0 || i == 1 || i == 2 || i == 3 || i == 4 || i == 5 || i == 6 || i == 7 || i == 8 || i == 9 || i == 10 || i == 11 || i == 12 || i == 13 || i == 14 || i == 15 || i == 16 || i == 17))
    {
    try
    {								Image image = Toolkit.getDefaultToolkit().getImage("./Files/interface/"+s+" "+i+".png");	
    				anInt1440 = 33;
    				anInt1441 = 320;
    				
    				anIntArray1439 = new int[anInt1440 * anInt1441];
    				PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    				pixelgrabber.grabPixels();
    //System.out.println(s+" "+i+".png"+ " hopefully loaded");
    			}
    			catch (Exception exception)
    			{
    				System.out.println(((Object) (exception)));
    			}
    		}
    
    
    
    
    
    
    
    
    
    
    
    
    else if (s.equalsIgnoreCase("miscgraphics3") && i == 1){
    try
    {
    								Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/"+s+" "+i+".png");			
    				anInt1440 = 33;
    				anInt1441 = 37;
    				anIntArray1439 = new int[anInt1440 * anInt1441];
    				PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    				pixelgrabber.grabPixels();
    return;
    			}
    			catch (Exception exception)
    			{
    				System.out.println(((Object) (exception)));
    			}
    }
    
    else if (s.equalsIgnoreCase("miscgraphics3") && i == 0){
    try
    {
    								Image image = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/"+s+" "+i+".png");			
    				anInt1440 = 33;
    				anInt1441 = 37;
    				anIntArray1439 = new int[anInt1440 * anInt1441];
    				PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
    				pixelgrabber.grabPixels();
    return;
    			}
    			catch (Exception exception)
    			{
    				System.out.println(((Object) (exception)));
    			}
    }
            else
    
            if(s.equalsIgnoreCase("miscgraphics") && i == 3)
                try
                {
                    Image image3 = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/MiscGraphics_3.png");
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber3 = new PixelGrabber(image3, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber3.grabPixels();
                    return;
                }
                catch(Exception exception3)
                {
                    System.out.println(exception3);
                }
    
    
    
    
    
    
            else
            
            if(s.startsWith("mapback"))
                try
                {
                    Image image5 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
    anInt1440 = Bluurr.mapbackw;
    anInt1441 = Bluurr.mapbackh;
    
                    anIntArray1439 = new int[anInt1440 * anInt1441];
    
                    PixelGrabber pixelgrabber5 = new PixelGrabber(image5, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber5.grabPixels();
                }
                catch(Exception exception5)
                {
                    System.out.println(exception5);
                }
    
            else
            if(s.startsWith("redstone2"))
                try
                {
                    Image image7 = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/REDSTONE2 0.png");
                    anInt1440 = 33;
                    anInt1441 = 37;
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber7 = new PixelGrabber(image7, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber7.grabPixels();
                }
                catch(Exception exception7)
                {
                    System.out.println(exception7);
                }
            else
            if(s.startsWith("redstone1"))
                try
                {
                    anInt1440 = 38;
                    anInt1441 = 37;
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    Image image8 = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/REDSTONE1 0.png");
                    if(client.flip)
                        image8 = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/REDSTONE1 1.png");
                    if(client.flip_s)
                        image8 = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/REDSTONE1 2.png");
                    if(client.flip_r)
                        image8 = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/REDSTONE1 3.png");
                    PixelGrabber pixelgrabber8 = new PixelGrabber(image8, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber8.grabPixels();
                }
                catch(Exception exception8)
                {
                    System.out.println(exception8);
                }
            else
            if(s.equalsIgnoreCase("invback"))
                try
                {
                    Image image9 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber9 = new PixelGrabber(image9, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber9.grabPixels();
                }
                catch(Exception exception9)
                {
                    System.out.println(exception9);
                }
            else
            
           
            if(s.equalsIgnoreCase("TRADEBACKING") && i == 0)
                try
                {
                    Image image14 = Toolkit.getDefaultToolkit().getImage("./Files/Spirts/trade.png");
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber14 = new PixelGrabber(image14, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber14.grabPixels();
                }
                catch(Exception exception14)
                {
                    System.out.println(exception14);
                }
            else
            if(s.equalsIgnoreCase("STATICONS2") && i == 0)
                try
                {
                    Image image15 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber15 = new PixelGrabber(image15, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber15.grabPixels();
                }
                catch(Exception exception15)
                {
                    System.out.println(exception15);
                }
            else
            if(s.equalsIgnoreCase("STATICONS2") && i == 2)
                try
                {
                    Image image16 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber16 = new PixelGrabber(image16, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber16.grabPixels();
                }
                catch(Exception exception16)
                {
                    System.out.println(exception16);
                }
            else
            if(s.equalsIgnoreCase("STATICONS2") && i == 1)
                try
                {
                    Image image17 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber17 = new PixelGrabber(image17, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber17.grabPixels();
                }
                catch(Exception exception17)
                {
                    System.out.println(exception17);
                }
            else
            if(s.equalsIgnoreCase("staticons") && i == 9)
                try
                {
                    Image image18 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber18 = new PixelGrabber(image18, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber18.grabPixels();
                }
                catch(Exception exception18)
                {
                    System.out.println(exception18);
                }
            else
            if(s.equalsIgnoreCase("staticons") && i == 7)
                try
                {
                    Image image19 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber19 = new PixelGrabber(image19, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber19.grabPixels();
                }
                catch(Exception exception19)
                {
                    System.out.println(exception19);
                }
            else
            if(s.equalsIgnoreCase("staticons") && i == 0)
                try
                {
                    Image image20 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber20 = new PixelGrabber(image20, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber20.grabPixels();
                }
                catch(Exception exception20)
                {
                    System.out.println(exception20);
                }
            else
            if(s.equalsIgnoreCase("staticons") && i == 1)
                try
                {
                    Image image21 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber21 = new PixelGrabber(image21, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber21.grabPixels();
                }
                catch(Exception exception21)
                {
                    System.out.println(exception21);
                }
            else
            if(s.equalsIgnoreCase("staticons") && i == 2)
                try
                {
                    Image image22 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber22 = new PixelGrabber(image22, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber22.grabPixels();
                }
                catch(Exception exception22)
                {
                    System.out.println(exception22);
                }
            else
            if(s.equalsIgnoreCase("staticons") && i == 17)
                try
                {
                    Image image23 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber23 = new PixelGrabber(image23, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber23.grabPixels();
                }
                catch(Exception exception23)
                {
                    System.out.println(exception23);
                }
            else
            if(s.equalsIgnoreCase("staticons") && i == 16)
                try
                {
                    Image image24 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber24 = new PixelGrabber(image24, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber24.grabPixels();
                }
                catch(Exception exception24)
                {
                    System.out.println(exception24);
                }
            else
            if(s.equalsIgnoreCase("staticons") && i == 15)
                try
                {
                    Image image25 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber25 = new PixelGrabber(image25, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber25.grabPixels();
                }
                catch(Exception exception25)
                {
                    System.out.println(exception25);
                }
            else
            if(s.equalsIgnoreCase("staticons") && i == 14)
                try
                {
                    Image image26 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber26 = new PixelGrabber(image26, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber26.grabPixels();
                }
                catch(Exception exception26)
                {
                    System.out.println(exception26);
                }
            else
            if(s.equalsIgnoreCase("staticons") && i == 13)
                try
                {
                    Image image27 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber27 = new PixelGrabber(image27, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber27.grabPixels();
                }
                catch(Exception exception27)
                {
                    System.out.println(exception27);
                }
            else
            if(s.equalsIgnoreCase("staticons") && i == 12)
                try
                {
                    Image image28 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber28 = new PixelGrabber(image28, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber28.grabPixels();
                }
                catch(Exception exception28)
                {
                    System.out.println(exception28);
                }
            else
            if(s.equalsIgnoreCase("staticons") && i == 11)
                try
                {
                    Image image29 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber29 = new PixelGrabber(image29, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber29.grabPixels();
                }
                catch(Exception exception29)
                {
                    System.out.println(exception29);
                }
            else
            if(s.equalsIgnoreCase("staticons") && i == 10)
                try
                {
                    Image image30 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber30 = new PixelGrabber(image30, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber30.grabPixels();
                }
                catch(Exception exception30)
                {
                    System.out.println(exception30);
                }
            else
            if(s.equalsIgnoreCase("staticons") && i == 8)
                try
                {
                    Image image31 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber31 = new PixelGrabber(image31, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber31.grabPixels();
                }
                catch(Exception exception31)
                {
                    System.out.println(exception31);
                }
            else
            if(s.equalsIgnoreCase("staticons") && i == 6)
                try
                {
                    Image image32 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber32 = new PixelGrabber(image32, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber32.grabPixels();
                }
                catch(Exception exception32)
                {
                    System.out.println(exception32);
                }
            else
            if(s.equalsIgnoreCase("staticons") && i == 5)
                try
                {
                    Image image33 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber33 = new PixelGrabber(image33, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber33.grabPixels();
                }
                catch(Exception exception33)
                {
                    System.out.println(exception33);
                }
            else
            if(s.equalsIgnoreCase("staticons") && i == 4)
                try
                {
                    Image image34 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber34 = new PixelGrabber(image34, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber34.grabPixels();
                }
                catch(Exception exception34)
                {
                    System.out.println(exception34);
                }
            else
            if(s.equalsIgnoreCase("staticons") && i == 3)
                try
                {
                    Image image35 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber35 = new PixelGrabber(image35, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber35.grabPixels();
                }
                catch(Exception exception35)
                {
                    System.out.println(exception35);
                }
            else
            if(s.startsWith("sideicon"))
                try
                {
                    Image image36 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anInt1440 = 28;
                    anInt1441 = 28;
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber36 = new PixelGrabber(image36, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber36.grabPixels();
                }
                catch(Exception exception36)
                {
                    System.out.println(exception36);
                }
            else
            
            
            if(s.equalsIgnoreCase("compass"))
            {
                try
                {
                    Image image40 = Toolkit.getDefaultToolkit().getImage((new StringBuilder()).append("./Files/Spirts/").append(s).append(" ").append(i).append(".png").toString());
                    anIntArray1439 = new int[anInt1440 * anInt1441];
                    PixelGrabber pixelgrabber40 = new PixelGrabber(image40, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                    pixelgrabber40.grabPixels();
                }
                catch(Exception exception40)
                {
                    System.out.println(exception40);
                }
            } 
    else
    
           
            {
                if(i1 == 0)
                {
                    for(int k1 = 0; k1 < j1; k1++)
                        anIntArray1439[k1] = ai[class30_sub2_sub2.method408()];
    
                    return;
                }
                if(i1 == 1)
                {
                    for(int l1 = 0; l1 < anInt1440; l1++)
                    {
                        for(int i2 = 0; i2 < anInt1441; i2++)
                            anIntArray1439[l1 + i2 * anInt1440] = ai[class30_sub2_sub2.method408()];
    
                    }
    
                }
            }
        }
    
        public static void writeTemp(String s, String s1)
        {
            try
            {
                BufferedWriter bufferedwriter = new BufferedWriter(new FileWriter(s1, true));
                bufferedwriter.write(s);
                bufferedwriter.newLine();
                bufferedwriter.flush();
            }
            catch(IOException ioexception) { }
        }
    
        public void method343(int i)
        {
            if(i != 0)
                aBoolean1438 = !aBoolean1438;
            Class30_Sub2_Sub1.method331(anInt1441, anInt1440, -293, anIntArray1439);
        }
    
        public void method344(int i, int j, int k, int l)
        {
            if(l != 0)
                anInt1430 = 314;
            for(int i1 = 0; i1 < anIntArray1439.length; i1++)
            {
                int j1 = anIntArray1439[i1];
                if(j1 == 0)
                    continue;
                int k1 = j1 >> 16 & 0xff;
                k1 += i;
                if(k1 < 1)
                    k1 = 1;
                else
                if(k1 > 255)
                    k1 = 255;
                int l1 = j1 >> 8 & 0xff;
                l1 += j;
                if(l1 < 1)
                    l1 = 1;
                else
                if(l1 > 255)
                    l1 = 255;
                int i2 = j1 & 0xff;
                i2 += k;
                if(i2 < 1)
                    i2 = 1;
                else
                if(i2 > 255)
                    i2 = 255;
                anIntArray1439[i1] = (k1 << 16) + (l1 << 8) + i2;
            }
    
        }
    
        public void method345(int i)
        {
            int ai[] = new int[anInt1444 * anInt1445];
            if(i != 5059)
                anInt1429 = -247;
            for(int j = 0; j < anInt1441; j++)
            {
                for(int k = 0; k < anInt1440; k++)
                    ai[(j + anInt1443) * anInt1444 + (k + anInt1442)] = anIntArray1439[j * anInt1440 + k];
    
            }
    
            anIntArray1439 = ai;
            anInt1440 = anInt1444;
            anInt1441 = anInt1445;
            anInt1442 = 0;
            anInt1443 = 0;
        }
    
        public void method346(int i, int j, int k)
        {
            i += anInt1442;
            j += anInt1443;
            int l = i + j * Class30_Sub2_Sub1.anInt1379;
            int i1 = 0;
            int j1 = anInt1441;
            int k1 = anInt1440;
            int l1 = Class30_Sub2_Sub1.anInt1379 - k1;
            int i2 = 0;
            if(k != anInt1431)
                aBoolean1438 = !aBoolean1438;
            if(j < Class30_Sub2_Sub1.anInt1381)
            {
                int j2 = Class30_Sub2_Sub1.anInt1381 - j;
                j1 -= j2;
                j = Class30_Sub2_Sub1.anInt1381;
                i1 += j2 * k1;
                l += j2 * Class30_Sub2_Sub1.anInt1379;
            }
            if(j + j1 > Class30_Sub2_Sub1.anInt1382)
                j1 -= (j + j1) - Class30_Sub2_Sub1.anInt1382;
            if(i < Class30_Sub2_Sub1.anInt1383)
            {
                int k2 = Class30_Sub2_Sub1.anInt1383 - i;
                k1 -= k2;
                i = Class30_Sub2_Sub1.anInt1383;
                i1 += k2;
                l += k2;
                i2 += k2;
                l1 += k2;
            }
            if(i + k1 > Class30_Sub2_Sub1.anInt1384)
            {
                int l2 = (i + k1) - Class30_Sub2_Sub1.anInt1384;
                k1 -= l2;
                i2 += l2;
                l1 += l2;
            }
            if(k1 <= 0 || j1 <= 0)
            {
                return;
            } else
            {
                method347(l, k1, j1, i2, i1, 28339, l1, anIntArray1439, Class30_Sub2_Sub1.anIntArray1378);
                return;
            }
        }
    
        private void method347(int i, int j, int k, int l, int i1, int j1, int k1, 
                int ai[], int ai1[])
        {
            int l1 = -(j >> 2);
            j = -(j & 3);
            for(int i2 = -k; i2 < 0; i2++)
            {
                for(int j2 = l1; j2 < 0; j2++)
                {
                    ai1[i++] = ai[i1++];
                    ai1[i++] = ai[i1++];
                    ai1[i++] = ai[i1++];
                    ai1[i++] = ai[i1++];
                }
    
                for(int k2 = j; k2 < 0; k2++)
                    ai1[i++] = ai[i1++];
    
                i += k1;
                i1 += l;
            }
    
            if(j1 != 28339)
                anInt1431 = 90;
        }
    
        public void method348(int i, int j, int k)
        {
            i += anInt1442;
            k += anInt1443;
            if(j != 16083)
                return;
            int l = i + k * Class30_Sub2_Sub1.anInt1379;
            int i1 = 0;
            int j1 = anInt1441;
            int k1 = anInt1440;
            int l1 = Class30_Sub2_Sub1.anInt1379 - k1;
            int i2 = 0;
            if(k < Class30_Sub2_Sub1.anInt1381)
            {
                int j2 = Class30_Sub2_Sub1.anInt1381 - k;
                j1 -= j2;
                k = Class30_Sub2_Sub1.anInt1381;
                i1 += j2 * k1;
                l += j2 * Class30_Sub2_Sub1.anInt1379;
            }
            if(k + j1 > Class30_Sub2_Sub1.anInt1382)
                j1 -= (k + j1) - Class30_Sub2_Sub1.anInt1382;
            if(i < Class30_Sub2_Sub1.anInt1383)
            {
                int k2 = Class30_Sub2_Sub1.anInt1383 - i;
                k1 -= k2;
                i = Class30_Sub2_Sub1.anInt1383;
                i1 += k2;
                l += k2;
                i2 += k2;
                l1 += k2;
            }
            if(i + k1 > Class30_Sub2_Sub1.anInt1384)
            {
                int l2 = (i + k1) - Class30_Sub2_Sub1.anInt1384;
                k1 -= l2;
                i2 += l2;
                l1 += l2;
            }
            if(k1 <= 0 || j1 <= 0)
            {
                return;
            } else
            {
                method349(Class30_Sub2_Sub1.anIntArray1378, anIntArray1439, 0, i1, l, k1, j1, l1, i2);
                return;
            }
        }
    
         public void method349(int ai[], int ai1[], int i, int j, int k, int l, int i1, 
                int j1, int k1)
        {
            int l1 = -(l >> 2);
            l = -(l & 3);
            for(int i2 = -i1; i2 < 0; i2++)
            {
                for(int j2 = l1; j2 < 0; j2++)
                {
                    i = ai1[j++];
                    if(i == -0xfefeff)
                    {
                        ai[k] = -ai[k++];
                    } else
                    if(i != 0 && i != -1)
                    {
                        ai[k++] = i;
                    } else
                    {
                        k++;
                    }
                    i = ai1[j++];
                    if(i == -0xfefeff)
                    {
                        ai[k] = -ai[k++];
                    } else
                    if(i != 0 && i != -1)
                    {
                        ai[k++] = i;
                    } else
                    {
                        k++;
                    }
                    i = ai1[j++];
                    if(i == -0xfefeff)
                    {
                        ai[k] = -ai[k++];
                    } else
                    if(i != 0 && i != -1)
                    {
                        ai[k++] = i;
                    } else
                    {
                        k++;
                    }
                    i = ai1[j++];
                    if(i == -0xfefeff)
                    {
                        ai[k] = -ai[k++];
                    } else
                    if(i != 0 && i != -1)
                    {
                        ai[k++] = i;
                    } else
                    {
                        k++;
                    }
                }
    
                for(int k2 = l; k2 < 0; k2++)
                {
                    i = ai1[j++];
                    if(i == -0xfefeff)
                    {
                        ai[k] = -ai[k++];
                    } else
                    if(i != 0 && i != -1)
                    {
                        ai[k++] = i;
                    } else
                    {
                        k++;
                    }
                }
    
                k += j1;
                j += k1;
            }
    
        }
        public void method350(int i, int j, int k, boolean flag)
        {
            i += anInt1442;
            if(flag)
            {
                for(int l = 1; l > 0; l++);
            }
            j += anInt1443;
            int i1 = i + j * Class30_Sub2_Sub1.anInt1379;
            int j1 = 0;
            int k1 = anInt1441;
            int l1 = anInt1440;
            int i2 = Class30_Sub2_Sub1.anInt1379 - l1;
            int j2 = 0;
            if(j < Class30_Sub2_Sub1.anInt1381)
            {
                int k2 = Class30_Sub2_Sub1.anInt1381 - j;
                k1 -= k2;
                j = Class30_Sub2_Sub1.anInt1381;
                j1 += k2 * l1;
                i1 += k2 * Class30_Sub2_Sub1.anInt1379;
            }
            if(j + k1 > Class30_Sub2_Sub1.anInt1382)
                k1 -= (j + k1) - Class30_Sub2_Sub1.anInt1382;
            if(i < Class30_Sub2_Sub1.anInt1383)
            {
                int l2 = Class30_Sub2_Sub1.anInt1383 - i;
                l1 -= l2;
                i = Class30_Sub2_Sub1.anInt1383;
                j1 += l2;
                i1 += l2;
                j2 += l2;
                i2 += l2;
            }
            if(i + l1 > Class30_Sub2_Sub1.anInt1384)
            {
                int i3 = (i + l1) - Class30_Sub2_Sub1.anInt1384;
                l1 -= i3;
                j2 += i3;
                i2 += i3;
            }
            if(l1 <= 0 || k1 <= 0)
            {
                return;
            } else
            {
                method351(j1, l1, Class30_Sub2_Sub1.anIntArray1378, 0, anIntArray1439, j2, k1, i2, k, i1, 8);
                return;
            }
        }
    
        private void method351(int i, int j, int ai[], int k, int ai1[], int l, int i1, 
                int j1, int k1, int l1, int i2)
        {
            int j2 = 256 - k1;
            for(int k2 = -i1; k2 < 0; k2++)
            {
                for(int l2 = -j; l2 < 0; l2++)
                {
                    k = ai1[i++];
                    if(k != 0)
                    {
                        int i3 = ai[l1];
                        ai[l1++] = ((k & 0xff00ff) * k1 + (i3 & 0xff00ff) * j2 & 0xff00ff00) + ((k & 0xff00) * k1 + (i3 & 0xff00) * j2 & 0xff0000) >> 8;
                    } else
                    {
                        l1++;
                    }
                }
    
                l1 += j1;
                i += l;
            }
    
            if(i2 < 8 || i2 > 8)
                aBoolean1428 = !aBoolean1428;
        }
    
        public void method352(int i, int j, int ai[], int k, int ai1[], int l, int i1, 
                int j1, int k1, int l1, int i2)
        {
            while(l >= 0) 
                anInt1434 = 362;
            try
            {
                int j2 = -l1 / 2;
                int k2 = -i / 2;
                int l2 = (int)(Math.sin((double)j / 326.11000000000001D) * 65536D);
                int i3 = (int)(Math.cos((double)j / 326.11000000000001D) * 65536D);
                l2 = l2 * k >> 8;
                i3 = i3 * k >> 8;
                int j3 = (i2 << 16) + (k2 * l2 + j2 * i3);
                int k3 = (i1 << 16) + (k2 * i3 - j2 * l2);
                int l3 = k1 + j1 * Class30_Sub2_Sub1.anInt1379;
                for(j1 = 0; j1 < i; j1++)
                {
                    int i4 = ai1[j1];
                    int j4 = l3 + i4;
                    int k4 = j3 + i3 * i4;
                    int l4 = k3 - l2 * i4;
                    for(k1 = -ai[j1]; k1 < 0; k1++)
                    {
                        Class30_Sub2_Sub1.anIntArray1378[j4++] = anIntArray1439[(k4 >> 16) + (l4 >> 16) * anInt1440];
                        k4 += i3;
                        l4 -= l2;
                    }
    
                    j3 += l2;
                    k3 += i3;
                    l3 += Class30_Sub2_Sub1.anInt1379;
                }
    
                return;
            }
            catch(Exception exception)
            {
                return;
            }
        }
    
        public void method353(int i, int j, int k, int l, int i1, int j1, int k1, 
                double d, int l1)
        {
            if(i1 != 41960)
                return;
            try
            {
                int i2 = -k / 2;
                int j2 = -k1 / 2;
                int k2 = (int)(Math.sin(d) * 65536D);
                int l2 = (int)(Math.cos(d) * 65536D);
                k2 = k2 * j1 >> 8;
                l2 = l2 * j1 >> 8;
                int i3 = (l << 16) + (j2 * k2 + i2 * l2);
                int j3 = (j << 16) + (j2 * l2 - i2 * k2);
                int k3 = l1 + i * Class30_Sub2_Sub1.anInt1379;
                for(i = 0; i < k1; i++)
                {
                    int l3 = k3;
                    int i4 = i3;
                    int j4 = j3;
                    for(l1 = -k; l1 < 0; l1++)
                    {
                        int k4 = anIntArray1439[(i4 >> 16) + (j4 >> 16) * anInt1440];
                        if(k4 != 0)
                            Class30_Sub2_Sub1.anIntArray1378[l3++] = k4;
                        else
                            l3++;
                        i4 += l2;
                        j4 -= k2;
                    }
    
                    i3 += k2;
                    j3 += l2;
                    k3 += Class30_Sub2_Sub1.anInt1379;
                }
    
                return;
            }
            catch(Exception exception)
            {
                return;
            }
        }
    
        public void method354(Class30_Sub2_Sub1_Sub2 class30_sub2_sub1_sub2, boolean flag, int i, int j)
        {
            j += anInt1442;
            i += anInt1443;
            int k = j + i * Class30_Sub2_Sub1.anInt1379;
            int l = 0;
            if(flag)
                anInt1429 = -364;
            int i1 = anInt1441;
            int j1 = anInt1440;
            int k1 = Class30_Sub2_Sub1.anInt1379 - j1;
            int l1 = 0;
            if(i < Class30_Sub2_Sub1.anInt1381)
            {
                int i2 = Class30_Sub2_Sub1.anInt1381 - i;
                i1 -= i2;
                i = Class30_Sub2_Sub1.anInt1381;
                l += i2 * j1;
                k += i2 * Class30_Sub2_Sub1.anInt1379;
            }
            if(i + i1 > Class30_Sub2_Sub1.anInt1382)
                i1 -= (i + i1) - Class30_Sub2_Sub1.anInt1382;
            if(j < Class30_Sub2_Sub1.anInt1383)
            {
                int j2 = Class30_Sub2_Sub1.anInt1383 - j;
                j1 -= j2;
                j = Class30_Sub2_Sub1.anInt1383;
                l += j2;
                k += j2;
                l1 += j2;
                k1 += j2;
            }
            if(j + j1 > Class30_Sub2_Sub1.anInt1384)
            {
                int k2 = (j + j1) - Class30_Sub2_Sub1.anInt1384;
                j1 -= k2;
                l1 += k2;
                k1 += k2;
            }
            if(j1 <= 0 || i1 <= 0)
            {
                return;
            } else
            {
                method355(anIntArray1439, j1, class30_sub2_sub1_sub2.aByteArray1450, i1, Class30_Sub2_Sub1.anIntArray1378, 0, aBoolean1436, k1, k, l1, l);
                return;
            }
        }
    
        private void method355(int ai[], int i, byte abyte0[], int j, int ai1[], int k, boolean flag, 
                int l, int i1, int j1, int k1)
        {
            int l1 = -(i >> 2);
            if(!flag)
            {
                for(int i2 = 1; i2 > 0; i2++);
            }
            i = -(i & 3);
            for(int j2 = -j; j2 < 0; j2++)
            {
                for(int k2 = l1; k2 < 0; k2++)
                {
                    k = ai[k1++];
                    if(k != 0 && abyte0[i1] == 0)
                        ai1[i1++] = k;
                    else
                        i1++;
                    k = ai[k1++];
                    if(k != 0 && abyte0[i1] == 0)
                        ai1[i1++] = k;
                    else
                        i1++;
                    k = ai[k1++];
                    if(k != 0 && abyte0[i1] == 0)
                        ai1[i1++] = k;
                    else
                        i1++;
                    k = ai[k1++];
                    if(k != 0 && abyte0[i1] == 0)
                        ai1[i1++] = k;
                    else
                        i1++;
                }
    
                for(int l2 = i; l2 < 0; l2++)
                {
                    k = ai[k1++];
                    if(k != 0 && abyte0[i1] == 0)
                        ai1[i1++] = k;
                    else
                        i1++;
                }
    
                i1 += l;
                k1 += j1;
            }
    
        }
    }
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •