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.