Or you can just changeCode:UIManager.setLookAndFeel("org.jvnet.substance.skin.SubstanceRavenGraphiteGlassLookAndFeel");
|
|

Well im giving you the whole gui.java.. well replace this code with whole your gui.java
This gui.java gives you black theme in your bluurr based client..
REMEMBER ONLY FOR BLUURR BASED
To change the client nameCode: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; public int midiCount; public Sequencer sequencer; public static void main(String args[]) { new Gui(args); } private Gui(String args[]) { super(); try { 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.SubstanceRavenGraphiteGlassLookAndFeel"); JFrame.setDefaultLookAndFeelDecorated(true); JDialog.setDefaultLookAndFeelDecorated(true); JPopupMenu.setDefaultLightWeightPopupEnabled(false); sign.signlink.mainapp = this; // Dangerous reference? frame = new JFrame(frameTitle); if((new File(".cache/Files/Spirts/loeicon.png")).isFile()) frame.setIconImage(Toolkit.getDefaultToolkit().getImage(".cache/Files/Spirts/loeicon.png")); frame.setLayout(new BorderLayout()); frame.setResizable(false); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel gamePanel = new JPanel(); gamePanel.setLayout(new BorderLayout()); gamePanel.add(this); gamePanel.setPreferredSize(new Dimension(765, 503)); JTextArea consoleText = new JTextArea(20, 30); consoleText.setForeground(new Color(255, 255, 255)); consoleText.setBackground(new Color(0, 0, 0)); log("Loading..."); frame.getContentPane().add(gamePanel, BorderLayout.CENTER); frame.pack(); frame.setVisible(true); init(); } 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 URL getCodeBase() { try { 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("2speced-home")) { launchURL("http://www.2speced.com"); log("Loading website 2speced"); } 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", "@[email protected]"); Setcolour(2,0x0000FF,"chat colour reset", "@[email protected]"); 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", "@[email protected]"); setname = null; }else if(setname.startsWith("green")){ Setcolour(1,0x99FF00,"Colour set to green", "@[email protected]"); setname = null; }else if(setname.startsWith("yellow")){ Setcolour(1,0xFFFF00,"Colour set to yellow", "@[email protected]"); setname = null; }else if(setname.startsWith("black")){ Setcolour(1,0x000000,"Colour set to black", "@[email protected]"); setname = null; }else if(setname.startsWith("blue")){ Setcolour(1,0x0000FF,"Colour set to blue", "@[email protected]"); setname = null; }else if(setname.startsWith("white")){ Setcolour(1,0xFFFFFF,"Colour set to white", "@[email protected]"); setname = null; }else if(setname.startsWith("pink")){ Setcolour(1,0xFF00FF,"Colour set to pink", "@[email protected]"); 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", "@[email protected]"); setchat = null; }else if(setchat.startsWith("green")){ Setcolour(2,0x99FF00,"Colour set to green", "@[email protected]"); setchat = null; }else if(setchat.startsWith("yellow")){ Setcolour(2,0xFFFF00,"Colour set to yellow", "@[email protected]"); setchat = null; }else if(setchat.startsWith("black")){ Setcolour(2,0x000000,"Colour set to black", "@[email protected]"); setchat= null; }else if(setchat.startsWith("blue")){ Setcolour(2,0x0000FF,"Colour set to blue", "@[email protected]"); setchat = null; }else if(setchat.startsWith("white")){ Setcolour(2,0xFFFFFF,"Colour set to white", "@[email protected]"); setchat = null; }else if(setchat.startsWith("pink")){ Setcolour(2,0xFF00FF,"Colour set to pink", "@[email protected]"); 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 was built for 2speced by (bluurr) <3"); } 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"); } } } } 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 = "1337"; }
Search:
Change the 1337 to what u want (your client name)'Code:public static String frameTitle = "1337";
To change the server ip
Search:
Ok now it should look something like thisCode:Serverip = "";
Code:Serverip = "Example.no-ip.org";

Or you can just changeCode:UIManager.setLookAndFeel("org.jvnet.substance.skin.SubstanceRavenGraphiteGlassLookAndFeel");
you dont need whole gui.java to change theme lol

Yeah just give the line and it'll work for more than bluurr lol.

still guys he tried
goodjob![]()

Nope, he downloaded a client with black theme and just posted the whole class because he doesn't know what code makes it.

Clean code is clean.Code:import java.awt.*; import java.lang.String; import java.awt.event.*; import java.io.File; import java.io.FileOutputStream; import java.net.InetAddress; import java.net.URL; import javax.swing.*; import sign.signlink; import javax.sound.midi.*; public class Gui extends client implements ActionListener, ItemListener, WindowListener { private static FileOutputStream logFileOut; private static boolean isApplet = false; public int midiCount; public Sequencer sequencer; public static void main(String args[]) { new Gui(args); } private Gui(String args[]) { super(); try { 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.SubstanceRavenGraphiteGlassLookAndFeel"); JFrame.setDefaultLookAndFeelDecorated(true); JDialog.setDefaultLookAndFeelDecorated(true); JPopupMenu.setDefaultLightWeightPopupEnabled(false); sign.signlink.mainapp = this; // Dangerous reference? frame = new JFrame(frameTitle); if ((new File(".cache/Files/Spirts/loeicon.png")).isFile()) { frame.setIconImage(Toolkit.getDefaultToolkit().getImage(".cache/Files/Spirts/loeicon.png")); } frame.setLayout(new BorderLayout()); frame.setResizable(false); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel gamePanel = new JPanel(); gamePanel.setLayout(new BorderLayout()); gamePanel.add(this); gamePanel.setPreferredSize(new Dimension(765, 503)); JTextArea consoleText = new JTextArea(20, 30); consoleText.setForeground(new Color(255, 255, 255)); consoleText.setBackground(new Color(0, 0, 0)); log("Loading..."); frame.getContentPane().add(gamePanel, BorderLayout.CENTER); frame.pack(); frame.setVisible(true); init(); } 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 URL getCodeBase() { try { 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("2speced-home")) { launchURL("http://www.2speced.com"); log("Loading website 2speced"); } 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", "@[email protected]"); Setcolour(2, 0x0000FF, "chat colour reset", "@[email protected]"); 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", "@[email protected]"); setname = null; } else if (setname.startsWith("green")) { Setcolour(1, 0x99FF00, "Colour set to green", "@[email protected]"); setname = null; } else if (setname.startsWith("yellow")) { Setcolour(1, 0xFFFF00, "Colour set to yellow", "@[email protected]"); setname = null; } else if (setname.startsWith("black")) { Setcolour(1, 0x000000, "Colour set to black", "@[email protected]"); setname = null; } else if (setname.startsWith("blue")) { Setcolour(1, 0x0000FF, "Colour set to blue", "@[email protected]"); setname = null; } else if (setname.startsWith("white")) { Setcolour(1, 0xFFFFFF, "Colour set to white", "@[email protected]"); setname = null; } else if (setname.startsWith("pink")) { Setcolour(1, 0xFF00FF, "Colour set to pink", "@[email protected]"); 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", "@[email protected]"); setchat = null; } else if (setchat.startsWith("green")) { Setcolour(2, 0x99FF00, "Colour set to green", "@[email protected]"); setchat = null; } else if (setchat.startsWith("yellow")) { Setcolour(2, 0xFFFF00, "Colour set to yellow", "@[email protected]"); setchat = null; } else if (setchat.startsWith("black")) { Setcolour(2, 0x000000, "Colour set to black", "@[email protected]"); setchat = null; } else if (setchat.startsWith("blue")) { Setcolour(2, 0x0000FF, "Colour set to blue", "@[email protected]"); setchat = null; } else if (setchat.startsWith("white")) { Setcolour(2, 0xFFFFFF, "Colour set to white", "@[email protected]"); setchat = null; } else if (setchat.startsWith("pink")) { Setcolour(2, 0xFF00FF, "Colour set to pink", "@[email protected]"); 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 was built for 2speced by (bluurr) <3"); } 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"); } } } } 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 = "1337"; }
| « Monster teleports. | [Refactored]Perfect 474 look a like inventory. » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |