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.

AIO Cooker

Featured Replies

Hello! Just this morning I wake up to all my accounts being permanantely banned, probably due to botting in catherby yesterday tongue.png But I'm definentally done botting for good now and I'd like to give my scripts away so that people here can benefit (if people still bot). If requested enough times I will simply release the source code for this script. I really started to care less and less for playing.

 

You will need to edit some values and the counter isn't accurate (I will post a fixed version later today!)

import java.awt.Color;
import java.awt.Graphics2D;

import org.osbot.rs07.api.map.Position;
import org.osbot.rs07.api.model.RS2Object;
import org.osbot.rs07.input.mouse.MiniMapTileDestination;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import org.osbot.rs07.utility.Area;

@ScriptManifest(author = "Pildurass", info = "Cooks Anything", name ="Cooker", version = 2.0, logo = "http://i.imgur.com/xI60cq3.png")
public class Cooker extends Script
{
	public int trips, shroomholder, shroomcount;
	private long startTime;
	private String status = "Initializing";
    private Color bg;
    String state;
    @SuppressWarnings("unused")
	private Color box;
    public int statsX;
    public int statsY;
	public void onStart() {
		trips = (int) getInventory().getAmount(563);
		startTime = System.currentTimeMillis();
        bg = new Color(69, 53, 15, 125);
        box = new Color(0, 0, 0);
        statsX = 313;
        statsY = 344;
	}
	public void onPaint(Graphics2D g1) {
        long millis = System.currentTimeMillis() - startTime;
        Graphics2D g = g1;
        g.setColor(bg);
        g.fillRect(statsX, statsY, 184, 115);
        g.setColor(Color.green);
        g.drawRect(statsX, statsY, 184, 115);
        g.setColor(Color.white);
        g.drawString((new StringBuilder("Cooker v")).append("0.1 | Author : pildurass").toString(), statsX + 5, statsY + 15);
        g.drawString((new StringBuilder("State: ")).append(status).toString(), statsX + 5, statsY + 30);
        g.drawString((new StringBuilder("Time ran: ")).append(timeToString((int)millis)).toString(), statsX + 5, statsY + 45);
        g.drawString((new StringBuilder("Cooked Gained: ")).append(shroomcount).toString(), statsX + 5, statsY + 60);
        g.drawString((new StringBuilder("Cooked/Hour: ")).append(perHour((int)(shroomcount), System.currentTimeMillis() - millis)).toString(), statsX + 5, statsY + 75);
	}
	public void walkPath(Position[] path) throws InterruptedException {
	    for (Position p : path) {
	        if (myPosition().distance(p) > 16 || myPosition().distance(p) < 3) continue;
	        boolean success;
	        do {
	            success = walkTile(p);
	        } while (!success);
	    }
	}

	public boolean walkTile(Position p) throws InterruptedException {
	    if (myPosition().distance(p) > 13) {
	        Position pos = new Position(((p.getX() + myPosition().getX()) / 2) + random(-3, 3),
	                ((p.getY() + myPosition().getY()) / 2) + random(-3, 3),
	                myPosition().getZ());
	        walkTile(pos);
	    }
	    mouse.click(new MiniMapTileDestination(bot, p), false);
	    int fail = 0;
	    while (myPosition().distance(p) > 2 && fail < 10) {
	        sleep(500);
	        if (!myPlayer().isMoving())
	            fail++;
	    }
	    return fail != 10;
	}

	public static String perHour(int gained, long startTime)
	{
	    int i = (int)(((double)gained * 3600000D) / (double)(System.currentTimeMillis() - startTime));
	    return (new StringBuilder()).append(i).toString();
	}
	public static String timeToString(long time)
	{
	    int seconds = (int)(time / 1000L) % 60;
	    int minutes = (int)((time / 60000L) % 60L);
	    int hours = (int)((time / 0x36ee80L));
	    return (new StringBuilder(String.valueOf(hours))).append(":").append(minutes).append(":").append(seconds).toString();
	}
    public void walktorange() {
        RS2Object range = objects.closest(new String[] {"Range"});
    	status = "Walking to Range";
    	try {
			walkTile(new Position (range.getPosition().getX(), range.getPosition().getY(), 0));
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
    }
    public void bank() {
    	status = "Opening Bank";
        RS2Object banks = objects.closest(new String[] {"Bank booth"});
        localWalker.walk(banks.getPosition());
        while(myPlayer().isMoving()) {
        }
        banks.interact("Bank"); 
    }
    public void withdraw() {
    	status = "Withdrawing";
    	shroomcount = (int) (shroomholder + getInventory().getAmount(3144));
    	getBank().depositAll();
    	getBank().withdraw(3142, 28);
    }
    public void cook() {
        RS2Object range = objects.closest(new String[] {"Range"});
    	status = "Interacting with Range";
    	getInventory().getItem(3142).interact("Use");
    	range.interact("Use");
    }
    public void makeall() {
    	status = "Making X";
    	if (getInterfaces().getChild(548, 122).isVisible()) {
    		getInterfaces().getChild(303, 3).interact("Make X");
    	}
    }
    public void continu() {
    	status = "Clicking Continue";
    		getInterfaces().getChild(159, 2).interact("Continue");
    }
    public void number() {
    	status = "Cooking";
    	getKeyboard().typeString("28");
    }
    public void continuer() {
    	status = "Clicking Continue";
    	getInterfaces().getChild(131, 3).interact("Continue");
    }
    public void wercooking() {
    	status = "We Are Cooking!";
    }
    private static final Area rangeA = new Area(2815,3444,2818,3439);
    private static final Area bankA = new Area(2806,3441,2812,3438);
	public int onLoop() throws InterruptedException {
        if (getColorPicker().isColorAt(573, 133, new Color(175, 176, 162))) {
        	status = "Toggling Run";
        	interfaces.getChild(548, 94).interact("Toggle Run");
        	return 500;
        }
        if (getBank().isOpen() && getInventory().getAmount(3142) == 0) {
        	withdraw();
        	return 500;
        }
        if (bankA.contains(myPlayer())) {
        	walktorange();
        	return 500;
        }
		if (getInventory().getAmount(3142) == 0 && rangeA.contains(myPlayer())) {
			bank();
			return 500;
		}
        if (getInventory().getAmount(3142) == 0) {
        	bank();
        	return 1500;
        }
        if (getInterfaces().getChild(548, 124).isVisible()) {
        	number();
        	return 2500;
        }
		if (getInterfaces().getChild(131, 3) != null) {
			continuer();
			return 500;
		}
		if (getInterfaces().getChild(159, 2) != null) {
			continu();
			return 500;
		}
		if (getInterfaces().getChild(303, 3) != null) {
			makeall();
			return 500;
		}
		if (rangeA.contains(myPlayer()) && getInventory().getAmount(3142) != 0 && !myPlayer().isAnimating()) {
			cook();
			return 500;
		}
		if (myPlayer().isAnimating()) {
			wercooking();
		}
		return 0;
	}
}

"So this is very high reqs script, you need to have a house with a kharyll teleport. Also you need to have lobsters in your bank."
"I myself have made 50m with this script this past week on my main account,..."

 

I don't think these quotes apply to this script so I have edited them out.

  • Author

"So this is very high reqs script, you need to have a house with a kharyll teleport. Also you need to have lobsters in your bank."

"I myself have made 50m with this script this past week on my main account,..."

 

I don't think these quotes apply to this script so I have edited them out.

thanks i literally just copied and pasted it form my other thread XD

  • 2 weeks later...
  • 4 months later...
  • 4 weeks later...

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.