March 8, 20169 yr 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.
March 8, 20169 yr 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, 20169 yr by FrostBug
March 8, 20169 yr 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")) { } }
Create an account or sign in to comment