RSPS - PI - Fixing Private Messaging - Client Sided 07-29-2013, 07:34 AM
#1
So I didn't just write this for the purpose of Code Community, but I noticed that the java section is pretty empty so I thought I would share this useful tutorial/snippet.
Open up your client class and search for:
You should see something that looks like this:
Simply remove it all and replace it with this:
You're welcome. I know its not much of a tutorial but lots of people have asked me how to do this on multiple RSPS communities.
Open up your client class and search for:
Code:
case 196:You should see something that looks like this:
Code:
case 196:
long l5 = inStream.readQWord();
int j18 = inStream.readDWord();
int l21 = inStream.readUnsignedByte();
boolean flag5 = false;
for(int i28 = 0; i28 < 100; i28++) {
if(anIntArray1240[i28] != j18)
continue;
flag5 = true;
}
if(l21 <= 1) {
for(int l29 = 0; l29 < ignoreCount; l29++) {
if(ignoreListAsLongs[l29] != l5)
continue;
flag5 = true;
}
}
if(!flag5 && anInt1251 == 0)
try {
anIntArray1240[anInt1169] = j18;
anInt1169 = (anInt1169 + 1) % 100;
String s9 = TextInput.method525(pktSize - 13, inStream);
//if(l21 != 3)
//s9 = Censor.doCensor(s9);
if(l21 == 2 || l21 == 3)
pushMessage(s9, 7, "@cr2@" + TextClass.fixName(TextClass.nameForLong(l5)));
else
if(l21 == 1)
pushMessage(s9, 7, "@cr1@" + TextClass.fixName(TextClass.nameForLong(l5)));
else
pushMessage(s9, 3, TextClass.fixName(TextClass.nameForLong(l5)));
} catch(Exception exception1) {
signlink.reporterror("cde1");
}
pktType = -1;
return true;Simply remove it all and replace it with this:
Code:
case 196:
long l5 = inStream.readQWord();
int j18 = inStream.readDWord();
int l21 = inStream.readUnsignedByte();
boolean flag5 = false;
if(l21 <= 1) {
for(int l29 = 0; l29 < ignoreCount; l29++) {
if(ignoreListAsLongs[l29] != l5)
continue;
flag5 = true;
}
}
if(!flag5 && anInt1251 == 0)
try {
String s9 = TextInput.method525(pktSize - 13, inStream);
//if(l21 != 3)
//s9 = Censor.doCensor(s9);
if(l21 == 2 || l21 == 3)
pushMessage(s9, 7, "@cr2@" + TextClass.fixName(TextClass.nameForLong(l5)));
else
if(l21 == 1)
pushMessage(s9, 7, "@cr1@" + TextClass.fixName(TextClass.nameForLong(l5)));
else
pushMessage(s9, 3, TextClass.fixName(TextClass.nameForLong(l5)));
} catch(Exception exception1) {
signlink.reporterror("cde1");
}
pktType = -1;
return true;You're welcome. I know its not much of a tutorial but lots of people have asked me how to do this on multiple RSPS communities.


![[+]](https://sinister.li/images/modern/collapse_collapsed.png)
![[Image: WV5eQ42.jpg]](http://i.imgur.com/WV5eQ42.jpg)