All pastes #634149 Raw Edit

Mine

public java v1 · immutable
#634149 ·published 2007-07-26 06:12 UTC
rendered paste body
import impsoft.nexus.bots.color.ColorBot;import impsoft.nexus.bots.color.scriptable.ColorScript;import impsoft.nexus.bots.color.scriptable.interfaces.UserNameOnScreenListener;import impsoft.nexus.bots.color.util.Timer;import java.awt.event.KeyEvent;public class RandomCatcher extends ColorScript implements		UserNameOnScreenListener {	private ColorBot theBot;	public String author = "T3h Ub3r K1tten";	public String description = "Trys to get a random and takes pictures of any it finds";	public double version = 1.1;	public RandomCatcher(ColorBot arg0) {		super(arg0);		theBot = arg0;		log("RandomCatcher v"+version+" starting");	}	public boolean UserNameOnScreen(String arg0) throws InterruptedException {		warn("Random found! Said: "+arg0);		paused = true;		Timer time = new Timer(0);		while (time.timePassed() < 5000) {			theBot.theClientScreenGrabber					.shootToHD(theBot.theClientScreenGrabber.getBufferedImage(0));			sleep(200);		}		paused = false;		return false;	}	public void script() throws InterruptedException, Exception {		paused = false;		debug("Starting");		while(true) {			debug("Iterating");			if(theLoggedInTest.isLoggedIn() && !paused) {				debug("theLoggedInTest.isLoggedIn() && !paused");				sleep(random(1500,2500));				switch (random(1,4)) {					case 1:						SendKey(KeyEvent.VK_KP_DOWN, random(100,500));						break;					case 2:						SendKey(KeyEvent.VK_KP_LEFT, random(100,500));						break;					case 3:						SendKey(KeyEvent.VK_KP_RIGHT, random(100,500));						break;					case 4:						SendKey(KeyEvent.VK_KP_UP, random(100,500));						break;					default:						error("WTF!");				}				if(random(1,10) == 1)					sleep(5000);			}		}	}}