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.

doesnt work anymore wtf

Featured Replies

hey bois, so i made my barbarian fisher & cooker script a day ago, then i used it for the night, everything worked well. I went to sleep and the next day started my script but this time it just did not want to fish? "interact with the fishing spot". i was like hmmm i didnt change anything before going to sleep... i tried few things in my script, but just for some reason couldnt get it to work. 10min ago i made a new script what simply clicks the fishing spot... 

import org.osbot.rs07.api.model.NPC;
import org.osbot.rs07.api.model.RS2Object;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
 
import java.awt.*;
 
@ScriptManifest(author = "gay", info = " ", name = " ", version = 0, logo = "")
public class main extends Script {
 
    @Override
    public void onStart() {
    }
 

	private enum State {
		FISH, WAIT
	};

	private State getState() {
		if (!myPlayer().isAnimating() && (!inventory.isFull()))
			return State.FISH;
		return State.WAIT;
	}

	@Override
	public int onLoop() throws InterruptedException {
		switch (getState()) {
		case FISH:
			//RS2Object fishingspot = getObjects().closest(1526);
			NPC fishspot = npcs.closest(1526);
			if (fishspot != null) {
				sleep(random(200, 1000));
				fishspot.interact("Lure");
			}
			break;
		case WAIT:
			break;
		}
		return random(200, 300);
	}

    @Override
    public void onExit() {
    }
 
    @Override
    public void onPaint(Graphics2D g) {
 
    }
 
}

but no! still doesnt work???, when i run this script it just stands there. does nothing???

3 minutes ago, alkku15 said:

hey bois, so i made my barbarian fisher & cooker script a day ago, then i used it for the night, everything worked well. I went to sleep and the next day started my script but this time it just did not want to fish? "interact with the fishing spot". i was like hmmm i didnt change anything before going to sleep... i tried few things in my script, but just for some reason couldnt get it to work. 10min ago i made a new script what simply clicks the fishing spot... 


import org.osbot.rs07.api.model.NPC;
import org.osbot.rs07.api.model.RS2Object;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
 
import java.awt.*;
 
@ScriptManifest(author = "gay", info = " ", name = " ", version = 0, logo = "")
public class main extends Script {
 
    @Override
    public void onStart() {
    }
 

	private enum State {
		FISH, WAIT
	};

	private State getState() {
		if (!myPlayer().isAnimating() && (!inventory.isFull()))
			return State.FISH;
		return State.WAIT;
	}

	@Override
	public int onLoop() throws InterruptedException {
		switch (getState()) {
		case FISH:
			//RS2Object fishingspot = getObjects().closest(1526);
			NPC fishspot = npcs.closest(1526);
			if (fishspot != null) {
				sleep(random(200, 1000));
				fishspot.interact("Lure");
			}
			break;
		case WAIT:
			break;
		}
		return random(200, 300);
	}

    @Override
    public void onExit() {
    }
 
    @Override
    public void onPaint(Graphics2D g) {
 
    }
 
}

but no! still doesnt work???, when i run this script it just stands there. does nothing???

update broke the client. happens every week buddy

  • Author
4 minutes ago, D Bolter said:

update broke the client. happens every week buddy

ah alright thanks my man

Also, you shouldn't use IDs for spots..

 

NPC fishspot = npcs.closest(1526);

use the name instead

  • Alek locked this topic
Guest
This topic is now closed to further replies.

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.