mirojantti Posted January 19, 2014 Share Posted January 19, 2014 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 More sharing options...
Han Posted January 19, 2014 Share Posted January 19, 2014 Impressive, Will use this when I start fully scripting. Link to comment Share on other sites More sharing options...
Toph Posted January 19, 2014 Share Posted January 19, 2014 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) Link to comment Share on other sites More sharing options...
mirojantti Posted January 20, 2014 Author Share Posted January 20, 2014 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 More sharing options...
liverare Posted January 21, 2014 Share Posted January 21, 2014 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 More sharing options...
Sigma Posted January 23, 2014 Share Posted January 23, 2014 I'm almost positive each of the skills is an interface child, so no point in create rectangles. Also, take Toph's suggestion, as the random element of the anti-ban should be created by the person using this snippet. Link to comment Share on other sites More sharing options...
Dreamliner Posted January 23, 2014 Share Posted January 23, 2014 You should make this more dynamic, as in use the interfaces to get the rectangles to use with the hover. Instead of finding the coordinates yourself, all you'd have to do is put in the parent and child interface ID's. Would work great for different types of scripts Link to comment Share on other sites More sharing options...