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.

{Beginner} OsBot Local script not appearing

Featured Replies

I am new to scripting having troubles getting my script sent to my OsBot application. IntelliJ is sending the script to C:\Users\Me\OSBot\Scripts but this is not showing up on the OsBot application. Yes I have tried refreshing. Any feedback would be very helpful. ty

  • Author
1 minute ago, FuryShark said:

Do you have the script manifest 

 

I do have this skeleton on my script, i have one that is just the skeleton but it wont send. My problem is that the scripts are located in different files possible? Or something could be wrong on my script? Kind of clueless.

Take a look at this example script

Spoiler

import org.osbot.rs07.api.map.Area;
import org.osbot.rs07.api.map.constants.Banks;
import org.osbot.rs07.api.model.NPC;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import org.osbot.rs07.utility.ConditionalSleep;


@ScriptManifest(author = "Imthabawse", info = "Catches Shrimps and Banks when full", logo = "", name = "Shrimper", version = 1)

public class Shrimper extends Script {


    private Area fishingArea = new Area(3239, 3142, 3245, 3155);



    @Override
    public int onLoop() throws InterruptedException {
    if(canFish()) {
        catchShrimp();
    }else{
        bankShrimp();
    }
        return(random(500,750));
    }



    private boolean canFish() {
        return !getInventory().isFull() && getInventory().contains("Small fishing net") && !getBank().isOpen();
    }

    private boolean readyToCatch() {
        return !myPlayer().isAnimating() && fishingArea.contains(myPlayer());
    }

    private void catchShrimp() throws InterruptedException {
        NPC netSpot = getNpcs().closest(fishingArea,"Fishing spot");

        if(!getDialogues().isPendingContinuation() && readyToCatch() && netSpot != null && netSpot.interact("Net")) {
            log("Shrimpin!");
            sleep(random(1200,1350));
            getMouse().moveOutsideScreen();
            new ConditionalSleep(5000) {
                @Override
                public boolean condition() {
                    return myPlayer().isAnimating();
                }
            }.sleep();
        }else if(!fishingArea.contains(myPlayer())) {
            log("Walking back to fishing area..");
            getWalking().webWalk(fishingArea);
        }else if(getDialogues().isPendingContinuation()) {
            sleep(random(550,750));
            getDialogues().clickContinue();
        }
    }


    private void bankShrimp() throws InterruptedException {
        if(getInventory().isFull() && !myPlayer().isAnimating() && !Banks.LUMBRIDGE_UPPER.contains(myPlayer())) {
            log("Walking to bank..");
            getWalking().webWalk(Banks.LUMBRIDGE_UPPER);
        }else if(!getBank().isOpen() && Banks.LUMBRIDGE_UPPER.contains(myPlayer())) {
            log("Banking Shrimps..");
            getBank().open();
        }else if(getInventory().contains("Raw shrimps","Raw anchovies")) {
            getBank().depositAll("Raw shrimps","Raw anchovies");
        }else if(!getInventory().contains("Raw shrimps","Raw anchovies")) {
            getBank().close();
        }
    }
}

Make sure you have all the right imports and also in Project structure under Artifacts you have your JAR Output directory set to OSbot\Scripts 

If you need further help check this out:

Will teach you everything you need to get started. Hope this helps :)

  • Author

Solved - had to uninstall and reinstall OsBot. I think that I had multiple copies of OsBot making it complicated for me. Thanks for all the messages they actually did help me. :)

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.