• Log in or sign up for an account here: https://www.sythe.org/login

?~ Can someone post All-antiban by WarX ~?

Status
Not open for further replies.

I B0t 4 Phun

Active Member

Banned
Joined
Nov 18, 2008
Sythe Gold
0
Messages
181
Since rsbot is down and i can't find anywhere to download it, could someone post it and send me a link or via msn?

Thx!
 
Save it as AllAntiBan.java into the AntiBan's folder.
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 AllAntiBan extends Random {

    int randomInt;
    int GambleInt;
    long lastCheck = 0;
    long timer = System.currentTimeMillis();
    int checkTime;
    public String[] thingsToSayIdle = new String[] {
""};


    public String getName() {
        return "AllAntiBan";
    }

    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;
	}	
}
 
Thanks, I really needed this. I thought that I had this script but I was mistaken

Thanks :)
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top