domp Posted February 8, 2017 Share Posted February 8, 2017 https://osbot.org/api/org/osbot/rs07/api/ui/Message.MessageType.html I know this exists. I am trying to use it but I need some assistance. The messageType is what I need help with chatbox.contains(messageType, String) GAME, PLAYER, RECEIVE_TRADE???? What should messageType be if I want to be able to read a string inputted by game for example "You can't dig here." Thankyou for the halp Quote Link to comment Share on other sites More sharing options...
Deceiver Posted February 8, 2017 Share Posted February 8, 2017 game message Quote Link to comment Share on other sites More sharing options...
Abuse Posted February 8, 2017 Share Posted February 8, 2017 (edited) @Override public void onMessage(Message message){ if (message.getType().equals(Message.MessageType.GAME)) { } } Edit: Apologies: getChatbox().contains(Chatbox.MessageType.GAME, "String"); Edited February 8, 2017 by Abuse 1 Quote Link to comment Share on other sites More sharing options...
Saiyan Posted February 8, 2017 Share Posted February 8, 2017 Use onMessage because the chatboxcontains will return true still even if the game message said u cant dig here from 10 mins ago but still is in your chatbox 1 Quote Link to comment Share on other sites More sharing options...