Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int doAntiBan() {
- int event = random(1, 25);
- if (event <= 10) {
- antibanThread = new Thread(new AntiBanThread(), "antiban");
- antibanThread.start();
- return 1;
- }
- if (event == 11) {
- if (random(1, 2) == 2) {
- log("checking ep");
- game.openTab(1);
- sleep(100, 200);
- RSComponent skillChild = interfaces.getComponent(320);
- Rectangle bounds = new Rectangle(skillChild.getAbsoluteX(),
- skillChild.getAbsoluteY(), skillChild.getWidth(),
- skillChild.getHeight());
- mouse.move(random(bounds.x, bounds.x + bounds.width),
- random(bounds.y, bounds.y + bounds.height));
- sleep(1000, 2000);
- } else {
- log("check mage ep");
- game.openTab(1);
- skills.doHover(Skills.MAGIC);
- sleep(1000, 2000);
- }
- }
- if (event == 12 || event == 13) {
- log("Moving mouse slightly");
- mouse.moveSlightly();
- sleep(300,600);
- mouse.moveSlightly();
- sleep(400,700);
- }
- if (event == 14) {
- log("random tab");
- game.openTab(random(0, 15));
- mouse.move(random(550, 735), random(210, 465));
- sleep(random(700, 2000));
- }
- if (event == 15) {
- log("opening friends tab");
- game.openTab(9);
- mouse.move(random(550, 735), random(210, 465));
- sleep(random(700, 2000));
- }
- if (event == 16) {
- log("move mouse");
- mouse.move(random(1, game.getWidth()), random(1, game.getHeight()));
- sleep(1000, 1500);
- }
- if (event == 18 || event == 19) {
- log("mouse off screen");
- mouse.moveOffScreen();
- sleep(3000, 6000);
- }
- if (event == 20 || event == 21) {
- log("opening iventory");
- game.openTab(4);
- sleep(750, 1300);
- }
- /*if(event == 22)
- {
- RSInterface Notes = interfaces.get(34);
- if(game.getCurrentTab() != game.TAB_NOTES){
- game.openTab(game.TAB_NOTES);
- sleep(300,700);
- }
- mouse.click(Notes.getComponent(3).getLocation(), true);
- sleep(600, 800);
- keyboard.sendText(null, true);
- }*/
- if(event == 23)
- {
- RSPlayer[] p = players.getAll();
- RSPlayer player = p[random(0,p.length)];
- if(player != null)
- {
- mouse.click(player.getScreenLocation(),false);
- sleep(700,1300);
- }
- }
- if(event == 24)
- {
- sleep(5000,36421);
- }
- return random(100, 200);
- }
Add Comment
Please, Sign In to add comment