I'm not sure if it'll work , but it should
Define this in RSPlayer
Code:
public int muted = 0;
Find:
Code:
case ClientPackets.CHAT_TEXT:
Replace the whole packet with:
Code:
case ClientPackets.CHAT_TEXT:
if (muted == 1) {
sendMessageFrame("You're muted!");
} else if(muted == 0) {
chatEffects = inStream.readUnsignedWord();
int numChars = inStream.readUnsignedByte();
chatText = misc.decryptPlayerChat2(inStream, numChars);
System.out.println("[" + playerName + "] chat: " + chatText);
updateRequired = true;
chatTextUpdateRequired = true;
}
break;
Now save ect, open Sqlhandler...
Add this to your imports
Code:
import net.cellkyborg.RSInstances.RSPlayer;
Define this:
Code:
public static RSPlayer RSPlayer;
Add this to your loading method:
Code:
if (rs.getInt("muted") == 1) {
RSPlayer.muted = 1;
} else if(rs.getInt("muted") == 0) {
RSPlayer.muted = 0;
}
Don't forget to create a new row in your character:
Name: muted
Type: int
Value: 3
I'm not sure it'll work...I can test...just compile