Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Question How to interact with chatbox interface OSR

Joined
Apr 13, 2015
Messages
31
Sorry if the title is a little vague, as I had no idea what to call it.

So in OSR when you click on a furnace to choose which bar to make a interface pops up in the chatbox area with all of the bars you can choose from. I know I can interact with the interface to tell it to make x of the item I want to make, but my question is how would I go about telling it how many to make once it asks?
 
I've been called a god before.
Joined
Aug 5, 2014
Messages
3,212
Sorry if the title is a little vague, as I had no idea what to call it.

So in OSR when you click on a furnace to choose which bar to make a interface pops up in the chatbox area with all of the bars you can choose from. I know I can interact with the interface to tell it to make x of the item I want to make, but my question is how would I go about telling it how many to make once it asks?
Do you have to write the number or right-click and select the number
 
I've been called a god before.
Joined
Aug 5, 2014
Messages
3,212
I have to write the number.

Code:
    @Override
    public void onMessageReceived(MessageEvent messageEvent) {
        String msg = messageEvent.getMessage();
        if (msg.contains("Whatever is says: Write the quantitiy poop") && messageEvent.getSender().isEmpty()) {
            Keyboard.type("" + number, true);
        }
}
 
Joined
Dec 10, 2014
Messages
3,332
Code:
    @Override
    public void onMessageReceived(MessageEvent messageEvent) {
        String msg = messageEvent.getMessage();
        if (msg.contains("Whatever is says: Write the quantitiy poop") && messageEvent.getSender().isEmpty()) {
            Keyboard.type("" + number, true);
        }
}
iirc it's not an actual chatbox message, rather, the interface covers the chatbox.
 
Joined
Apr 13, 2015
Messages
31
Code:
    @Override
    public void onMessageReceived(MessageEvent messageEvent) {
        String msg = messageEvent.getMessage();
        if (msg.contains("Whatever is says: Write the quantitiy poop") && messageEvent.getSender().isEmpty()) {
            Keyboard.type("" + number, true);
        }
}
Thank you I will try this out :D

iirc it's not an actual chatbox message, rather, the interface covers the chatbox.

I believe you are correct, but it is worth a shot.
 
I've been called a god before.
Joined
Aug 5, 2014
Messages
3,212
Thank you I will try this out :D



I believe you are correct, but it is worth a shot.
Code:
Interface write = Interfaces.newQuery().texts("text it asks").result().first();

if(write != null && write.isVisible()){
Keyboard.type("" + number, true);
}


Sent from my iPhone using Tapatalk
 
Top