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.

how to setup a script on eclipse

Featured Replies

hello, I tried to use a old version of eclipse that I know how to write scripts on but my JRE isn't compatible with it...

I also tried the modern eclipse IDE and idk how to get started. plzz help.

image.png.a7b7f67d9d091207d9c6fb11a7bf6869.png

  • Author
On 1/16/2025 at 5:39 PM, Czar said:

This one needs to be Java 8, be careful it says JavaSE-21 there, need to right click project -> configure build path -> select jre system library -> edit... -> java 8 or java 1.8

I love how Czar takes me under his wing regardless of a decade year long "mutial relationship" :))) ty Czar, I wasn't sure if I needed JDK 8 or if JRE 21 would have worked but I will give it a shot. tytytyty

EDIT: Java 1.8 Worked ty !

Edited by Cmontryme

  • Author

when I try to "Run As" it tells me to "Select Java Application" pls help idk how to compile my script

Untitled.png

Edited by Cmontryme

  • Author
1 hour ago, skillerkidos1 said:

 

I followed every step of the guide exactly and still nothing shows in my scripts folder or in my OSBot client scripts

12 hours ago, Cmontryme said:

I followed every step of the guide exactly and still nothing shows in my scripts folder or in my OSBot client scripts

add me on discord

  • Author

Could someone figure out how to setup a script skeleton and compile it in the modern version of eclipse? I am going to have to dodge this IntelliJ trial but I really like the eclipse look. plzzzzz

On 1/20/2025 at 7:26 AM, Cmontryme said:

Could someone figure out how to setup a script skeleton and compile it in the modern version of eclipse? I am going to have to dodge this IntelliJ trial but I really like the eclipse look. plzzzzz

Intellij is free, just make sure you get the community edition.
Or if you stick with Eclipse, watch a few videos on how to compile java code to a jar file.

make sure you main.java looks a bit like this:

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

import java.awt.*;


@ScriptManifest(name = "Skeleton", author = "Wack", version = 1.0, info = "", logo = "") 
public class Skeleton extends Script {


    @Override
    public void onStart() {
        //Code here will execute at the start of the script only ones!
        //often used for guis etc.
    }
  
    @Override
    public void onExit() {
        //Code here will execute after the script gets stopped
    }

    @Override
    public int onLoop() {  
        //here goes your script!
        //e.g.
		if (!Banks.GRAND_EXCHANGE.contain(myPosition())) {
			getWalking().webWalk(Banks.GRAND_EXCHANGE);
		}
       return 100; //The amount of time in milliseconds before the loop starts over 600ms is one game tick ^^
    }

    @Override
    public void onPaint(Graphics2D g) {
        //This is where you will put your code for paint(s)
    }
}

 

Just adding this maybe usefull?

 

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.