Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

  • Author
9 minutes ago, Charlotte said:

Nice try :char: 

thanks dawg :doge:

  • Author
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

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

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!

  • Author
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 - 

 

 

2 hours ago, Juggles said:

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

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

Just now, Antonio Kala said:

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

You can pay me and ill write you open source scripts

  • 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

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.