This spambot changes the name of your faction over and over again, the idea being that it is too fast for people to type "/f who" so you continue spamming for longer than you necessarily would have with a traditional method.
Once done you'll be able to trigger it by typing .factionspam in chat.
It'll freeze your screen and trigger the "Program Not Responding" popup but the players on the server will be spammed
like hell. I'm pretty new to java btw, if anybody knows how to fix that problem then that would be awesome.
Many servers use different versions of factions, you may need to fine-tune this to a particular server by editing the /f name.
Thread.sleep(1000); controls the delay between each change in milliseconds.
The while( i < 10000 ) controls how many times the bot will change the faction name.
Remember to make a faction beforehand, perhaps you could even make it part of the hack if you wanted to.
Link to it in action: Not allowed to post links :/ Maybe later.
This code goes in EntityClientPlayerMP, in public void sendChatMessage:
Code:
if(par1Str.startsWith(".factionspam"))
{
int i = 0 ;
while( i < 10000 )
{
Random v = new Random();
Random w = new Random();
Random x = new Random();
Random y = new Random();
Random z = new Random();
int v1 = v.nextInt(98) + 1;
int w1 = w.nextInt(98) + 1;
int x1 = x.nextInt(98) + 1;
int y1 = y.nextInt(98) + 1;
int z1 = z.nextInt(98) + 1;
try {
Thread.sleep(1000);
} catch(InterruptedException ex) {
Thread.currentThread().interrupt();
}
String spam1 = ("/f name " + x1 + y1 + z1 + v1 + w1);
this.sendQueue.addToSendQueue(new Packet3Chat(spam1));
i++ ;
}
}
else
{
this.sendQueue.addToSendQueue(new Packet3Chat(par1Str));
}