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.

Interact() Method Not Working?

Featured Replies

Hey,

 

So I made a script and it worked perfectly until OSBot updated to 2.3.66. What my script did is that it used to pick up things and bank. Now, where it should pick up, instead, the mouse hovers over the item and moves away and does not click. Even my localWalker does not work anymore.

 

I made the below sample script to see if was just a problem with my individual bot script:

package Test;

import org.osbot.rs07.api.LocalWalker;
import org.osbot.rs07.api.model.Item;
import org.osbot.rs07.api.model.NPC;
import org.osbot.rs07.api.model.RS2Object;
import org.osbot.rs07.api.ui.Message;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import org.osbot.rs07.utility.Area;

import java.awt.*;

@ScriptManifest(author = "Doomdude70", info = "Picks wheat", name = "Test", version = 1.0, logo = "")
public class NPCs extends Script {


	@Override
	public void onStart() {
		log("Start");
	}

	private enum State {
		PICKWHEAT;
	}
	
	private State getState() {
		return State.PICKWHEAT;
	}
	

	@Override
	public int onLoop() throws InterruptedException {
		switch (getState()) {
		case PICKWHEAT:
			RS2Object wheat = objects.closest("Wheat");
			wheat.interact("Pick");
		break;
		}
		

		return random(200, 300);
	}

	@Override
	public void onExit() {
		log("Exit");
	}

	@Override
	public void onPaint(Graphics2D g) {

	}

}

This sample script did not work either. The mouse hovered over the wheat and quickly moved away again without clicking.

 

So, what's the deal? What should I do? tongue.png

try this:

EntityDestination ED = new EntityDestination(bot, wheat);
mouse.click(ED);

Put it here:

case PICKWHEAT:
			RS2Object wheat = objects.closest("Wheat");
			// PUT IT HERE
		break;
  • Author

i believe there was something wrong with 2.3.66.

 

I suggest you re-install osbot.

 

Thanks xD I should have tried that earlier, I reinstalled OSBot and it started working perfectly again.

 

On the website when you go to download it says OSBot version is 2.33.65. Seems like there IS some sort of problem with 2.33.66.

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.