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.

What is wrong with this line? It works for others but not me!

Featured Replies

package Looter;
 
import org.osbot.rs07.api.filter.Filter;
import org.osbot.rs07.api.model.GroundItem;
import org.osbot.rs07.script.Script;
 
import org.osbot.rs07.script.ScriptManifest;
 
import java.awt.*;
 
@ScriptManifest(name = "Looter", author = "First script...", version = 1.0, info = "Looter", logo = "")
 
public class main extends Script {
	
    private Filter<GroundItem> exists = a --> exists();
 
    @Override
 
    public void onStart() {
    }
    @Override
 
    public void onExit() {
    }
 
    @Override
 
    public int onLoop() throws InterruptedException {
 
        GroundItem a = groundItems.closest(exists);
        if (a != null && a.exists()) {
            a.interact("Take");
            sleep(2000);
        }
 
        return 100;
 
    }
 
    @Override
 
    public void onPaint(Graphics2D g) {
 
    }
 
}

Gives me the error below, but works for other people and compiles just fine. I thought it was written properly, and it is, but this script isn't compiling for me...

Error:

https://gyazo.com/fa635ed256c8cc8c74d2dd4d7b375285

Any reason the line you posted in the source is 

private Filter<GroundItem> exists = a --> exists();

And the line you posted in the gyazo is 

private Filter<GroundItem> exists = a --> a.exists();

Im still learning about scripting but if you have one version with "exists();" and another with "a.exists();" 

You might be sending the working code to your friends and trying the compile to broken one on your computer?

 

EDIT** Yeah iv been looking at this trying to fix for a half hour but my experience is very low. I hope someone can come here and give a solution. It would be nice to know what the issue is as a fellow beginner.

Edited by thedevilhacker

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.