1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question How to interact with chatbox interface OSR

Discussion in 'Developer Support' started by valithor, Aug 14, 2015.

  1. valithor

    Joined:
    Apr 13, 2015
    Messages:
    31
    Likes Received:
    10
    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?
     
  2. Qosmiof2

    Qosmiof2 I've been called a god before.

    Joined:
    Aug 5, 2014
    Messages:
    3,212
    Likes Received:
    924
    Do you have to write the number or right-click and select the number
     
  3. valithor

    Joined:
    Apr 13, 2015
    Messages:
    31
    Likes Received:
    10
    I have to write the number.
     
  4. Qosmiof2

    Qosmiof2 I've been called a god before.

    Joined:
    Aug 5, 2014
    Messages:
    3,212
    Likes Received:
    924
    Code (Text):
    1.     @Override
    2.     public void onMessageReceived(MessageEvent messageEvent) {
    3.         String msg = messageEvent.getMessage();
    4.         if (msg.contains("Whatever is says: Write the quantitiy poop") && messageEvent.getSender().isEmpty()) {
    5.             Keyboard.type("" + number, true);
    6.         }
    7. }
     
  5. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,198
    Likes Received:
    1,041
    iirc it's not an actual chatbox message, rather, the interface covers the chatbox.
     
    Qosmiof2 likes this.
  6. valithor

    Joined:
    Apr 13, 2015
    Messages:
    31
    Likes Received:
    10
    Thank you I will try this out :D

    I believe you are correct, but it is worth a shot.
     
  7. Qosmiof2

    Qosmiof2 I've been called a god before.

    Joined:
    Aug 5, 2014
    Messages:
    3,212
    Likes Received:
    924
    Well rs3 probably. But i remember the osrs had chatbox input i think.


    Sent from my iPhone using Tapatalk
     
  8. Qosmiof2

    Qosmiof2 I've been called a god before.

    Joined:
    Aug 5, 2014
    Messages:
    3,212
    Likes Received:
    924
    Code (Text):
    1. Interface write = Interfaces.newQuery().texts("text it asks").result().first();
    2.  
    3. if(write != null && write.isVisible()){
    4. Keyboard.type("" + number, true);
    5. }
    6.  

    Sent from my iPhone using Tapatalk
     

Share This Page

Loading...