ct1996 Posted March 8, 2016 Share Posted March 8, 2016 Hey, what package is this interface in? Just typing 'implements MessageListener' does not find it, and yet NOT including it and trying to Override my 'onMessage' causes an error as its not overriding anything. The API seems to think its in the package org.osbot.rs07.listener however this does not sucessfully import and neither does org.osbot.rs07.MessageListener thanks in advance. Quote Link to comment Share on other sites More sharing options...
FrostBug Posted March 8, 2016 Share Posted March 8, 2016 (edited) Script already implements it, just override the onMessage method in your Script class It is in the listener package http://osbot.org/api/org/osbot/rs07/listener/MessageListener.html Edited March 8, 2016 by FrostBug Quote Link to comment Share on other sites More sharing options...
Salty as fuck Posted March 8, 2016 Share Posted March 8, 2016 String txt = ""; public void onMessage(Message message) throws java.lang.InterruptedException { txt = message.getMessage().toLowerCase(); if (txt.contains("whatever you want read from the runescape chat")) { } } 2 Quote Link to comment Share on other sites More sharing options...