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.

How to build new rooms in player owned house?

Featured Replies

Hey I am working on a construction script and want to know how to create new rooms automatically. Sometimes the rooms would get in the way and would have to be deleted or the portal room cannot be deleted so there are obstacles to handle. Also when it interacts with the door hotspots, how do you scroll down the list of rooms? Do I use mouse position and mouse click?

  • Author

Thanks for telling me! Did not know about that super convenient update!

  • Author

@Apaec Whenever I interact with the house viewer to add a room, the interact function would just pop up the option but not actually click on the "Add room" option. Here is my code:

RS2Widget createRoom = getWidgets().get(422, 5, 99);
if (createRoom != null && createRoom.interact("Add room")){

 

image.png

2 hours ago, R3G3N said:

@Apaec Whenever I interact with the house viewer to add a room, the interact function would just pop up the option but not actually click on the "Add room" option. Here is my code:


RS2Widget createRoom = getWidgets().get(422, 5, 99);
if (createRoom != null && createRoom.interact("Add room")){

 

image.png

Try doing something like, 

RS2Widget createRoom = getWidgets().get(422, 5, 99);
if (createRoom != null) {
	if (createRoom.interact("Add room")
		Sleep.sleepUntil(() -> someSortOfCheckToSeeIfTheRoomIsCreated, 1500, 250); //Or if you don't have the Sleep class for this you can do
		new ConditionalSleep(1500, 250) {
			public boolean condition() {
				return someSortOfCheckToSeeIfTheRoomIsCreated; //could be wrong on the syntax of this but it gives you an idea!
			}
		}
}

Also one thing I'd advice against is using widget ids as they can often change, so using text within the interface is always better!

Using the containingText# function

https://osbot.org/api/org/osbot/rs07/api/Widgets.html

  • Author

There are no text widgets and that sleep condition is similar to what I have after I interact with the widget. My problem is that the interaction does not go through and just leaves the option menu hanging. I don't particularly have trouble with widgets in general. It is only this particular one that has a different behavior.

image.png.245f7db65f7462920824d7f7f4689b1a.png

These grid boxes are the widgets. They do not have any texts so I based them off their widget ids.

2 hours ago, R3G3N said:

There are no text widgets and that sleep condition is similar to what I have after I interact with the widget. My problem is that the interaction does not go through and just leaves the option menu hanging. I don't particularly have trouble with widgets in general. It is only this particular one that has a different behavior.

image.png.245f7db65f7462920824d7f7f4689b1a.png

These grid boxes are the widgets. They do not have any texts so I based them off their widget ids.

If you use the Widget debugger, you will find out there are multiple ways on how to detect a widget. You can also use position for example.

2 hours ago, R3G3N said:

There are no text widgets and that sleep condition is similar to what I have after I interact with the widget. My problem is that the interaction does not go through and just leaves the option menu hanging. I don't particularly have trouble with widgets in general. It is only this particular one that has a different behavior.

image.png.245f7db65f7462920824d7f7f4689b1a.png

These grid boxes are the widgets. They do not have any texts so I based them off their widget ids.

If it only has one option, can't you just left-click it using a WidgetDestination

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.