Jump to content

AntiBan - Zappa & 5uck


Zappa

Recommended Posts

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 by Zappa
Link to comment
Share on other sites

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 happy.png (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

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 by liverare
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...