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.

Chat Interfaces

Featured Replies

4b87057fd0.png

 

 

Code: 

RS2InterfaceChild face = script.getInterfaces().getChild(137, 4);
if (face != null) {
	if (face.getMessage() != null) {
		script.log("Message: " + face.getMessage());
	}
}

Output: 

9aacbfe417.png

 

 

My question: Why doesn't it return: "Welcome to RuneScape." ? 

 

 

 

Thanks in advance - Single Core

 

 

Solution: 

RS2InterfaceChild face = script.getInterfaces().getChild(137, 2);
		if (face != null) {
			RS2InterfaceChild[] children = face.getChildren();
			for(int i = 0; i < 16; i++) {
				if(children[i] != null) {
					if(children[i].getMessage() != null) {
						script.log("Child: [137, 2] Child: " + i + " | Message: " + children[i].getMessage());
					}
				}
			}
		}

Found it myself, can be closed by a mod :)

Edited by Single Core

There was a good explanation for this but I forgot what it was. Hopefully someone remembers why the chat can't be read form interfaces. 

because the yellow interface is used for action buttons.

The blue interface contains all of the chat messages in HTML format - <br>

  • Author

Happy you found your solution but don't forget you can always get messages with the onMessage method listener.

 

Yeah but then you can't interact with them :)

because the yellow interface is used for action buttons.

The blue interface contains all of the chat messages in HTML format - <br>

where you hear this from?

Wrong interface, they're grandchildren of 137, 2

c295078dca.png

 

and sup singlecore, im parny_fan2003 from para :)

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.