Thread: Perfecting the login box

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 Perfecting the login box 
    Registered Member danjoshmac's Avatar
    Join Date
    Oct 2009
    Posts
    74
    Thanks given
    1
    Thanks received
    0
    Rep Power
    1
    hey, so I've been looking around for tutorials on how to remove your ip from the login box and when i did remove it I could click enter from the password line and it would go into my ip line, and this means people can mess about with the ip and not be able to play, so this is my fix to it, and when you click enter at the password line it goes back up to the username line
    (if you didnt follow what i was sayin then, im sorry lol)

    Purpose: To perfect your login box
    Difficulty: 0.1/10

    Okay so go into your client files and open client.java, search for
    Code:
    public final void method140(boolean flag)
    Replace that whole method with this one:
    Code:
        public final void method140(boolean flag)
        {
            if(!flag)
                aClass19ArrayArrayArray827 = null;
            if(anInt833 == 0){
                int i = super.anInt10 / 2 - 80;
                int l = super.anInt11 / 2 + 20;
                l += 20;
                //if(super.anInt26 == 1 && super.anInt27 >= i - 75 && super.anInt27 <= i + 75 && super.anInt28 >= l - 20 &&
                   //super.anInt28 <= l + 20){
                   // anInt833 = 3;
                    //anInt1216 = 0;
               // }
                i = super.anInt10 / 2 + 80;
                if(super.anInt26 == 1 && super.anInt27 >= 180 - 75 && super.anInt27 <= i + 75 && super.anInt28 >= l - 20 &&
                   super.anInt28 <= l + 20){
                    aString1266 = "";
                    aString1267 = "Enter your username & password.";
                    anInt833 = 2;
                    anInt1216 = 0;
                    return;
                }
            }
            else{
                if(anInt833 == 2)
                {
                    int j = super.anInt11 / 2 - 40;
                    j += 30;
                    j += 25;
                    if(super.anInt26 == 1 && super.anInt28 >= j - 15 && super.anInt28 < j)
                        anInt1216 = 0;
                    j += 15;
                    if(super.anInt26 == 1 && super.anInt28 >= j - 15 && super.anInt28 < j)
                        anInt1216 = 1;
                    j += 15;
                    int i1 = super.anInt10 / 2 - 80;
                    int k1 = super.anInt11 / 2 + 50;
                    k1 += 20;
                    if(super.anInt26 == 1 && super.anInt27 >= i1 - 75 && super.anInt27 <= i1 + 75 && super.anInt28 >= k1 - 20 && super.anInt28 <= k1 + 20)
                    {
                        anInt1038 = 0;
                        method84(aString1173, aString1174, false);
                        if(aBoolean1157)
                            return;
                    }
                    i1 = super.anInt10 / 2 + 80;
                    if(super.anInt26 == 1 && super.anInt27 >= i1 - 75 && super.anInt27 <= i1 + 75 && super.anInt28 >= k1 - 20 && super.anInt28 <= k1 + 20)
                    {
                        anInt833 = 0;
                    }
                    do
                    {
                        int l1 = method5(-796);
                        if(l1 == -1)
                            break;
                        boolean flag1 = false;
                        for(int i2 = 0; i2 < aString1162.length(); i2++)
                        {
                            if(l1 != aString1162.charAt(i2))
                                continue;
                            flag1 = true;
                            break;
                        }
    
                        if(anInt1216 == 0)
                        {
                            if(l1 == 8 && aString1173.length() > 0)
                                aString1173 = aString1173.substring(0, aString1173.length() - 1);
                            if(l1 == 9 || l1 == 10 || l1 == 13)
                                anInt1216 = 1;
                            if(flag1)
                                aString1173 += (char)l1;
                            if(aString1173.length() > 12)
                                aString1173 = aString1173.substring(0, 12);
                        } else
                        if(anInt1216 == 1)
                        {
                            if(l1 == 8 && aString1174.length() > 0)
                                aString1174 = aString1174.substring(0, aString1174.length() - 1);
                            if(l1 == 9 || l1 == 10 || l1 == 13)
                                anInt1216 = 0;
                            if(flag1)
                                aString1174 += (char)l1;
                            if(aString1174.length() > 20)
                                aString1174 = aString1174.substring(0, 20);
                        } else
                        if(anInt1216 == 2)
                        {
                            if(l1 == 8 && server.length() > 0)
                                server = server.substring(0, server.length() - 1);
                            if(l1 == 9 || l1 == 10 || l1 == 13)
                                anInt1216 = 3;
                            if(flag1)
                                server += (char)l1;
                      //      if(aString1173.length() > 12)
                      //          server = server.substring(0, 12);
                        } else
                        if(anInt1216 == 3)
                        {
                            if(l1 == 8 && port.length() > 0) {
    		port = port.substring(0, port.length() - 1); 
    	     }
                            if(l1 == 9 || l1 == 10 || l1 == 13)
                                anInt1216 = 0;
                            if(flag1)
                                port += (char)l1;
                      //      if(aString1173.length() > 12)
                      //          server = server.substring(0, 12);
    	}
                    } while(true);
                    return;
                }
                if(anInt833 == 3)
                {
                    int k = super.anInt10 / 2;
                    int j1 = super.anInt11 / 2 + 50;
                    j1 += 20;
                    if(super.anInt26 == 1 && super.anInt27 >= k - 75 && super.anInt27 <= k + 75 && super.anInt28 >= j1 - 20 && super.anInt28 <= j1 + 20)
                        anInt833 = 0;
                }
            }
        }
    And thats it, save,compile, your done! I give full credits to Galkon's non-refactored client for the method.
    Hope I helped you all

    Credits:

    99.9% Galkon
    0.1% Me for posting
    Reply With Quote  
     

  2. #2  
    Registered Member 2pro's Avatar
    Join Date
    Aug 2009
    Posts
    774
    Thanks given
    15
    Thanks received
    15
    Rep Power
    66
    nice one.
    Quote Originally Posted by Gator God View Post
    The use of small code like this is what makes a server great.
    Quote Originally Posted by Shoes View Post
    First of all, that's my code. Second of all it is more efficient in many ways, they may not be big but it's the little things that count.
    Quote Originally Posted by Luke132 View Post
    A thread's age doesn't mean anything if the information in the topic is still relevant.
    Why is gravedigging disallowed then?
    Reply With Quote  
     

  3. #3  
    Client Developer

    Pb600's Avatar
    Join Date
    Dec 2008
    Posts
    2,184
    Thanks given
    306
    Thanks received
    489
    Rep Power
    925
    He made a nonrefactored client? didn't knew
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Registered Member
    zedex ranger's Avatar
    Join Date
    Mar 2008
    Age
    27
    Posts
    2,565
    Thanks given
    1
    Thanks received
    9
    Rep Power
    325
    Quote Originally Posted by Pb600 View Post
    He made a nonrefactored client? didn't knew
    like one or two years ago..
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    Client Developer

    Pb600's Avatar
    Join Date
    Dec 2008
    Posts
    2,184
    Thanks given
    306
    Thanks received
    489
    Rep Power
    925
    oh lol k ty
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #6  
    Hi.

    'Mystic Flow's Avatar
    Join Date
    Nov 2007
    Posts
    7,141
    Thanks given
    256
    Thanks received
    1,247
    Rep Power
    3636
    Nice job !

    [Only registered and activated users can see links. ]

    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Nov 2009
    Posts
    4,222
    Thanks given
    2,950
    Thanks received
    1,362
    Rep Power
    0
    Give us a picture before even giving us the tut.
    Reply With Quote  
     

  8. #8  
    Respected Member


    Josh's Avatar
    Join Date
    Aug 2008
    Age
    27
    Posts
    2,863
    Thanks given
    6
    Thanks received
    1,342
    Rep Power
    5000
    Quote Originally Posted by ShadowBarrage View Post
    Give us a picture before even giving us the tut.
    It's a login box saying username + password, why would you need a picture for that?
    Reply With Quote  
     

  9. #9  
    🍕

    Linus's Avatar
    Join Date
    Dec 2008
    Age
    28
    Posts
    2,778
    Thanks given
    970
    Thanks received
    410
    Rep Power
    0
    .
    Reply With Quote  
     

  10. #10  
    Banned

    Join Date
    Dec 2008
    Posts
    13
    Thanks given
    162
    Thanks received
    62
    Rep Power
    0
    thought this was common sense

    good job though
    Reply With Quote  
     

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
  •