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.

What is the problem in my code?

Featured Replies

Sorry for the length of the title, but do not find the problem itself.

package woodcutter;

import java.awt.Graphics;

import org.osbot.rs07.api.map.Area;
import org.osbot.rs07.api.model.Entity;
import org.osbot.rs07.api.model.NPC;
import org.osbot.rs07.api.model.Player;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;

@ScriptManifest(author = "TrainuX", info = "to learn", name = "WC Test", version = 0.1, logo = "")
public class wc extends Script{
	
	final Area area1 = new Area(3097, 3112, 3087, 3100);

	public void interactCustom(Entity entity, String action){
	    if(entity.isVisible())
	        entity.interact(action);
	    else
	        getCamera().toEntity(entity);
	}
	
	@Override
	public void onStart(){
		log("Start!");
	}
	

	@Override
	public int onLoop() throws InterruptedException{
		log("Running...");
		
		NPC npc1 = npcs.closest(3308);
		Player player = myPlayer();
		
		if(area1.contains(player)) {
			log("Talk to NPC");
			interactCustom(npc1, "Talk-to");
		}else{
			log("Not here");
		}
		
		return 0;
	}

	@Override
	public void onExit(){
		log("Stop!");
	}
	
	public void onPaint(Graphics g){
		
	}

}

According to everything I've read, everything is well stated and I enclose the log messages

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.