Jump to content

Chat Interfaces


Single Core

Recommended Posts

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
  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...