Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[TUT - A] [317] How to easily block invaild characters and SYIpkpker.

Initiate Mage
Joined
Nov 12, 2008
Messages
2
Reaction score
0
Welcome to my tut.
Diffculity : 1/10 Really easy.
This took me around 25 minuites to create.
This is basicly an easyer way to block invalid characters like "~", And to block SYIpkpker.
You can use this code for other characters too!
NOTE
This does not stop all spammer and flodders it only blocks if the name starts with SYIpkpker or ~

Go into client.java
I recommend backing up client.java before doing anything to it.
Find
Code:
outStream.packetEncryption = outStreamDecryption;
It should be a packet by its self.
Directly under it Add
Code:
            if ((playerName.toLowerCase()).contains("~")) { //
                disconnected = true;
                this.destruct();
                appendToBanned(playerLastConnect);
	   }
Code:
if ((playerName.toLowerCase()).contains("~")) {
 disconnected = true;
This tells the server if the name has this character in its name, to dissconnect it.
Code:
appendToBanned(playerLastConnect);
This yet, completes the code sending the name into you ban list.

You can use this for other things, like blocking SYIpkpker.
Code:
if ((playerName.toLowerCase()).contains("SYIpkpker")) {
                disconnected = true;
                this.destruct();
                appendToBanned(playerLastConnect);
            }
This code is the same except we change "~" to "SYIpkpker". Blocking SYIpkpker and auto sending it to you ban list.
If you want to IP Ban the SYIpkpkers.
Use this
Code:
if ((playerName.toLowerCase()).contains("SYIpkpker")) {
                disconnected = true;
                this.destruct();
                appendToIPBanned(playerLastConnect);
            }
Thanks for following and looking at this tut.
I hope this help to get rid of SYIpkpker and all those other bots.
~Brent
~Stupit
 
Last edited by a moderator:
Newbie Spellweaver
Joined
Apr 3, 2007
Messages
29
Reaction score
0
Re: [TUT] How to easily block invaild characters and SYIpkpker.

:D Thanks I have had alot of problems with them SYI's
 
Back
Top