Zappa Posted September 28, 2013 Share Posted September 28, 2013 (edited) Here is my AntiBan, which was improved upon by 5uck. private void AntiBan() throws InterruptedException { switch (random(1, 768)) { case 1: this.client.rotateCameraPitch(50 + random(40)); case 2: this.client.rotateCameraToAngle(200 + random(150)); case 3: this.client.rotateCameraToAngle(200 + random(150)); this.client.rotateCameraPitch(50 + random(40)); case 4: openTab(Tab.SKILLS); sleep(800 + random(500)); if (random(0, 2) == 1) { if (random(0, 12) != 1) { client.moveMouse(new RectangleDestination(550, 210, 175, 210), false); sleep(1500 + random(700)); } else { client.moveMouse( new RectangleDestination(550, 425, 120, 25), false); sleep(1800 + random(700)); } } case 5: for (int i = 0; i < Tab.values().length; i++) { if (random(1, 50) == 1) { openTab(Tab.values()[i]); sleep(1500 + random(5000)); break; } } case 6: moveMouseOutsideScreen(); sleep(random(5000, 15000)); case 7: openTab(Tab.MAGIC); sleep(1000 + random(1000)); for (int i = 0; i < Spell.values().length; i++) { if (random(1, 100) == 1) { magicTab.hoverSpell(Spell.values()[i]); sleep(1500 + random(500)); break; } } } random(100, 500); openTab(Tab.INVENTORY); } Edited September 28, 2013 by Zappa Link to comment Share on other sites More sharing options...
beastlymaul Posted September 28, 2013 Share Posted September 28, 2013 sorry idk anything about scripting is this considered good? Link to comment Share on other sites More sharing options...
Zappa Posted September 28, 2013 Author Share Posted September 28, 2013 sorry idk anything about scripting is this considered good? It is a good AntiBan, yes Link to comment Share on other sites More sharing options...
Prefraud Posted September 28, 2013 Share Posted September 28, 2013 thanks zappa:) Link to comment Share on other sites More sharing options...
Mystere Posted September 28, 2013 Share Posted September 28, 2013 Zappa you don't like to make scripting guides? Your doing some cool things atm ;) Link to comment Share on other sites More sharing options...
Anon Posted September 28, 2013 Share Posted September 28, 2013 its an ok anti-ban just if you want more just add on to it. I sure will be using this in my scripts Thanks Link to comment Share on other sites More sharing options...
Mr Asshole Posted September 28, 2013 Share Posted September 28, 2013 Too bad antiban doesn't help with getting banned. Link to comment Share on other sites More sharing options...
Stimpack Posted September 28, 2013 Share Posted September 28, 2013 Might be missing a few break statements. That is... unless you intended each case to fall through so that it executes the rest of the cases (though that defeats the purpose of switching in the first place) Also, can use a Timer so that it executes every X amount of time units? Then, you can just do switch(random(1, 7)). Link to comment Share on other sites More sharing options...
Wiz Khalifa Posted September 28, 2013 Share Posted September 28, 2013 great to see some snippets , good job. Link to comment Share on other sites More sharing options...
liverare Posted September 28, 2013 Share Posted September 28, 2013 (edited) If I were to create an antiban--which I wouldn't because, unless they provide robust in-game interactions, they're redundant and 100% placebo--I would implement interactions "antibans" in an abstract enum and call for a random valid index, and probably allow for a queue of indices to be iterated through. Edited September 28, 2013 by liverare Link to comment Share on other sites More sharing options...