Results 1 to 11 of 11
  1. #1
    Dead 4 Real's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Canada
    Posts
    336
    Reputation
    11
    Thanks
    83
    My Mood
    Relaxed

    [RSBot 2.0] KillinWillows [PowerCutter]

    KillinWillows v0.2

    Features:

    Cuts willows anywhere and drops them
    Flawless.
    Paint
    Antiban
    and much more

    Save as: KillinWillows.java

    Code:
    /*
     * @Author lolpl0xme
     * Swell - Tutorial
     * mak001, bluefirecorp, ConnectQ - clicking
     * Electricity - STAT Antiban
     * Enfilade - Paint Base
     */
    
    import java.awt.BasicStroke;
    import java.aw*****lor;
    import java.awt.Font;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Image;
    import java.awt.RenderingHints;
    import java.io.IOException;
    import java.net.URL;
    
    import javax.imageio.ImageIO;
    
    import org.rsbot.event.events.ServerMessageEvent;
    import org.rsbot.event.listeners.PaintListener;
    import org.rsbot.event.listeners.ServerMessageListener;
    import org.rsbot.script.ScriptManifest;
    import org.rsbot.script.Script;
    import org.rsbot.script.methods.Game;
    import org.rsbot.script.methods.Skills;
    import org.rsbot.script.wrappers.RSObject;
    
    @ScriptManifest(authors = { "lolpl0xme" }, keywords = { "Woodcutting" }, name = "KillinWillows", version = 0.2, description = "PowerChops Willows Anywhere!")
    public class KillinWillows extends Script implements PaintListener,
    		ServerMessageListener {
    
    	private final int[] hatchetIDs = { 349, 1351, 1353, 1355, 1357, 1359, 1361,
    			6739 };
    	private final int[] treeIDs = { 5552, 5554, 5551 };
    	double version = 0.2;
    	private int xpGained;
    	private int currentXp;
    	private int startXp;
    	private int logsCut = 0;
    	private int runEnergy = 0;
    
    	private void running() {
    		if (!game.isLoggedIn()) {
    			runEnergy = walking.getEnergy();
    			if (runEnergy >= 80 && !walking.isRunEnabled()) {
    				walking.setRun(true);
    			}
    			if (runEnergy < 80) {
    				sleep(10, 20);
    			}
    		}
    	}
    
    	public void serverMessageRecieved(ServerMessageEvent e) {
    		if (e.getMessage().contains("Woodcutting level")) {
    		}
    		if (e.getMessage().contains("get some")) {
    			logsCut++;
    		}
    	}
    
    	public void antiban() {
    		switch (random(1, 30)) {
    
    		case 5:
    			game.openTab(Game.TAB_STATS);
    			skills.doHover(Skills.WOODCUTTING);
    			sleep(random(1000, 1245));
    			game.openTab(Game.TAB_INVENTORY);
    			break;
    
    		case 6:
    			game.openTab(Game.TAB_FRIENDS);
    			sleep(random(1300, 1375));
    			game.openTab(Game.TAB_INVENTORY);
    
    		}
    
    	}
    
    	public boolean onStart() {
    		log("Start at trees");
    		startXp = skills.getCurrentExp(8);
    		mouse.setSpeed(10);
    		return true;
    	}
    
    	private final RenderingHints antialiasing = new RenderingHints(
    			RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    
    	private Image getImage(String url) {
    		try {
    			return ImageIO.read(new URL(url));
    		} catch (IOException e) {
    			return null;
    		}
    	}
    
    	private final Color color1 = new Color(51, 204, 255, 50);
    	private final Color color2 = new Color(51, 204, 255, 50);
    	private final BasicStroke stroke1 = new BasicStroke(1);
    	private final Font font1 = new Font("Arial", 0, 15);
    	private final Image img1 = getImage("https://img833.imageshack.us/img833/428/woodcutting.png");
    
    	public void onRepaint(Graphics g1) {
    		Graphics2D g = (Graphics2D) g1;
    		xpGained = currentXp - startXp;
    		g.setRenderingHints(antialiasing);
    		g.drawLine(0, (int) (mouse.getLocation().getY()), 800, (int) (mouse
    				.getLocation().getY()));
    		g.drawLine((int) (mouse.getLocation().getX()), 0, (int) (mouse
    				.getLocation().getX()), 800);
    		g.setColor(color1);
    		g.setColor(color2);
    		g.setStroke(stroke1);
    		g.drawImage(img1, 2, 158, null);
    		g.setFont(font1);
    		g.setColor(color1);
    		g.setColor(color2);
    		g.drawString(" " + logsCut + ".", 72, 230);
    		g.drawString(" " + xpGained, 120, 263);
    		g.drawString(" " + version, 388, 311);
    	}
    
    	public int loop() {
    		antiban();
    		running();
    		if (inventory.isFull()) {
    			inventory.dropAllExcept(hatchetIDs);
    		} else {
    			if (getMyPlayer().getAnimation() != 2846) {
    				RSObject tree = objects.getNearest(treeIDs);
    				if (tree != null) {
    					tree.doAction("Chop");
    					sleep(random(1000, 1245));
    					while (getMyPlayer().getAnimation() != -1)
    						sleep(500);
    				}
    			}
    		}
    		return random(100, 200);
    	}
    
    	public void onFinish() {
    		log("Thanks for using.");
    	}
    }

  2. #2
    Superpunt's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    2,396
    Reputation
    31
    Thanks
    115
    My Mood
    Mellow
    Looks nice.


  3. #3
    Dead 4 Real's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Canada
    Posts
    336
    Reputation
    11
    Thanks
    83
    My Mood
    Relaxed
    Thanks....................

  4. #4
    moho401's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    in your closet with... THE CREEPY MONKEY!
    Posts
    180
    Reputation
    10
    Thanks
    45
    My Mood
    Bored
    How do I use it? Save As? Srry 1st time on RS section

  5. #5
    Dead 4 Real's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Canada
    Posts
    336
    Reputation
    11
    Thanks
    83
    My Mood
    Relaxed
    First copy the code then once copyed open a notepad on ur pc paste the code then save it as

    name.java and put it in your rsbot directory and then compile. wala finished

  6. #6
    moho401's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    in your closet with... THE CREEPY MONKEY!
    Posts
    180
    Reputation
    10
    Thanks
    45
    My Mood
    Bored
    which RSBot?? where can i download?

  7. #7
    Dead 4 Real's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Canada
    Posts
    336
    Reputation
    11
    Thanks
    83
    My Mood
    Relaxed
    Download RSBOT here - powerbot - home of RSBot: leading RuneScape cheating since 2006!
    then click download.

  8. #8
    moho401's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    in your closet with... THE CREEPY MONKEY!
    Posts
    180
    Reputation
    10
    Thanks
    45
    My Mood
    Bored
    It keeps getting stuck, after the first few images and looking for updates. Then freezes on black screen saying "Loading - please wait."

  9. #9
    Dead 4 Real's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Canada
    Posts
    336
    Reputation
    11
    Thanks
    83
    My Mood
    Relaxed
    hmm well its an old script ill remake it today and post a new one (with more support)

  10. #10
    Dead 4 Real's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Canada
    Posts
    336
    Reputation
    11
    Thanks
    83
    My Mood
    Relaxed
    Wow this is a very old script, i think it was my first im gonna remake it will add new version tomorrow.

  11. #11
    123rune20's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    427
    Reputation
    11
    Thanks
    33
    My Mood
    Hungover
    Quote Originally Posted by moho401 View Post
    It keeps getting stuck, after the first few images and looking for updates. Then freezes on black screen saying "Loading - please wait."
    Go into the website first, go into options and make sure it's on DirectX Mode, that fixed it for me. I also put everything pretty low, except CPU usage.
    "I'd show you the marks, but I don't wanna pull my pants down right now...." Tallahassee Pain.


    List of accomplishments:
    Survive Y2K
    Survive 6/06/06
    Survive May 21st
    Survive 2012



Similar Threads

  1. Rsbot: 544 Final
    By thesynyster32 in forum Runescape Hacks / Bots
    Replies: 10
    Last Post: 07-28-2009, 02:59 PM
  2. RSBot: Working, Members and Nonmembers. Easy!
    By thesynyster32 in forum Runescape Hacks / Bots
    Replies: 3
    Last Post: 05-21-2009, 04:47 PM
  3. The Perfect RSBot (literally)
    By trevdude101 in forum Runescape Hacks / Bots
    Replies: 28
    Last Post: 03-15-2009, 02:11 PM
  4. RsBot - 800+ Scripts
    By Murkforce in forum Runescape Hacks / Bots
    Replies: 3
    Last Post: 03-04-2009, 02:37 PM
  5. The Most Recent RsBot
    By Murkforce in forum Runescape Hacks / Bots
    Replies: 0
    Last Post: 02-01-2009, 08:24 AM