make split private chat save [anti leech]
urpose:to make split private chat save.
Difficulty:2/10
Assumed Knowledge:Nothing.
Server Base:should work on all.
Classes Modified:client.java
Procedure:
first off open ur cleint.java
step 1.search:
Quote:
if (token.equals("character-lastlogin")) {
playerLastConnect = (token2);
and right above it
add:
Quote:
} else if (token.equals("character-playerconfigSplitPrivate")) {
playerconfigSplitPrivate = Integer.parseInt(token2);
then search:
Quote:
characterfile.write("character-lastlogintime = ", 0, 26);
characterfile.write(Integer.toString(playerLastLog in), 0, Integer.toString(playerLastLogin).length());
characterfile.newLine();
and right above it
add:
Quote:
characterfile.write("character-configSplitPrivate = ", 0, 27);
characterfile.write(Integer.toString(playerconfigS plitPrivate), 0, Integer.toString(playerconfigSplitPrivate).length( ));
characterfile.newLine();
step 2. find:
Quote:
public boolean process()
and right above it
add:
Quote:
public int playerconfigSplitPrivate = 0;
step 3. find:
Quote:
clicking most buttons
and then look down to you see:
Quote:
//case 4126: windstrike break;
under that
add:
Quote:
case 3184: // Split private chat: ON - By pkin3
playerconfigSplitPrivate = 1;
setClientConfig(287, playerconfigSplitPrivate);
savechar();
savemoreinfo();
break;
case 3185: // Split private chat: OFF - By pkin3
playerconfigSplitPrivate = 0;
setClientConfig(287, playerconfigSplitPrivate);
savechar();
savemoreinfo();
break;
100% to me and theres a big anti leech
plzz post if you use
and compile and run and be happy lol
post sum1 cmon