Jump to content

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

Recommended Posts

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();
    public void onStart() {
    public void onExit() {
    public int onLoop() throws InterruptedException {
        GroundItem a = groundItems.closest(exists);
        if (a != null && a.exists()) {
        return 100;
    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...



Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...