Skip 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.

Wont work properly

Featured Replies

Hey, i'm using PPthief but it wont steal from farmes :/

 

import org.osbot.script.Script;
import org.osbot.script.ScriptManifest;

import javax.swing.JComboBox;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import java.awt.Color;
import java.awt.Graphics;

@ScriptManifest(name = "PPThief", author="PengPhin", version = 1.0D, info = "Only Supports upto Master Farmer")
class PPThief extends Script {

    enum State {
        INPUT, IDLE, ROBBING,
    }

    Npc[] Npcs = [
            new Npc("People level 1", [ 1, 2, 3, 4, 5 ] as int[]), // Add new NPCs here
            new Npc("Farmer    level 10", 7 as int[]),
            new Npc("Warrior Women    Level 25", 18 as int[]),
            new Npc("Rogues    Level 32", 187 as int[]),
            new Npc("Cave Goblins Level 36", [ 1822, 1823, 1824, 1825 ] as int[]),
            new Npc("Master Farmer Level 38", [ 2234, 2235] as int[]),
                ] as Npc[];

    State state = State.INPUT;
    Npc Npc = null;
def xp = 0
def amount = 0

    void onStart() {
        if (state == State.INPUT) {
            showInput();
        }
    }

    int onLoop() {
        switch(state) {
            case State.ROBBING:
                return steal();
        }
        return 1000 + gRandom(400, 800);
    }

    int steal() {
        def npc = closestNPC(Npc.getIds());
        if (npc != null) {
            if (selectEntityOption(npc, "Pickpocket")) {
                return 2000 + random(200, 500);
            }
        }
        return 1000 + random(200, 1000);
    }

    void onPaint(Graphics g) {
        g.setColor(new Color(0.1f, 0.1f, 0.1f, 0.7f));
        g.fillRect(3, 308, 513, 30);

        g.setColor(Color.GREEN);
        g.drawString("PengPhins Robber | Xp gained: ${xp * 43} | Succeeds: ${amount}", 10, 327);
    }

    void showInput() {
        JPanel panel = new JPanel();
        String[] Npcs = new String[this.Npcs.length];
        for(int i = 0; i < Npcs.length; i++) {
            Npcs[i] = this.Npcs[i].getName();
        }
        JComboBox combo = new JComboBox(Npcs);
        panel.add(combo);
        int ret = JOptionPane.showConfirmDialog(null, panel, "Select Npc", JOptionPane.OK_CANCEL_OPTION);
        if (ret == JOptionPane.OK_OPTION) {
            Npc = this.Npcs[combo.getSelectedIndex()];
            state = State.ROBBING;
        } else {
            showInput();
            //TODO: Add Banking, Food Support
        }
    }

void onMessage(String message) {
if (message == "You pick the Master Farmer's pocket.") {
xp++
amount++
}
}


    class Npc {

        private final String name;
        private final int[] ids;

        public Npc(String name, int[] ids) {
            this.name = name;
            this.ids = ids;
        }

        public String getName() {
            return name;
        }

        public int[] getIds() {
            return ids;
        }


    }

}

 

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.