Just made this like 5mins ago,
in client.java add
Code:
static boolean EntertoChat = true;
in drawChatBox() (Remove or edit resizable stuff if need be)
Code:
if(EntertoChat){
newRegularFont.drawBasicString(frameMode == ScreenMode.RESIZABLE && transChat? "<shad=3><col=ffffff>" + s + ":</col></shad>" + "<col=4f4c4c><shad=3> [Press Enter to Chat]</shad></col>" : s + ":" + "<col=6b6868> [Press Enter to Chat]</col>",11+xOffset,133 + yOffset,0,-1);
newRegularFont.drawBasicString(inputString , 12 + textDrawingArea.getTextWidth(s + ": "),133+ yOffset,frameMode == ScreenMode.RESIZABLE && transChat? 0x7FA9FF : 255,-1);
} else {
newRegularFont.drawBasicString(s + ":" , 11+xOffset, 133 + yOffset,frameMode == ScreenMode.RESIZABLE && transChat? 0xffffff : 0,-1);
newRegularFont.drawBasicString(inputString+ ((loopCycle % 40 < 20) ? "<col=114AA0>|</col>" : ""), 12 +xOffset+ textDrawingArea.getTextWidth(s + ": "),133+ yOffset,frameMode == ScreenMode.RESIZABLE && transChat? 0x7FA9FF : 255,-1);
}
In method73() find
Code:
j >= 32 && j <= 122 && inputString.length() < 80
and replace/edit with
Code:
if(j >= 32 && j <= 122 && inputString.length() < 80 && EntertoChat != true)
{
inputString += (char)j;
inputTaken = true;
}
if(j == 8 && inputString.length() > 0 && EntertoChat != true)
{
inputString = inputString.substring(0, inputString.length() - 1);
inputTaken = true;
}
at the bottom of method73() just before/after
add
Code:
EntertoChat = true;
Now go into rsapplet and find void keyPressed( and add in there
Code:
if(i == KeyEvent.VK_ENTER && client.loggedIn && client.openInterfaceID == -1){
if(client.hideChat)
return;
client.EntertoChat = !client.EntertoChat;
}