Thread: Client problem...

Results 1 to 3 of 3
  1. #1 Client problem... 
    Registered Member Vobex's Avatar
    Join Date
    Mar 2013
    Age
    33
    Posts
    162
    Thanks given
    9
    Thanks received
    5
    Rep Power
    8
    I want to add the ::title command through this tutorial: http://www.rune-server.org/runescape...-changing.html

    But it says to search for this:

    Search private int getColorByName(String s) { and under it add:

    In RSFont.java

    Sadly I don't have private int getColorByName(String s) { can someone please help?
    Reply With Quote  
     

  2. #2  
    Registered Member


    Join Date
    Jul 2007
    Posts
    4,129
    Thanks given
    788
    Thanks received
    2,716
    Rep Power
    5000
    This is not the appropriate section to post about client problems, post client problems here:

    Help

    As for your problem, your RSFont.java probably uses another method, find something that looks like this:

    Spoiler for code:
    Code:
    private int getColorByName(String s) {
                    if(s.equals("369"))//color code, use as @###@
                            return 0x3b9af9;//hex code
                    if(s.equals("mon"))
                            return 0x00ff80;
                    if(s.equals("red"))
                            return 0xff0000;
                    if(s.equals("gre"))
                            return 65280;
                    if(s.equals("blu"))
                            return 255;
                    if(s.equals("yel"))
                            return 0xffff00;
                    if(s.equals("cya"))
                            return 0x05f121;
                    if(s.equals("mag"))
                            return 0xff00ff;
                    if(s.equals("whi"))
                            return 0xffffff;
                    if(s.equals("bla"))
                            return 0;
                    if(s.equals("lre"))
                            return 0xff9040;
                    if(s.equals("dre"))
                            return 0x800000;
                    if(s.equals("dbl"))
                            return 128;
                    if(s.equals("or1"))
                            return 0xffb000;
                    if(s.equals("or2"))
                            return 0xff7000;
                    if(s.equals("or3"))
                            return 0xff3000;
                    if(s.equals("gr1"))
                            return 0xc0ff00;
                    if(s.equals("gr2"))
                            return 0x80ff00;
                    if(s.equals("gr3"))
                            return 0x40ff00;
                    if(s.equals("str"))
                            aBoolean1499 = true;
                    if(s.equals("end"))
                            aBoolean1499 = false;
                    return -1;
            }


    and add your code under the last return -1;
    Reply With Quote  
     

  3. #3  
    Registered Member Vobex's Avatar
    Join Date
    Mar 2013
    Age
    33
    Posts
    162
    Thanks given
    9
    Thanks received
    5
    Rep Power
    8
    Quote Originally Posted by Arvid View Post
    This is not the appropriate section to post about client problems, post client problems here:

    Help

    As for your problem, your RSFont.java probably uses another method, find something that looks like this:

    Spoiler for code:
    Code:
    private int getColorByName(String s) {
                    if(s.equals("369"))//color code, use as @###@
                            return 0x3b9af9;//hex code
                    if(s.equals("mon"))
                            return 0x00ff80;
                    if(s.equals("red"))
                            return 0xff0000;
                    if(s.equals("gre"))
                            return 65280;
                    if(s.equals("blu"))
                            return 255;
                    if(s.equals("yel"))
                            return 0xffff00;
                    if(s.equals("cya"))
                            return 0x05f121;
                    if(s.equals("mag"))
                            return 0xff00ff;
                    if(s.equals("whi"))
                            return 0xffffff;
                    if(s.equals("bla"))
                            return 0;
                    if(s.equals("lre"))
                            return 0xff9040;
                    if(s.equals("dre"))
                            return 0x800000;
                    if(s.equals("dbl"))
                            return 128;
                    if(s.equals("or1"))
                            return 0xffb000;
                    if(s.equals("or2"))
                            return 0xff7000;
                    if(s.equals("or3"))
                            return 0xff3000;
                    if(s.equals("gr1"))
                            return 0xc0ff00;
                    if(s.equals("gr2"))
                            return 0x80ff00;
                    if(s.equals("gr3"))
                            return 0x40ff00;
                    if(s.equals("str"))
                            aBoolean1499 = true;
                    if(s.equals("end"))
                            aBoolean1499 = false;
                    return -1;
            }


    and add your code under the last return -1;
    Oh wow, thanks. Didn't think anyone would have helped me on this one.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Client Problems
    By January 1st in forum Help
    Replies: 2
    Last Post: 10-14-2008, 03:34 AM
  2. deltascape client problems.
    By Robin Spud in forum Requests
    Replies: 1
    Last Post: 10-12-2008, 04:04 PM
  3. webbers client problem??
    By Toonscape in forum Tutorials
    Replies: 4
    Last Post: 05-16-2008, 10:01 PM
  4. Client Problems.
    By Krazy in forum RS2 Client
    Replies: 3
    Last Post: 11-03-2007, 02:39 AM
  5. Client problem
    By Webbsta in forum RS2 Client
    Replies: 2
    Last Post: 08-20-2007, 02:26 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •