GaetanoH Posted July 23, 2016 Share 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 Quote Link to comment Share on other sites More sharing options...
Eagle Scripts Posted July 23, 2016 Share Posted July 23, 2016 Try checking if its not null or try working around it with widgets. Quote Link to comment Share on other sites More sharing options...
Precise Posted July 23, 2016 Share Posted July 23, 2016 http://osbot.org/api/org/osbot/rs07/listener/MessageListener.html add a message listener? 2 Quote Link to comment Share on other sites More sharing options...
GaetanoH Posted July 23, 2016 Author Share 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 Quote Link to comment Share on other sites More sharing options...