Skip 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.

[2.3.69+] getSuitablePoint bug

Featured Replies

OSBot version number: 2.3.69 & 2.3.70

Description of the bug/error:

The method GraphicUtilities#getSuitablePoint grabs points that are not located on the provided entity model

Instructions how to replicate the bug/error:

Display 'suitable points' for entities

(IF APPLICABLE) SSCCE that causes the bug/error:

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Point;
import org.osbot.rs07.api.model.RS2Object;
import org.osbot.rs07.api.util.GraphicUtilities;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;

/**
 *
 * @author FrostBug
 */
@ScriptManifest(author = "FrostBug", info = "Testing script", logo = "", name = "Testing", version = 0)
public class ScriptTest extends Script {

	private Point point;
	
	@Override
	public int onLoop() throws InterruptedException {
		RS2Object tree = objects.closest("Oak");
		this.point = GraphicUtilities.getSuitablePointFor(bot, tree.getGridX(), tree.getGridY(), tree.getZ(), tree.getModel());
		return 100;
	}

	@Override
	public void onPaint(Graphics2D g) {
		g.setColor(Color.WHITE);
		g.fillOval(this.point.x - 2, this.point.y - 2, 4, 4);
	}
	
}



(IF APPLICABLE) Script name ran causing the bug/error. Optionally include relevant parts of source code:

All

(IF APPLICABLE) Screenshots:

3422063168998be7c8f366f887c546b6.gif

I'm aware of this issue already and .71 is being developed primarily with suitable points in mind. This is well reported so I'm going to move this to the Approved section and may revisit this topic to get some more information if I need it.

I'm going to go out on a limb and assume this was fixed in .71. I did some pretty thorough tests and I'm fairly confident that this is resolved.

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.