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.

T3 Pizza-baser

Featured Replies

Doesn't work for me anymore mate. Just sits and idle. No action :(

  • 3 months later...

exp and gp an hour?

  • 1 month later...

Ideas for the future:

  • Antiban
  • When finished making pizza bases, sell bases, pots and water then buys flour and buckets of water back in GE

Edited by urfthe420

  • 4 weeks later...
  • 2 months later...
  • 1 year later...

thanks for sharing the source,

i made a mod for it.. i was too lazy to cut diamonds into bolt tips

so made this

hope it helps someone

since it takes about 1:20 to complete the inv, i added simple antiban, move screen after making all, and moves the mouse outside of screen, to appear more afk

package Skeleton;

import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import java.text.DecimalFormat;
import org.osbot.rs07.api.ui.RS2Widget;

import java.awt.*;
import java.util.concurrent.TimeUnit;

@ScriptManifest(author = "Tw3nty - mod by iz0n", info = "cuts diamonds to bolt tips", name = "diamond cutter", version = 0.2, logo = "")
public class T3Pizzabaser extends Script {

    private long timeBegan;
    private long timeRan;
    private int itemsMade;
    private int itemsMadehr;

    @Override
    public void onStart() {
        log("Let's make some motherfucking Diamond Bolt Tips!");
        timeBegan = System.currentTimeMillis();
        itemsMade = 0;
    }

    private enum State {
        MAKE, BANK, IDLE, STOP;
    }

    private State getState() throws InterruptedException {
        if (inventory.contains("Chisel") && inventory.contains("Diamond")) {
            return State.MAKE;
        }
        else if (bank.open()) {
            if (bank.contains("Chisel") && bank.contains("Diamond")) {
                return State.BANK;
            }
            else {
                return State.STOP;
            }
        }
        else {
            return State.IDLE;
        }
    }

    @Override
    public int onLoop() throws InterruptedException {
        switch (getState()) {
            case MAKE:
                if (bank.isOpen()) {
                	getBank().close();
                    sleep(random(110, 320));
                }
                log("Case == MAKE");
                inventory.interact("Use", "Chisel");
                log("Interacting BoW...");
                sleep(random(110, 320));
                if (inventory.isItemSelected()) {
                    inventory.interact("Use", "Diamond");
                    log("Interacting PoF...");
                    sleep(random(970, 1975));
                }
                if (getDialogues().isPendingOption()) {

                    RS2Widget pizzaBase = widgets.get(309,2);
                    if (pizzaBase != null) {
                        pizzaBase.interact("Make All");
                        log("Interacting widget...");
                        camera.movePitch(random (20,130)+15);
                        camera.moveYaw(random (20,130)+25);
                        mouse.moveOutsideScreen();
                        sleep(random(83000, 85000));
                        itemsMade += 27;
                    }
                }
                break;
            case BANK:
                log("Case == BANK");
                if (inventory.contains("Chisel", "Diamond")) {
                    bank.depositAllExcept("Chisel","Diamond");
                    sleep(random(110, 320));
                }
                else if (!inventory.isEmpty()) {
                    bank.depositAllExcept("Chisel");
                    sleep(random(110, 320));
                }
                if (!inventory.contains("Diamond")) {
                    bank.withdraw("Diamond", 27);
                    sleep(random(110, 320));
                }
                
                break;
            case IDLE:
                sleep (random(9100,11320));
                break;
            case STOP:
                stop();
                break;
        }
        return random(200, 300);
    }

    @Override
    public void onExit() {
        log("ENJOY Diamond YOUR BOLT TIPS!");
    }

    @Override
    public void onPaint(Graphics2D g) {
        timeRan = System.currentTimeMillis() - this.timeBegan;
        itemsMadehr = (int)(itemsMade / ((System.currentTimeMillis() - timeBegan) / 3600000.0D));
        g.drawString("Time ran: " + ft(timeRan), 10, 35);
        DecimalFormat df = new DecimalFormat("#");
        g.drawString("Diamonds cut: " + df.format(itemsMade), 10,50);
        g.drawString("Diamonds per hour: " + df.format(itemsMadehr), 10,65);
    }

    private String ft(long duration)
    {
        String res = "";
        long days = TimeUnit.MILLISECONDS.toDays(duration);
        long hours = TimeUnit.MILLISECONDS.toHours(duration)
                - TimeUnit.DAYS.toHours(TimeUnit.MILLISECONDS.toDays(duration));
        long minutes = TimeUnit.MILLISECONDS.toMinutes(duration)
                - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS
                .toHours(duration));
        long seconds = TimeUnit.MILLISECONDS.toSeconds(duration)
                - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS
                .toMinutes(duration));
        if (days == 0) {
            res = (hours + ":" + minutes + ":" + seconds);
        } else {
            res = (days + ":" + hours + ":" + minutes + ":" + seconds);
        }
        return res;
    }
} 

 

Edited by iz0n

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.