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.

Interacting with position

Featured Replies

		Bot bot = getBot();
		InteractionEvent IE = new InteractionEvent(bot, Mine[0], "Mine");
		IE.execute();
[ERROR][Bot #1][06/21 03:43:00 AM]: Error in script executor!
java.lang.NullPointerException
	at org.osbot.rs07.event.InteractionEvent.execute(InteractionEvent.java:264)
	at GameMiner.walkMine(GameMiner.java:43)
	at GameMiner.onLoop(GameMiner.java:72)
	at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(ScriptExecutor.java:99)
	at java.lang.Thread.run(Unknown Source)

Hey. I'm trying to make a method that interacts with a position. What I would really want to do is create an Entity from a position. But I don't think that's possible (?). So I browsed through the API and found InteractionEvent. Now, it looks like it would do exactly what I want. 

 

The thing is, I have no idea what "bot" is. No idea how to use, or why to use it. I'm pretty sure, that's why I get error, and I'd really appreciate if someone could explain it to me. 

		Bot bot = getBot();
		InteractionEvent IE = new InteractionEvent(bot, Mine[0], "Mine");
		IE.execute();
[ERROR][Bot #1][06/21 03:43:00 AM]: Error in script executor!
java.lang.NullPointerException
	at org.osbot.rs07.event.InteractionEvent.execute(InteractionEvent.java:264)
	at GameMiner.walkMine(GameMiner.java:43)
	at GameMiner.onLoop(GameMiner.java:72)
	at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(ScriptExecutor.java:99)
	at java.lang.Thread.run(Unknown Source)

Hey. I'm trying to make a method that interacts with a position. What I would really want to do is create an Entity from a position. But I don't think that's possible (?). So I browsed through the API and found InteractionEvent. Now, it looks like it would do exactly what I want. 

 

The thing is, I have no idea what "bot" is. No idea how to use, or why to use it. I'm pretty sure, that's why I get error, and I'd really appreciate if someone could explain it to me.

It's a problem with InteractionEvent that makes it unusable. I've already reported this issue in the developer tracker. To my knowledge, it hasn't been looked at yet

If you go to the position class in the API, there's a interact method, why don't you use that??

  • Author
Bot bot = getBot();
Position pos = new Position(x,y,z);
pos.interact(bot, "Mine");

Like this? Also since I have no clue about what Bot actually is, is that part also Ok?

Bot bot = getBot();
Position pos = new Position(x,y,z);
pos.interact(bot, "Mine");

Like this? Also since I have no clue about what Bot actually is, is that part also Ok?

 

yes sir :p

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.