|
|
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:
Edit: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++; } }
looks like this atm:
but still doesn't workif(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++;
}
}

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:
In my client it looks like: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++; } }
I tried almost anything, renamed etc but didn'T figure out what to change lolCode:} 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++; } }![]()
client.java part
textDrawingArea.java (dunno if it's the right method as i'm too dumb with clients)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++; } }
please someone, take care :/Code:public void drawBasicString(String string, int drawX, int drawY, int color, int shadow) { if (string != null) { setColorAndShadow(color, shadow); drawBasicString(string, drawX, drawY); } }
| « Need help please!!! | Loginbox & buttons » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |