Jump to content

Cool Anti-ban skill hovering snippet


mirojantti

Recommended Posts

Heyyy. I have noticed that many new scripters are asking for anti-ban codes, like I did just week ago. It was hard to find a anti-ban code and I really needed it, because I didn't know how to write the code. But now I do know how to write a anti-ban code, and I decided to share the code with other newbies:)

 

So here is the method:

public void doAntiban() throws InterruptedException{
		if(random(0, 400) == 43){
			openTab(Tab.SKILLS);
			sleep(random(300, 500));
			if(random(1,5) != 4){
				client.moveMouse(new RectangleDestination(550, 210, 175, 210), false);
				sleep(random(500, 750));				
			}else {
                client.moveMouse(new RectangleDestination(550, 425, 120, 25), false);
                sleep(random(500, 750));
            }
		}else if(random(0, 43) == 10){
			openTab(Tab.INVENTORY);
			sleep(random(500, 750));
		}
	}

Just copy the above code to your script. And how to use it? For example I am cutting trees. I want my script to perform this anti-ban method while my bot is cutting tree. So it could be done like this:

public int onLoop() throws InterruptedException{
	
	while(client.getMyPlayer().isAnimating()){
		doAntiban();
	}
	
	return 50;
}

Sure you don't have to use the while statement, but I just used it for this example.

 

I tested this, should work perfectly, but of course you guys can improve the code to better and tell me if it's not working or something.

 

Have fun.

Link to comment
Share on other sites

This would be better if instead of just one rectangle destination (not sure what skill that one is for), you supported them all so they could be like hoverSkill(Skill.ATTACK)

I'm not sure what you mean, but this method randomly chooses a skill to hover. It's not always the same skill. You can try it yourself to see

Link to comment
Share on other sites

Redundant.

 

Briefly hovering over a random skill wont fool a bot-hunter or any possible detection system. Instead of subjecting every end-user to pointless odd moments of behavioral difference, make a script that's too effective to get caught in the first place. I imagine both bot-hunters and the detection system pray for a consistent failures and flaws. Focus on that.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...