Jump to content

ZePotatoPick | DAMN SIMPLE DRAYNOR PICKER [30k/ph]


Zezurge

Recommended Posts

ZePotatoPick

I was bored wanted to learn how to make a script. Here's the result.

What it does:

- Picks Potatos

- Banks

- Also features the most complex paint you've ever seen.

- Makes you up to 30k/ph, ran this on 10 bots made a few Ms in a day.

 

 

597752f329db0_ScreenShot2017-07-25at10_12_51AM.png.5cd4b2bea0029ad080b38e2a59e23f5a.png

DL: https://www.dropbox.com/s/i3dnzma983ki2cd/ZePotatoPick.jar?dl=0

YAY I FINISHED A SCRIPT!

 

  • Like 2
Link to comment
Share on other sites

15 minutes ago, Antonio Kala said:

what's your next project? Any chance I can see the source of the script?

import org.osbot.rs07.api.map.Area;
import org.osbot.rs07.api.map.Position;
import org.osbot.rs07.api.map.constants.Banks;
import org.osbot.rs07.api.model.Player;
import org.osbot.rs07.api.model.RS2Object;
import org.osbot.rs07.api.ui.Message;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
 
import java.awt.*;
 
@ScriptManifest(author = "Zezurge", info = "Potato pickin first script!", name = "ZezurgePotatos", version = 1.0, logo = "")
public class main extends Script {
 
	int picked = 0;
	
    @Override
    public void onStart() {
        log("Let's get started!");
        
    }
    
	private enum State {
		PICK, BANK
	};

	private State getState() {
		if (inventory.isFull())		
			return State.BANK;
		return State.PICK;
		
	}
	@Override
	public void onMessage(Message message) throws InterruptedException{
		if(message.getMessage().toString().contains("You pick a potato.")){
			picked = picked+1;
		}
	}
    
    @Override
	public int onLoop() throws InterruptedException {
		Player p = myPlayer();
		Position position = myPosition();
		Area pfeild = new Area(3136, 3292, 3158, 3266);
		RS2Object tater = getObjects().closest("Potato");
		switch (getState()) {
		case PICK:
			if (!p.isAnimating() && !p.isMoving()){
				if (pfeild.contains(position)){
					if (tater != null) {
						tater.interact("Pick");
						sleep(random(1200,1700));
					}
				}else{
					getWalking().webWalk(pfeild);
				}
			}
			break;
		case BANK:
			if (Banks.DRAYNOR.contains(p)){
				RS2Object booth = getObjects().closest("Bank booth");
				booth.interact("Bank");
				sleep(random(1500, 2000));
				getBank().depositAll();
			}else{
				getWalking().webWalk(Banks.DRAYNOR);
				random(200,500);
			}
			break;
		}
		return random(200, 300);
	}
 
    @Override
    public void onExit() {
        log("Thanks for running my PotatoPicker!");
    }
 
    @Override
    public void onPaint(Graphics2D g) {
    	g.drawString("Potatos Picked: " + picked, 50, 50);
 
    }
 
}

 

Im working on a bone picker & burier for fresh spawns to get a little prayer exp as we speak. <3

Link to comment
Share on other sites

1 hour ago, Zezurge said:

import org.osbot.rs07.api.map.Area;
import org.osbot.rs07.api.map.Position;
import org.osbot.rs07.api.map.constants.Banks;
import org.osbot.rs07.api.model.Player;
import org.osbot.rs07.api.model.RS2Object;
import org.osbot.rs07.api.ui.Message;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
 
import java.awt.*;
 
@ScriptManifest(author = "Zezurge", info = "Potato pickin first script!", name = "ZezurgePotatos", version = 1.0, logo = "")
public class main extends Script {
 
	int picked = 0;
	
    @Override
    public void onStart() {
        log("Let's get started!");
        
    }
    
	private enum State {
		PICK, BANK
	};

	private State getState() {
		if (inventory.isFull())		
			return State.BANK;
		return State.PICK;
		
	}
	@Override
	public void onMessage(Message message) throws InterruptedException{
		if(message.getMessage().toString().contains("You pick a potato.")){
			picked = picked+1;
		}
	}
    
    @Override
	public int onLoop() throws InterruptedException {
		Player p = myPlayer();
		Position position = myPosition();
		Area pfeild = new Area(3136, 3292, 3158, 3266);
		RS2Object tater = getObjects().closest("Potato");
		switch (getState()) {
		case PICK:
			if (!p.isAnimating() && !p.isMoving()){
				if (pfeild.contains(position)){
					if (tater != null) {
						tater.interact("Pick");
						sleep(random(1200,1700));
					}
				}else{
					getWalking().webWalk(pfeild);
				}
			}
			break;
		case BANK:
			if (Banks.DRAYNOR.contains(p)){
				RS2Object booth = getObjects().closest("Bank booth");
				booth.interact("Bank");
				sleep(random(1500, 2000));
				getBank().depositAll();
			}else{
				getWalking().webWalk(Banks.DRAYNOR);
				random(200,500);
			}
			break;
		}
		return random(200, 300);
	}
 
    @Override
    public void onExit() {
        log("Thanks for running my PotatoPicker!");
    }
 
    @Override
    public void onPaint(Graphics2D g) {
    	g.drawString("Potatos Picked: " + picked, 50, 50);
 
    }
 
}

 

Im working on a bone picker & burier for fresh spawns to get a little prayer exp as we speak. <3

Cool man I'm also about to start scripting, any advice? how did you get started

Link to comment
Share on other sites

1 hour ago, Zezurge said:

import org.osbot.rs07.api.map.Area;
import org.osbot.rs07.api.map.Position;
import org.osbot.rs07.api.map.constants.Banks;
import org.osbot.rs07.api.model.Player;
import org.osbot.rs07.api.model.RS2Object;
import org.osbot.rs07.api.ui.Message;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
 
import java.awt.*;
 
@ScriptManifest(author = "Zezurge", info = "Potato pickin first script!", name = "ZezurgePotatos", version = 1.0, logo = "")
public class main extends Script {
 
	int picked = 0;
	
    @Override
    public void onStart() {
        log("Let's get started!");
        
    }
    
	private enum State {
		PICK, BANK
	};

	private State getState() {
		if (inventory.isFull())		
			return State.BANK;
		return State.PICK;
		
	}
	@Override
	public void onMessage(Message message) throws InterruptedException{
		if(message.getMessage().toString().contains("You pick a potato.")){
			picked = picked+1;
		}
	}
    
    @Override
	public int onLoop() throws InterruptedException {
		Player p = myPlayer();
		Position position = myPosition();
		Area pfeild = new Area(3136, 3292, 3158, 3266);
		RS2Object tater = getObjects().closest("Potato");
		switch (getState()) {
		case PICK:
			if (!p.isAnimating() && !p.isMoving()){
				if (pfeild.contains(position)){
					if (tater != null) {
						tater.interact("Pick");
						sleep(random(1200,1700));
					}
				}else{
					getWalking().webWalk(pfeild);
				}
			}
			break;
		case BANK:
			if (Banks.DRAYNOR.contains(p)){
				RS2Object booth = getObjects().closest("Bank booth");
				booth.interact("Bank");
				sleep(random(1500, 2000));
				getBank().depositAll();
			}else{
				getWalking().webWalk(Banks.DRAYNOR);
				random(200,500);
			}
			break;
		}
		return random(200, 300);
	}
 
    @Override
    public void onExit() {
        log("Thanks for running my PotatoPicker!");
    }
 
    @Override
    public void onPaint(Graphics2D g) {
    	g.drawString("Potatos Picked: " + picked, 50, 50);
 
    }
 
}

 

Im working on a bone picker & burier for fresh spawns to get a little prayer exp as we speak. <3

He's going to steal your work. Never show the code!

Link to comment
Share on other sites

41 minutes ago, Juggles said:

He's going to steal your work. Never show the code!

Haha i don't mind very simple script i feel most people could do!

50 minutes ago, Antonio Kala said:

Cool man I'm also about to start scripting, any advice? how did you get started

Apeac and Explv both have very nice beginning scripting guides here - 

 

 

Link to comment
Share on other sites

  • 3 weeks later...
On 7/25/2017 at 3:40 PM, Antonio Kala said:

No I just want to learn! :( I need open source to learn

There's a lot of scripts that are public, start with just trying one method at a time in a fresh script and tweak it a bit until you fully understand it. Then save it and start a new one. For a basic script it's just finding objects and npcs and interacting with them and your inventory. Start there and you'll be a pro in no time :)

many public scripts are open source and have :Find NPC, Walk to bank, Walk to location, Eat food, and Interact with object

On 7/25/2017 at 3:41 PM, Juggles said:

You can pay me and ill write you open source scripts

The greed is real

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...