tivo444 Posted July 12, 2014 Share Posted July 12, 2014 (edited) Hello. I'm trying to make it print the interface name In this case, the title of a quest. I want it to print out to a text, QUESTNAME.txt (Black Knight's Fortress.txt, Dragon Slayer.txt) etc; It only prints out as ".txt" However, the code doesn't seem to work. Even though it should. the parent and child ID's are all correct, the interface ID is correct. Why isn't this working? Thanks. Edited July 12, 2014 by tivo444 Link to comment Share on other sites More sharing options...
Apaec Posted July 12, 2014 Share Posted July 12, 2014 this.interfaces.getChild(275,2) ? Link to comment Share on other sites More sharing options...
tivo444 Posted July 12, 2014 Author Share Posted July 12, 2014 this.interfaces.getChild(275,2) ? It's now printing out: org.osbot.rs07.api.ui.RS2InterfaceChild@19a61368.txt Link to comment Share on other sites More sharing options...
Swizzbeat Posted July 12, 2014 Share Posted July 12, 2014 If you're making a quester use VARPS. If not you need to grab the interface child and call the #getMessage() method. 2 Link to comment Share on other sites More sharing options...
Apaec Posted July 12, 2014 Share Posted July 12, 2014 It's now printing out: org.osbot.rs07.api.ui.RS2InterfaceChild@19a61368.txt That means it's registering the interface, now all u gotta do is pull the text from it Link to comment Share on other sites More sharing options...
tivo444 Posted July 12, 2014 Author Share Posted July 12, 2014 That means it's registering the interface, now all u gotta do is pull the text from it Ooohhhh you're right! Thank you let me try that! Link to comment Share on other sites More sharing options...
Mysteryy Posted July 12, 2014 Share Posted July 12, 2014 Ooohhhh you're right! Thank you let me try that! Dont forget to null check properly on stored variables, instead of pulling a new instance every time you call it. ^_^ Link to comment Share on other sites More sharing options...