[Request] AllAntiBan

Discussion in 'Archives' started by cellman100, Feb 19, 2009.

[Request] AllAntiBan
  1. Unread #1 - Feb 19, 2009 at 12:02 AM
  2. cellman100
    Joined:
    Feb 16, 2009
    Posts:
    3
    Referrals:
    0
    Sythe Gold:
    0

    cellman100 Newcomer

    [Request] AllAntiBan

    i think the link for the anti ban got deleted when the new rsbot forums came in so does any 1 have this preferably the most recent =P
     
  3. Unread #2 - Feb 19, 2009 at 1:09 AM
  4. Bl1tz
    Joined:
    Apr 2, 2007
    Posts:
    364
    Referrals:
    0
    Sythe Gold:
    0

    Bl1tz Forum Addict
    Banned

    [Request] AllAntiBan

    Code:
    import com.speljohan.rsbot.script.Random;
    import com.speljohan.rsbot.bot.Bot;
    import com.speljohan.rsbot.logging.Log;
    import java.awt.event.*;
    
    import javax.swing.*;
    
    public class AllAntiBanfast extends Random {
    
        int randomInt;
        int GambleInt;
        long lastCheck = 0;
        long timer = System.currentTimeMillis();
        int checkTime;
        public String[] thingsToSayIdle = new String[] {
    ""};
    
    
        public String getName() {
            return "AllAntiBanfast";
        }
    
        public double getVersion() {
          return  01;
        }
    
        public String getAuthor() {
            return "WarXperiment";
        }
    
        private boolean timer(int seconds) {
            return System.currentTimeMillis() * 1000 < seconds;
        }
    
       public Log getLog() {
           if(LOG != null)
                LOG = null;
    
           return super.getLog();
        }
    
        public boolean activateCondition() {
            randomInt = random(1, 100);
            if (isLoggedIn() && randomInt == 50)
            return true;
    
        return random(0, 100) == 25;
        }
        
        public void turnCamera() {
            char[] LR = new char[] { KeyEvent.VK_LEFT, KeyEvent.VK_RIGHT };
            char[] UD = new char[] { KeyEvent.VK_DOWN, KeyEvent.VK_UP };
            char[] LRUD = new char[] { KeyEvent.VK_LEFT, KeyEvent.VK_RIGHT,
                                     KeyEvent.VK_UP, KeyEvent.VK_DOWN };
            int random2 = random(0,2);
            int random1 = random(0,2);
            int random4 = random(0,4);
            
            if(random(0,3) == 0) {
                Bot.getInputManager().pressKey(LR[random1]);
                try { Thread.sleep(random(100, 400)); } catch (Exception e) {}
                Bot.getInputManager().pressKey(UD[random2]);
                try { Thread.sleep(random(300, 600)); } catch (Exception e) {}
                Bot.getInputManager().releaseKey(UD[random2]);
                try { Thread.sleep(random(100, 400)); } catch (Exception e) {}
                Bot.getInputManager().releaseKey(LR[random1]);                
            } else {
                Bot.getInputManager().pressKey(LRUD[random4]);
                if(random4>1) {
                    try { Thread.sleep(random(300, 600)); } catch (Exception e) {}
                } else {
                    try { Thread.sleep(random(500, 900)); } catch (Exception e) {}
                }
                Bot.getInputManager().releaseKey(LRUD[random4]);
            }
        }
        
        
        public int loop() {
            GambleInt = random(1, 20);
            if (GambleInt == 1) {
                turnCamera();
            }
    
            if (GambleInt == 2) {
                int xA = random(0, 750);
                int yA = random(0, 500);
                moveMouse(xA, yA);
                turnCamera();
            }
            
            if (GambleInt == 3) {
                if (getCurrentTab() != TAB_INVENTORY) {
                    openTab(TAB_INVENTORY);
                    turnCamera();
                }
            }
    
            if (GambleInt == 4) {
                clickCharacter(getNearestPlayerByLevel(1,130) , "Cancel");
                return (random(500, 1750));
            }
    
            if ((System.currentTimeMillis() - lastCheck) >= checkTime) {
                lastCheck = System.currentTimeMillis();
                checkTime = random(300000, 600000);
                turnCamera();
                    openTab(random(0, 13));
                turnCamera();
            }
            
            
            if (GambleInt == 5) {
                        turnCamera();
                int xA = random(0, 750);
                int yA = random(0, 500);
                moveMouse(xA, yA);
            }
            
            if (GambleInt == 6)
                turnCamera();
                
            if (GambleInt == 7)
                openTab(random(0, 13));
                
            if (GambleInt == 8)
                moveMouse(random(0,450), random(0,450));
    
            return -1;
        }    
    }
     
< Today sucks. | Wireless xbox 360 lag switch? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site