All pastes #249748 Raw Edit

Untitled

public text v1 · immutable
#249748 ·published 2006-11-16 02:52 UTC
rendered paste body
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;
	}
}