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.

Quick question.

Featured Replies

I got my local script to show by exporting it to a jar. My question is do I have to export to a jar every time I want to test my local script? How can I run it in the IDE? 

 

 

It doesn't take that long to export, just have the export path set up so it exports to the scripts folder. You can't run your script in your IDE,  OSBot looks for local scripts in the specified directory so either way you're going to have to export your jar.

  • Author

It doesn't take that long to export, just have the export path set up so it exports to the scripts folder. You can't run your script in your IDE,  OSBot looks for local scripts in the specified directory so either way you're going to have to export your jar.

 

I replace the jar but when I refresh my script list, it still says "Version: 2" (It's supposed to say version 3).

I replace the jar but when I refresh my script list, it still says "Version: 2" (It's supposed to say version 3).

 

Be sure to delete the old jar and then replace it with the new one, make sure to save changes before you compile into jar and also refresh the list (which you are doing). 

  • Author

Be sure to delete the old jar and then replace it with the new one, make sure to save changes before you compile into jar and also refresh the list (which you are doing). 

 

Steps I took:

giphy.gif

Be sure to delete the old jar and then replace it with the new one, make sure to save changes before you compile into jar and also refresh the list (which you are doing). 

 

See post above, had to edit something.

Edited by ScriptingGuy

Be sure to delete the old jar and then replace it with the new one, make sure to save changes before you compile into jar and also refresh the list (which you are doing).

You don't have to delete the jar nor to restart the client.

Everything seems to be in order, try closing out of OSBot, deleting the script in the scripts folder and THEN making the jar, see if that makes a difference 

  • Author

You don't have to delete the jar nor to restart the client.

 

"Jar" as in my script jar, not OSBot.

 

Refer to my gif above and notify me if I did anything wrong, thanks. My script doesn't update until I restart OSBot. 

You don't have to delete the jar nor to restart the client.

 

I personally don't, as the steps he mentioned seem to work fine for me (although I don't use eclipse), it's something I recommended he try  

  • Author

Everything seems to be in order, try closing out of OSBot, deleting the script in the scripts folder and THEN making the jar, see if that makes a difference 

 

 

That's what I'm trying to avoid. tongue.png

 

Update the script WITHOUT closing OSBot.

 

-----

 

Currently, only closing OSBot updates the script. 

Edited by ScriptingGuy

That's what I'm trying to avoid. tongue.png

 

Update the script WITHOUT closing OSBot.

 

-----

 

Currently, only closing OSBot updates the script. 

 

Perhaps it's an issue with the new version of the client then as I haven't tried this with the newest version

  • Author

Perhaps it's an issue with the new version of the client then as I haven't tried this with the newest version

 

Thanks for the help, I'll just wait for the newest update.

 

----

 

I don't want to create another thread so I'll post my other question here.

I'm making a flax spinner and my SpinFlax.java class executes even while I'm spinning the flax. Getting the players animation to detect if I'm spinning or not will not work because it will switch between -1 (player standing normally) and 1563 (player spinning) during the spinning process. 

 

Anybody have a suggestion to prevent my player from spinning flax while I'm already doing it?

public class SpinFlax extends Task {

	public SpinFlax(Script s) {
		super(s);
		// TODO Auto-generated constructor stub
	}

	@Override
	public boolean activate() {
		RS2Object spinningWheel = s.objects.closest("Spinning wheel");
		return s.getInventory().contains("Flax")
				&& s.myPlayer().getAnimation() != 1563 && spinningWheel != null;
	}

	@Override
	public void execute() throws InterruptedException {
		//EXECUTE STUFF

	}
} 

 

 

Also, is there a way to detect if an object is reachable to my player? (Nothing blocking my way from interacting with it, like a closed door?)

Edited by ScriptingGuy

"Jar" as in my script jar, not OSBot.

Refer to my gif above and notify me if I did anything wrong, thanks. My script doesn't update until I restart OSBot.

I believe the jar was already defined by you as the script jar. Thus making me talking about the script jar.

Thanks for the help, I'll just wait for the newest update.

----

I don't want to create another thread so I'll post my other question here.

I'm making a flax spinner and my SpinFlax.java class executes even while I'm spinning the flax. Getting the players animation to detect if I'm spinning or not will not work because it will switch between -1 (player standing normally) and 1563 (player spinning) during the spinning process.

Anybody have a suggestion to prevent my player from spinning flax while I'm already doing it?

public class SpinFlax extends Task {	public SpinFlax(Script s) {		super(s);		// TODO Auto-generated constructor stub	}	@Override	public boolean activate() {		RS2Object spinningWheel = s.objects.closest("Spinning wheel");		return s.getInventory().contains("Flax")				&& s.myPlayer().getAnimation() != 1563 && spinningWheel != null;	}	@Override	public void execute() throws InterruptedException {		//EXECUTE STUFF	}}

Also, is there a way to detect if an object is reachable to my player? (Nothing blocking my way from interacting with it, like a closed door?)

Prevent reusing - conditional sleep until either level up widget is visible or no flax left

Reachability - getMap().canReach(entity)

Did you refresh the script list? I can't see in the gif properly because I'm on my phone

  • Author

Prevent reusing - conditional sleep until either level up widget is visible or no flax left

Reachability - getMap().canReach(entity)

Did you refresh the script list? I can't see in the gif properly because I'm on my phone

 

Yes I refreshed it.

 

Edited by ScriptingGuy

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.