

mirojantti
-
Posts
53 -
Joined
-
Last visited
-
Feedback
0%
Posts posted by mirojantti
-
-
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.
-
soo how do I use this? I have own website where I can host a html file containing the current version, but how do I get it to this script? Do I have to replace te textLoc and currVersion with something? please someone help me
Cool Anti-ban skill hovering snippet
in Snippets
Posted
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