Thread: Enable @[email protected]

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. Registered Member 2pro's Avatar
    Join Date
    Aug 2009
    Posts
    774
    Thanks given
    15
    Thanks received
    15
    Rep Power
    66
    How do i make @[email protected] for example work server sided?
    I want it to work for sendMessage("@[email protected] whatever here ");
    I know it is a client sided edit but i don't know what.

    Flame will be reported. (yes. I'm a noob but i don't give a fuck)

    This is what it looks like atm:

    Code:
    					/* Draws Chat Colored Messages */
    					if(chatType == 0) {
    						if (chatTypeView == 5 || chatTypeView == 0) {
    						if(yPos > 0 && yPos < 210)
    							newRegularFont.drawBasicString(chatMessages[k], 11, yPos, 0, -1);
    						j++;
    						j77++;
    						}
    					}
    Edit:

    looks like this atm:
    if(chatType == 0) {
    if (chatTypeView == 5 || chatTypeView == 0) {
    if(yPos > 0 && yPos < 210)
    textDrawingArea.method389(false, 11, 0, chatMessages[k], yPos);//chat color enabled
    j++;
    j77++;
    }
    }
    but still doesn't work
    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  
     

  2. #2  
    Registered Member 2pro's Avatar
    Join Date
    Aug 2009
    Posts
    774
    Thanks given
    15
    Thanks received
    15
    Rep Power
    66
    Quote Originally Posted by Vegeta View Post
    lol?
    meh, he released the emote stuff which noone was willing to release lol. outdated now tho
    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  
    Registered Member 2pro's Avatar
    Join Date
    Aug 2009
    Posts
    774
    Thanks given
    15
    Thanks received
    15
    Rep Power
    66
    Quote Originally Posted by badger41 View Post
    theres a simple tutorial somewhere for that, it requires a small modification of a method client sided, search for it in tutorial section or snippets. (client section)
    I know, i already added it to another client but i forgot how. Forgot the name of the thread aswell and the name of the file where i added it on my pc.
    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  
     

  4. #4  
    Banned

    Join Date
    Jul 2008
    Posts
    3,532
    Thanks given
    188
    Thanks received
    696
    Rep Power
    0
    Quote Originally Posted by 2pro View Post
    I know, i already added it to another client but i forgot how. Forgot the name of the thread aswell and the name of the file where i added it on my pc.
    the search button is your friend...

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    Registered Member 2pro's Avatar
    Join Date
    Aug 2009
    Posts
    774
    Thanks given
    15
    Thanks received
    15
    Rep Power
    66
    Quote Originally Posted by badger41 View Post
    the search button is your friend...

    [Only registered and activated users can see links. ]
    Why can't i find this by "search this forum" for "enable"? ... I searched through snippets and tutorials..

    thank you anyways
    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  
     

  6. #6  
    Registered Member 2pro's Avatar
    Join Date
    Aug 2009
    Posts
    774
    Thanks given
    15
    Thanks received
    15
    Rep Power
    66
    Well i did what the tut told me to do but it didn't work.
    Then i looked into an older client and searched for chat color and found this:
    Code:
    				if(s1 != null && s1.startsWith("@[email protected]")) {
    					s1 = s1.substring(5);
    					byte0 = 3;
    				}
    				if(l == 0) {
    					if (chatTypeView == 5 || chatTypeView == 0) {
    					if(i1 > 0 && i1 < 210)
    						textDrawingArea.method389(false, 9, 0, chatMessages[k], i1 - 1);//chat color enabled
    					j++;
    					j77++;
    					}
    				}
    In my client it looks like:

    Code:
    					} else if(s1 != null && s1.startsWith("@[email protected]")) {
    						s1 = s1.substring(5);
    						byte0 = 4;
    					}
    					/* Draws Chat Colored Messages */
    					if(chatType == 0) {
    						if (chatTypeView == 5 || chatTypeView == 0) {
    						if(yPos > 0 && yPos < 110)
    							newRegularFont.drawBasicString(chatMessages[k], 19, yPos, 0, -1); 
    						j++;
    						j77++;
    						}
    					}
    I tried almost anything, renamed etc but didn'T figure out what to change lol
    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  
     

  7. #7  
    Reverse engineering enthousiast
    peterbjornx's Avatar
    Join Date
    Feb 2008
    Age
    26
    Posts
    1,910
    Thanks given
    88
    Thanks received
    538
    Rep Power
    1307
    u must change the method thats called, find out what drawtext version does colours and use that
    [Only registered and activated users can see links. ]
    EX SERVER DEV

    Reply With Quote  
     

  8. #8  
    Registered Member 2pro's Avatar
    Join Date
    Aug 2009
    Posts
    774
    Thanks given
    15
    Thanks received
    15
    Rep Power
    66
    client.java part
    Code:
    					/* Draws Chat Colored Messages */
    					if(chatType == 0) {
    						if (chatTypeView == 5 || chatTypeView == 0) {
    						if(yPos > 0 && yPos < 110)
    							newRegularFont.drawBasicString(chatMessages[k], 19, yPos, 0, -1); 
    						j++;
    						j77++;
    						}
    					}
    textDrawingArea.java (dunno if it's the right method as i'm too dumb with clients)

    Code:
        public void drawBasicString(String string, int drawX, int drawY, int color,
                int shadow) {
            if (string != null) {
                setColorAndShadow(color, shadow);
                drawBasicString(string, drawX, drawY);
            }
        }
    please someone, take care :/
    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  
     

  9. #9  
    Registered Member 2pro's Avatar
    Join Date
    Aug 2009
    Posts
    774
    Thanks given
    15
    Thanks received
    15
    Rep Power
    66
    bump
    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  
     

  10. #10  
    Registered Member 2pro's Avatar
    Join Date
    Aug 2009
    Posts
    774
    Thanks given
    15
    Thanks received
    15
    Rep Power
    66
    bump!
    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  
     

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
  •