domp Posted February 8, 2017 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
Abuse Posted February 8, 2017 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
Saiyan Posted February 8, 2017 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