public Boolean FindChatAndContinue(String contains, int ChatLine) throws InterruptedException { NPCChat chat = getNPCChat(2000); String Schat[] = new String[5]; if (chat != null) { for (int i = 0; i < chat.options.length; i++) { log(chat.options[i]); Schat[i] = chat.options[i]; } } sleep(1000); if(Schat[ChatLine].contains(contains)){ mouseClickLeft(new Rectangle(231,440,373,448)); return true; } else{ return false; } }