Well this is a very simple tutorial created by me. I was just looking through my code and I was like wth is this lol so I changed everything from 0, 0, 0 to 1, 2, 3 and it made the Public chat go Friends, It turned the private chat off & it made the Trade/Request button disapear(because it was not reconized).
So to do this its very simple. Most source will probably allready have it added but you probably havn't noticed lol.
So do change the Public Chat, Private Chat, Trading.
Search for:
Code:
setChatOptions(0, 0, 0);
If you don't have it add it into your where your sendMessage("Welcome to xxx"); is.
Right time to show you how to change these.
Code:
setChatOptions(0, 0, 0);
public void setChatOptions(int publicChat, int privateChat, int tradeBlock)
{
outStream.createFrame(206);
outStream.writeByte(publicChat);
outStream.writeByte(privateChat);
outStream.writeByte(tradeBlock);
}
The zeros are the id of the setting which is very simple. So this is how its done.
Code:
0: is Public
1: is Friends
2: is Off
3: is Hide (only for Public Chat)
Yeh its very simple I just though I would share. You could probably edit this and make it so it saves etc.
Hope you enjoyed.