Thread: How to recolor "private messages"

Results 1 to 3 of 3
  1. #1 How to recolor "private messages" 
    Registered Member danman88's Avatar
    Join Date
    May 2008
    Posts
    60
    Thanks given
    0
    Thanks received
    0
    Rep Power
    4
    I know a lot of people may know how to do this, but its for the people that can't figure it out.

    Non-split pms, Pms from a person:
    1. Open client.java
    2. Search for;
    Code:
    aClass30_Sub2_Sub1_Sub2Array1219[1].method361(k1, 16083, i1 - 12);
    3. Now below that, you should see something like this;
    Code:
    class30_sub2_sub1_sub4.method385(0, s1 + ":", i1, 822, k1);
                                k1 += class30_sub2_sub1_sub4.method383(anInt1116, s1) + 8;
                                class30_sub2_sub1_sub4.method385(0xffffff, aStringArray944[k], i1, 822, k1);
                            }
    4. To change the color of there name.
    Change;
    Code:
    0,
    In
    Code:
    class30_sub2_sub1_sub4.method385(0, s1 + ":", i1, 822, k1);
    To a different number/ letter combo.
    (Color list can be found in "Class30_Sub2_Sub1_Sub4.java", or at the bottom of this tut.)

    5. To change the color of their message.
    Change;
    Code:
    0xffffff,
    In
    Code:
    class30_sub2_sub1_sub4.method385(0xffffff, aStringArray944[k], i1, 822, k1);
    To again a different number/ letter combo

    Non-split pms, Pms to a person:
    1. Search for
    Code:
    if(l == 6 && anInt1195 == 0 && anInt845 < 2)
    You should see something like this;
    Code:
    if(l == 6 && anInt1195 == 0 && anInt845 < 2) {
                            if(i1 > 0 && i1 < 110) {
                                class30_sub2_sub1_sub4.method385(255, "To " + s1 + ":", i1, 822, 4);
                                class30_sub2_sub1_sub4.method385(0xffffff, aStringArray944[k], i1, 822, 12 + class30_sub2_sub1_sub4.method383(anInt1116, "To " + s1));
                            }
    2. This one is easier to figure out because it has "To" so, that means "255" refers to your name color.
    3. Then "0xffffff" (which is white) Is for your message.

    Done with non-split.

    Split Pms, pms from someone;

    1. Search for the first!
    Code:
    int l = 329 - i * 13;
    Then you should see something like this;
    Code:
    int l = 329 - i * 13;
                        int k1 = 4;
                        class30_sub2_sub1_sub4.method385(255, "From", l, 822, k1);
                        class30_sub2_sub1_sub4.method385(0xffffff, "From", l - 1, 822, k1);
                        k1 += class30_sub2_sub1_sub4.method383(anInt1116, "From ");
                        if(byte1 == 1)
    2.
    Code:
    class30_sub2_sub1_sub4.method385(255, "From", l, 822, k1);
    Is an outline color of the name and message.
    3.
    Code:
    class30_sub2_sub1_sub4.method385(0xffffff, "From", l - 1, 822, k1);
    Is the main color of the pm you got.

    Scroll down a couple of lines until you see something like this;
    [CODE]class30_sub2_sub1_sub4.method385(255, s + ": " + aStringArray944[j], l, 822, k1);
    Code:
    class30_sub2_sub1_sub4.method385(0xffffff, s + ": " + aStringArray944[j], l - 1, 822, k1);
    4. The same thing applies from step 2 and 3.

    Code:
    class30_sub2_sub1_sub4.method385(255, s + ": " + aStringArray944[j], l, 822, k1);
    For outline color of name and message.

    5.
    Code:
    class30_sub2_sub1_sub4.method385(0xffffff, s + ": " + aStringArray944[j], l - 1,
    For the main color of the name and message.

    Now to change the color for sending messages.

    1. Scroll down from last step (step 5)
    2. Under you see something like this;
    Code:
    if(k == 6 && anInt845 < 2)
                    {
                        int j1 = 329 - i * 13;
                        class30_sub2_sub1_sub4.method385(255, "To " + s + ": " + aStringArray944[j], j1, 822, 4);
                        class30_sub2_sub1_sub4.method385(0xffffff, "To " + s + ": " + aStringArray944[j], j1 - 1, 822, 4);
                        if(++i >= 5)
    3.
    Code:
    class30_sub2_sub1_sub4.method385(255, "To " + s + ": " + aStringArray944[j], j1, 822, 4);
    Is the outline color of name and message.

    4.
    Code:
    class30_sub2_sub1_sub4.method385(0xffffff, "To " + s + ": " + aStringArray944[j], j1 - 1, 822, 4);
    Is the main color of your name and message.

    Done, save and compile.

    Color list straight from "Class30_Sub2_Sub1_Sub4.java"

    Code:
     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 65535;
            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("xxx"))
                return 0x33ccff;
    Code:
     if(s.equals("xxx"))
    Is the name of the color.
    Code:
    0x33ccff
    Is the number/ letter combo i was talking about.


    I hope this helps someone.
    War never solved anything, except slavery, oppression, communism, and nazism...now for terrorism.
    You are never forgotten.
    Reply With Quote  
     

  2. #2  
    i tank
    Guest
    Nice first tutorial Danny!
    ~Mod Tank
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2007
    Age
    31
    Posts
    133
    Thanks given
    0
    Thanks received
    2
    Rep Power
    45
    Good job and gratz on first tutorial dan
    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

Tags for this Thread

View Tag Cloud

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