GaetanoH Posted July 23, 2016 Posted July 23, 2016 (edited) So right now I have this code: if(getChatbox().contains(Chatbox.MessageType.PLAYER, listQuestions)){ } With listQuestions being an Array with Strings, unfortunately it gives me and NPE, no idea why thought. I only need a players message Edited July 23, 2016 by GaetanoH
Eagle Scripts Posted July 23, 2016 Posted July 23, 2016 Try checking if its not null or try working around it with widgets.
Precise Posted July 23, 2016 Posted July 23, 2016 http://osbot.org/api/org/osbot/rs07/listener/MessageListener.html add a message listener? 2
GaetanoH Posted July 23, 2016 Author Posted July 23, 2016 http://osbot.org/api/org/osbot/rs07/listener/MessageListener.html add a message listener? Holy shit forgot about that. I've already used one in my script thought! Thanks 1